Creating a Windows 7 host on UNetLab

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.

root@unl01:~# cd /tmp/
root@unl01:/tmp# ls
vmware-root  Win7.img
root@unl01:/tmp# mkdir /opt/unetlab/addons/qemu/win-7-Pro
root@unl01:/tmp# /opt/qemu/bin/qemu-img convert -O qcow2 -f raw Win7.img hda.qcow2
root@unl01:/tmp# mv hda.qcow2 /opt/unetlab/addons/qemu/win-7-Pro/
root@unl01:/tmp# ls /opt/unetlab/addons/qemu/win-7-Pro/
hda.qcow2
root@unl01:/tmp# /opt/unetlab/wrappers/unl_wrapper -a fixpermissions
root@unl01:/tmp#

Now we can make a nice looking topology:

Windows 7 host running in UNetLab

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:

>Windows 7 host connectivity in UNetLab

Awesome, we can ping between them.

See how easy it is to get a Windows 7 host running in UNetLab?

23 Comments

  1. Anonymous July 15, 2015
  2. Anonymous August 17, 2015
  3. Stuart Fordham August 17, 2015
  4. ma_7moud September 10, 2015
  5. Stuart Fordham September 10, 2015
  6. Orkhan Allahverdiyev October 1, 2015
  7. Alexandre Fasquel November 15, 2015
  8. Stuart Fordham November 15, 2015
  9. Сергей Праведников November 25, 2015
  10. Anonymous December 17, 2015
  11. Stuart Fordham December 19, 2015
  12. Unknown February 24, 2016
  13. Stuart Fordham February 24, 2016
  14. khaled nakawa March 19, 2016
  15. Jon Major June 17, 2016
  16. Jon Major June 18, 2016
  17. Stuart Fordham June 19, 2016
  18. Leandro Pereira November 8, 2016
    • Stuart Fordham November 8, 2016
    • Stuart Fordham November 8, 2016
  19. Alberto Sivla December 12, 2016
  20. hk March 28, 2017
  21. Di June 5, 2017

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.