Back again, as promised (albeit a week later than planned). Today I’ll be setting up a Windows 7 host on UNetLab. I did try Windows 10, but it failed to launch after the conversion to qemu.
If you want to play along at home, you’ll need a Windows 7 VM running under VirtualBox, UNL (UNetLab) and a bit of time.
The first step is to convert the VirtualBox image’s VDI file into RAW:
Stuarts-iMac:VirtualBox VMs stu$ cd Windows 7-Pro/ Stuarts-iMac:Windows 7-Pro stu$ ls Logs Windows 7-Pro.vbox Windows 7-Pro.vbox-prev Windows 7-Pro.vdi Stuarts-iMac:Windows 7-Pro stu$ vboxmanage clonehd Windows 7-Pro.vdi Win7.img --format RAW 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Clone hard disk created in format 'RAW'. UUID: a1c6a37c-8988-49a0-b20e-aca2fb22f181 Stuarts-iMac:Windows 7-Pro stu$
Then using Filezilla, or similar, copy it to the /tmp folder on the UNL VM. If you start to run out of space, as I just have, then read Andrea’s guide on adding more space to UNetLab.
[email protected]:~# cd /tmp/ [email protected]:/tmp# ls vmware-root Win7.img [email protected]:/tmp# mkdir /opt/unetlab/addons/qemu/win-7-Pro [email protected]:/tmp# /opt/qemu/bin/qemu-img convert -O qcow2 -f raw Win7.img hda.qcow2 [email protected]:/tmp# mv hda.qcow2 /opt/unetlab/addons/qemu/win-7-Pro/ [email protected]:/tmp# ls /opt/unetlab/addons/qemu/win-7-Pro/ hda.qcow2 [email protected]:/tmp# /opt/unetlab/wrappers/unl_wrapper -a fixpermissions [email protected]:/tmp#
Now we can make a nice looking topology:
I am using Chicken of the VNC, it seems to work much better than the Mac in-built one. Means connecting is a little bit more manual, but it works well.
Configuration and testing
So now let’s do some basic configuration.
I am not testing end-to-end connectivity at this stage, that’s for a different post, we are just testing very basic host-to-switch connectivity.
The VLAN 11 interface on the switch is given the IP address of 10.1.11.1 and set I have an IP address on the Windows host of 10.1.11.10, both are using a /24 subnet. The Windows host also has the switch IP address set as it’s default gateway:
Awesome, we can ping between them.
See how easy it is to get a Windows 7 host running in UNetLab?