From the course: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND

Lab setup

- [Instructor] In order to configure in test Lynx ISCZ storage area networks using virtual files, we need more than one virtual machine. We'll need need two VMs and we want to have both VMs and we want to have both VMs to be able to access each others network interfaces. We may also want to have the virtual box host or other computers on the physical network to have a network connectivity with the VM guest. In order to do this, we'll need to configure the VM network interfaces. In order to clone your VM, you need to make sure that it is shut down. If your VM is running, shut it down now using the Virtual Box Manager. Once its shut down, you can continue. To configure the network settings, click on VM and then click on settings and then network. Change attached to NAT to attached to Bridged Adapter. In the name section, make sure you select the physical network adaptor of your host machine that has access to the internet. In my case, the host is running a lynx and I'm using the wired network adaptor so I'm going to choose enp0s25, which is the name that my lynx host installation has chosen for it. If you're using MacOS or Windows, choose the appropriate network interface that your host is using. Once that's done, click on okay. We also need to discard the saved space so our VMs boot up fresh for the first time. If you don't do this, then all your VMs will boot up and assume the same IP address because that is a live setting in RAM which is included in the saved state. Make sure your VM is selected and then click on discard. Click on discard again. Once we have our VM network adapter configured, we want to clone the VM. In the virtual box manager window, go to the machine menu and select clone and a dialogue box asking for the VM name should appear. Let's call it rhhost1. Also click the box to reinitialize the MAC addresses of all network cards. This is so all network cards have unique MAC addresses so even though the rest of the VM is identical, the MAC addresses won't be. Now we have to choose the type of clone we want. A full clone makes a completely independent VM that can be moved without the original but also takes up an equal amount of disc space as the original. If you foresee moving one VM without the other, you may want to choose full clone here. However, for our purposes, making a linked clone is perfectly fine and uses less disc space. I'm going to choose linked clone. Now click on clone. Now let's click on the original VM again and create a second linked clone. Select machine and then clone. Let's name this one rhhost2. Click on linked clone and reinitialize the MAC address of all network cards. And then click on clone. Now we should have two virtual machines named rhhost1 and rhhost2.

Contents