Source: http://eve-ng.net/index.php/documentation/howto-s/106-howto-create-own-linux-image
We are using: ubuntu-16.04.2-desktop-amd64.iso. Be sure that distro name has not spaces in the filename! Any Linux Server installation has same procedure.
Warning !!! Use the following command INSIDE the node cli. DO NOT use inside EVE-NG CLI !!!!!
15. IMPORTANT: Convert your installed tmp image:
16. Move new image to node dir to overwrite empty disk:
How to create own custom Linux host for EVE:
Watch how to VIDEO. It very similar process like for Windows. Just follow steps below.
For this you will need real Linux installation CD ISO distro.We are using: ubuntu-16.04.2-desktop-amd64.iso. Be sure that distro name has not spaces in the filename! Any Linux Server installation has same procedure.
- Create new image directory:
mkdir /opt/unetlab/addons/qemu/linux-ubuntu-desktop-16.04.02/
- Use WINSCP or FileZilla SFTP or SCP (port 22) to copy distro ISO image into the newly created directory, path: /opt/unetlab/addons/qemu/linux-ubuntu-desktop-16.04.02/
- From cli go to
cd /opt/unetlab/addons/qemu/linux-ubuntu-desktop-16.04.02/
- Rename this distro to cdrom.iso
mv ubuntu-16.04.2-desktop-amd64.iso cdrom.iso
- From EVE cli go to the created image directory
cd /opt/unetlab/addons/qemu/linux-ubuntu-desktop-16.04.02/
- Create new hda.qcow2
/opt/qemu/bin/qemu-img create -f qcow2 hda.qcow2 30G
- Create new lab and add newly created linux-ubuntu-desktop-16.04.02 node
- Connect it to your home LAN cloud/internet, this need to get updates from internet
- Start node in lab and do install of your Linux, customize it as you like, as you have connected it to home LAN and internet this install will be like normal Linux installation.
- Remove cdrom.iso from /opt/unetlab/addons/qemu/linux-ubuntu-desktop-16.04.02/
cd /opt/unetlab/addons/qemu/linux-ubuntu-desktop-16.04.02/
rm -f cdrom.iso
11. OPTION: For servers you can set serial console for telnet use instad of vnc.Warning !!! Use the following command INSIDE the node cli. DO NOT use inside EVE-NG CLI !!!!!
sed -i 's/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX="console=ttyS0,115200 console=tty0"/' /etc/default/grub update-grub12. IMPORTANT: Remove saved network settings
rm -f /etc/udev/rules.d/70-persistent-net.rules13. IMPORTANT: Shutdown properly the VM from inside VM OS
shutdown -h now
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-ccb4fc4088a215. IMPORTANT: Convert your installed tmp image:
qemu-img convert -c -O qcow2 /opt/unetlab/tmp/10/3491e0a7-25f8-46e1-b697-ccb4fc4088a2/1/hda.qcow2 /tmp/hda.qcow2
(10 is POD number of user, my case it is 10, admin user it is 0)16. Move new image to node dir to overwrite empty disk:
mv /tmp/hda.qcow2 /opt/unetlab/addons/qemu/linux-ubuntu-desktop-16.04.02/hda.qcow2
DONE