Installing virtual machines on iSCSI disks in Sun VirtualBox is a good idea to keep your virtual machines in network location and do live migration between VirtualBox hosts. This post illustrates how to connect iSCSI disks in Virtual Media manager, and install OS on iSCSI disks in VirtualBox.
In this example I have two hosts (Windows 7 Operating System) with Sun VirtualBox desktop Virtualization software. I’m using FreeNAS as iSCSI storage server in one Windows 7 host. FreeNAS is installed as virtual machine in one host and iSCSI disk created. Read more here about how to install and create FreeNAS iSCSI disks in Sun VirtualBox.
In other host, we will install Windows 7 as virtual machine (Guest) in iSCSI disks. I confirmed, my second host computer is communicating with FreeNAS virtual machine in first host
Steps to Connect iSCSI disks in Sun VirtualBox Virtual Media Manager
1) Make sure host computer can communicate to iSCSI server to confirm network connectivity and firewall settings are correct.
2) Get the correct iSCSI disk target name address. Below is the FreeNAS iSCSI disk target I created for this example.
3) Open command prompt and type the following command.
vboxmanage addiscsidisk –server 10.10.11.250 –target iqn.2007-09.jp.ne.peach.istgt:vbos
10.10.11.250 – FreeNAS iSCSI server IP which configured in other host.
iqn.2007-09.jp.ne.peach.istgt:vbos – Target name ( shown in 2nd step)
— is double dash ( – )
4) Successful execution returns a message like below with new UUID for disk.
5) Newly added iSCSI disk can be found under Virtual Media manager in Sun VirtualBox, as shown below.
6) That’s it. We have successfully added FreeNAS iSCSI disk in VirtualBox. This disk can be used to install virtual machine operating systems. As you are aware, this iSCSI disk is located on network and we can use it in any host to install OS by Sun VirtualBox.
7) Let’s create a new Windows 7 (Guest) virtual machine inside VirtualBox, instead of creating new hard disk, select existing disk option and select this iSCSI disk.
8) Adjust the other settings as you like and start the virtual machine. Installation will go smoothly. I created two partitions and installed windows 7 successfully on network iSCSI disk.
To recap what we did in earlier steps.
Two Windows 7 physical computers involved in this example. Installed FreeNAS as virtual machine in one host computer and configured iSCSI disks, so this virtual machine works as iSCSI server.
Connected iSCSI disk with Sun Virtual Box media manager in other host. Then used this disk to install Windows 7 as guest
So, currently Windows 7 guest OS is running on network storage (iSCSI disk) in Sun VirtualBox. If you have high speed network then this method will be useful to keep virtual machines in centralized network location. Maintenance, backup of virtual machines and live migration in VirtualBox between different hosts can be done easily by iSCSI disks.
I will demonstrate VirtualBox live migration between different hosts using these disks very soon in this blog. Don’t miss to keep visiting or subscribe sysprobs.
Share your comments and issues regarding install OS on iSCSI disks in VirtualBox and Connect iSCSI disks in Virtual Media Manager .