Ubuntu Server on Unetlab

Ubuntu Server on Unetlab

Tools:

Pre-requisites

  • VMware vSphere Hypervisor 5.5  (in my case)

Let’s start…

1 – Create a new VM  on the ESxi

ubuntu_unl_1

Choose typical Configuration

ubuntu_unl_2

Enter the name of the Ubuntu Server VM

ubuntu_unl_3

Select where to store it

ubuntu_unl_5

Choose Linux as the OS and Ubuntu Linux (64-bit)

ubuntu_unl_5

Select a NIC with access to the Internet and a DHCP service

ubuntu_unl_7

Select the disk size

ubuntu_unl_8

After you finish add the Ubuntu iso to the CD/DVD drive and select to Connect at power on

ubuntu_unl_10

2 – Install Ubuntu Server, choosing the configuration that feat you.

3 – It is important that you remove the media from the DVD

ubuntu_unl_16

4 – Test connectivity on the Ubuntu VM

ubuntu_unl_17

5 – Export Ubuntu. On the vSphere shutdown the ubuntu VM and select File>Export>Export OVF Template.

Choose the format: Single file OVA

ubuntu_unl_18

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.

ubuntu_unl_20

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

ubuntu_unl_21

9 – Enter the Unetlab GUI, create a new lab and add a node with the following characteristics

ubuntu_unl_22

10 – Star the node and access it through vnc

ubuntu_unl_23

11 – I faced a problem with the interfaces that were not present, only a loopback.

ubuntu_unl_24

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

ubuntu_unl_26

Once again thank you to the guys in Unetlab… YOU ROCK.

See next post, stay good.

Advertisements

One thought on “Ubuntu Server on Unetlab

Comments are closed.