How to create own custom Windows 7 host for EVE:

Watch how to Coming soon

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/

2. 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/

3. From cli go to

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

4. Rename this distro to cdrom.iso

mv Windows7SP1Ultimate_64_Bit.iso cdrom.iso

5. Create new virtioa.qcow2

/opt/qemu/bin/qemu-img create -f qcow2 virtioa.qcow2 30G

6. Create new lab and add newly created win-7-test node

7. Edit node settings and set, qemu version 2.2.0 and NIC e1000.

8. Connect it to your home LAN cloud/internet, this need to get updates from internet

9. 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.

10. IMPORTANT: 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.

11. Choose this HDD and continue install Windows as usual.

12. 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.

13. Finish installation and shutdown properly the VM from inside VM OS. Start/shutdown

14. 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

IMPORTANT: Convert your installed image to be as default for further use in EVE-NG:

qemu-img convert -c -O qcow2 /opt/unetlab/tmp/0/3491e0a7-25f8-46e1-b697-ccb4fc4088a2/1/virtioa.qcow2  /opt/unetlab/addons/qemu/win-7test/virtioa.qcow2

(0 is POD number of user, main admin user POD Nr. is 0)

15. 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