VMware vSphere Hypervisor 5.5 (in my case)
1 – Create a new VM on the ESxi
Choose typical Configuration
Enter the name of the Ubuntu Server VM
Select where to store it
Choose Linux as the OS and Ubuntu Linux (64-bit)
Select a NIC with access to the Internet and a DHCP service
Select the disk size
After you finish add the Ubuntu iso to the CD/DVD drive and select to Connect at power on
2 – Install Ubuntu Server, choosing the configuration that feat you.
3 – It is important that you remove the media from the DVD
4 – Test connectivity on the Ubuntu VM
5 – Export Ubuntu. On the vSphere shutdown the ubuntu VM and select File>Export>Export OVF Template.
Choose the format: Single file OVA
6 – Using Winscp connect to your Unetlab
7 – On the Unetlab folder /opt/unelab/addons/qemu create a folder named win-ubuntu-srv and copy the exported ova to this folder.
8 – Connect to the Unetlab console and extract the vmdk from the ova, convert it to qcow2 and finally fix the permissions
cd /opt/unetlab/addons/quemu/win-ubuntu-srv tar xf Ubuntu-SRV.ova /opt/qemu/bin/qemu-img convert -f vmdk -O qcow2 Ubuntu-SRV-disk1.vmdk hda.qcow2 /opt/unetlab/wrappers/unl_wrappers -a fixpermissions
9 – Enter the Unetlab GUI, create a new lab and add a node with the following characteristics
10 – Star the node and access it through vnc
11 – I faced a problem with the interfaces that were not present, only a loopback.
12 – To fix it I had to edit the interface file changing the interface name that was incorrect.
13 – After restarting the networking service the interface was up and running
Once again thank you to the guys in Unetlab… YOU ROCK.
See next post, stay good.