How to create own custom Windows 7 host for EVE:

Watch how to VIDEO

For this you will need real Windows installation CD ISO distro.

We are using: Windows7SP1Ultimate_64 Bit.iso. Be sure that distro name has not spaces in the filename! Any windows host installation is same procedure.

  1. Create new image directory:
mkdir /opt/unetlab/addons/qemu/win-7test/
  1. Use WINSCP or FileZilla SFTP or SCP (port 22) to copy distro ISO image into the newly created directory, path: /opt/unetlab/addons/qemu/winserver-test/
  2. From cli go to
cd /opt/unetlab/addons/qemu/win-7test/
  1. Rename this distro to cdrom.iso
mv Windows7SP1Ultimate_64_Bit.iso cdrom.iso
  1. From EVE cli go to the created image directory
cd /opt/unetlab/addons/qemu/win-7test/
  1. Create new virtioa.qcow2
/opt/qemu/bin/qemu-img create -f qcow2 virtioa.qcow2 30G
  1. Create new lab and add newly created win-7-test node
  2. Edit node settings and set, qemu version 2.2.0 and NIC e1000.
  3. Connect it to your home LAN cloud/internet, this need to get updates from internet
  4. Start node in lab and do install of your Windows, customize it as you like, as you have connected it to home LAN and internet this install will be like normal windows installation.
  5. When windows installation ask to choose a hdd where Windows will be installed, choose Load driver, Browse, choose FDD B/storage/2003R2/AMD64 or 86/, (AMD or x86 depends which version of windows you are installing 64 or 32 bit), click next and you will see HDD RedHat VIRTIO SCSI HDD now.
  6. Choose this HDD and continue install Windows as usual.
  7. Option, if you like to use this image with RDP in the EVE, then you have to allow RDP on this Windows machine and create password for user. My case it is user/Test123. Be sure that in Windows firewall Remote access inbound rules are allowed for Public access.
  8. Finish installation and shutdown properly the VM from inside VM OS. Start/shutdown
  9. On EVE LAB web UI left side bar choose “Lab Details” to get your lab uuid details: my case: UUID: 3491e0a7-25f8-46e1-b697-ccb4fc4088a2
  10. IMPORTANT: Convert your installed tmp image:
qemu-img convert -c -O qcow2 /opt/unetlab/tmp/10/3491e0a7-25f8-46e1-b697-ccb4fc4088a2/1/virtioa.qcow2  /tmp/virtioa.qcow2

(10 is POD number of user, my case it is 10, admin user it is 0)

  1. Move new image to node dir to overwrite empty disk:
mv /tmp/virtioa.qcow2  /opt/unetlab/addons/qemu/win-7test/virtioa.qcow2
  1. Remove cdrom.iso from /opt/unetlab/addons/qemu/win-7test/
cd /opt/unetlab/addons/qemu/win-7test/
rm -f cdrom.iso


Advanced option how to make your default image tiny.

1. After you have done all steps above and default image is created, you can compress its HDD and make it smaller.

IMPORTANT: for compressing image you must have on your EVE free space matching HDD sice which you used for install, our case it is 30Gb. Fo our image compression you must have on your EVE at least 35Gb HDD free space !!!

2. From CLI: go to your windows image directory:

cd /opt/unetlab/addons/win-7test

and do sparsify command:

virt-sparsify  --compress virtioa.qcow2 compressedvirtioa.qcow2

3. it will take some time and another compressed image will be created in same image directory win-7test

4. now you can rename your original virtioa.qcow2 file to orig.qcow2

mv virtioa.qcow2 orig.qcow2

5. Rename compressed image name to virtioa:

mv compressedvirtioa.qcow2 virtioa.qcow2

6. now you can test your new compressed image on lab if all is right and image works, just wipe node and start it.

7. If compressed node works fine, you can delete your source original image

rm -f orig.qcow2