Note: Read this page entirely first to have a general big picture. Then,
follow the detailed instructions.
The following instructions were written for course IT432. Instead of creating
different VMs for IT430, we will use the same VMs. In particular, we will keep
the VM names it432a, it432b, it432c.
1. Create a Ubuntu VM: it432a
- Please, follow the instructions given here. Use
version 2 (Ubutnu 20) in the Previous Years Images.
- Change a NAT network. The detailed instructions are found here.
- Change the network setting of it432a. The detailed instructions are found
here.
2. Clone it432a to create two more VMs
- Create another Ubuntu VM (name: it432b) by cloning VM it432a. Detailed
instructions are found here.
- Similar to above, create another Ubuntu VM (name: it432c) by cloning VM
it432a. Make sure to choose the setting of New MAC
addresses.
3. Check the network status of VMs
- Use the
ifconfig command, and check if all VMs have
IP addresses.
- See if the
ping command works from one VM's IP address to
another VM's IP address.
Note: If the above doesn't work, you probably need to cloned the VM
wrong. Delete the VMs and reclone it. Again, it's important to have different
MAC addresses for each different VM.
4. Change the hostnames
- In VM it432b, execute:
sudo hostnamectl set-hostname it432b
Then, close the terminal and open a new one. See if the hostname has changed.
- Run the following command:
sudo gedit /etc/hosts
Modify the hostname it432a to it432b
- Change the hostname for VM it432c likewise.