From the course: Linux System Engineer: iSCSI Storage Area Networks

Lab setup

From the course: Linux System Engineer: iSCSI Storage Area Networks

Start my 1-month free trial

Lab setup

- [Josh] In order to configure and test Linux iSCSI Storage Area Networks using VirtualBox. We need more than one virtual machine. We'll need two VMS and we'll want to have both VMs be able to access each others network interfaces. We may also want to have the VirtualBox host or other computers on the physical network to have network connectivity with the VM guests. 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 VirtualBox manager. Once it's shut down, you can continue. To configure the network settings, click on VM and then settings, and then network. Change attached to NAT to attach to a bridged adapter. In the name section, make sure you select the physical network adapter of your host machine that has access to the internet. In my case, the host is running on Linux and I'm using the wired network adapter. So, I'm going to choose ENP0S25. Which is the name that my Linux host installation has chosen for it. If you're using Macros 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 save state so our VMs boot up fresh for the first time. If you don't do this, then all of your VMs will boot up and assume the same IP address because that is a live setting in RAM which is included in the save 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 VirtualBox Manager window, go to the machine menu and select clone. 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 disk space as the original. If you foresee moving 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 disk 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 RHHOST2. Click on linked clone and reinitialize the Mac addresses of all network cards. Then click on clone. Now we should have two virtual machines name RHHOST1 and RHHOST2.

Contents