Create a Ubuntu 18.04 VM on VMware vSphere using vCenter

This tutorial will show you how to create a Ubuntu 18.04 VM on an ESXi 6.7 host managed by vCenter 6.7 using the VMware vSphere Client (HTML5).

Introduction

The following steps have been tested on a VMware vSphere ESXi 6.7 host managed by version 6.7 of the vCenter Server Appliance.

Prerequisites

For this tutorial we need to download the Ubuntu Server 18.04 ISO image. Here is a direct link to the ISO which is located on this download page.

Once downloaded, we need to upload it to a datastore. Read the post tiled: How to Upload an ISO to a VMware vSphere datastore with the vSphere Client (HTML5) to learn how to upload the ISO.

Step 1: Login to vCenter

Login to the vCenter Server Appliance by typing its IP or domain name into a web browser then clicking the button to launch the vSphere Client (HTML5).

Create Ubuntu VM with vCenter - Step 1

Enter your username and password then click LOGIN.

Create Ubuntu VM with vCenter - Step 2

Step 2: Create the Ubuntu VM

Click on the Hosts and Clusters icon at the top left.

Create Ubuntu VM with vCenter - Step 3

Right click on your Cluster or a host then click New Virtual Machine…

Create Ubuntu VM with vCenter - Step 4

Select Create a new virtual machine then click NEXT.

Create Ubuntu VM with vCenter - Step 5

Give the machine a name then click NEXT.

Create Ubuntu VM with vCenter - Step 6

Select a host in the cluster to add the VM to then click NEXT.

Create Ubuntu VM with vCenter - Step 7

Select a datastore connected to the ESXi host then click NEXT.

Create Ubuntu VM with vCenter - Step 8

Select the compatibility level then click NEXT.

Create Ubuntu VM with vCenter - Step 9

Select Linux for the Guest OS Family, Ubuntu Linux (64-bit) for the Guest OS Version then click NEXT.

Create Ubuntu VM with vCenter - Step 10

Configure the Virtual Hardware by choosing the amount of CPU cores, Memory and the size of the hard disk. In the following example I’ve used the minimum requirements for Ubuntu (1 CPU, 512 MB RAM, 4 GB HDD).

After assigning the CPU, Memory and hard disk, select the network and change the CD/DVD Drive to Datastore ISO File.

Create Ubuntu VM with vCenter - Step 11

Make sure the CD/DVD drive is connected when the VM powers on by ticking the checkbox box labeled Connect At Power On.

Click BROWSE… to assign the Ubuntu ISO.

Create Ubuntu VM with vCenter - Step 12

Navigate to the folder on a datastore containing the Ubuntu ISO image then click OK.

Create Ubuntu VM with vCenter - Step 13

Click NEXT.

Create Ubuntu VM with vCenter - Step 14

Click FINISH to create the VM.

Create Ubuntu VM with vCenter - Step 15

We’re now ready to power on the VM and install the operating system.

Step 3: Install Ubuntu on the VM

Click on the name of the virtual machine, then click the green power on button next to its name.

Create Ubuntu VM with vCenter - Step 16

Click Launch Web Console.

Create Ubuntu VM with vCenter - Step 17

Click OK.

Create Ubuntu VM with vCenter - Step 18

The web console should open in a new browser tab and the Ubuntu 18.04 installer will begin. Go through the installer, configuring the keyboard, networking, disk, users and software, as you would on any other hardware.

Create Ubuntu VM with vCenter - Step 19

Once finished, the OS will reboot and you should be able to login.

Create Ubuntu VM with vCenter - Step 20

Conclusion

In this tutorial, we created a virtual machine by connecting to vCenter Server using the VMware vSphere HTML5 client. The virtual hardware was configured with the minimum requirements to run Ubuntu and then we installed the OS.

Now that you’ve created a Ubuntu VM, you may find the following posts useful:

Written by Tony

I'm a blogger, software developer and sysadmin, with a degree in applied computing and 16+ years experience managing IT systems. Get in touch: tony@graspingtech.com

Tags: Virtualization vCenter