Working in pairs, you will build a Linux-based virtualization host server on hardware provided in the class.
Install Ubuntu Linux Server
Configure LVM (Logical Volume Manager) during installation, with manual partitioning, leaving most of the disk space (volume group) unused
NOTE: please take care to install LVM as shown, creating some small logical volumes for the system but leaving most of the volume group unused, because later exercises will need to create more logical volumes from the free space.
Please also name your volume group “ganeti”, because this has to be consistent throughout a cluster of machines.
2 Install Ubuntu
It may be necessary to press a key (e.g. F12, DEL) to get the option to boot from the USB stick.
If all goes well, you’ll be presented with a menu suggesting different languages, with English pre-selected as the default.
We are going to install Ubuntu version 18.04.6 LTS. If you need to obtain a copy of this particular Ubuntu server version you can find the full install ISO image at:
Now we start by selecting Boot and install with the HWE kernel
Install Ubuntu Server with HWE Kernel
Now press <ENTER> to Install ubuntu server
Start Installation
Select a language: English - English
Configure the keyboard: We recommend accepting the defaults chosen and selecting [ Done ] to continue
Network configuration via DHCP. Don’t worry if your network interface has a different name. Accept the default settings on this screen and select [ Done ] to continue:
HTTP proxy information (blank for none): fill in with: http://apt.ws.nsrc.org:3142/ then select [ Done ]
Ubuntu mirror location for software downloads. If you know there is a mirror in your country you can select it from the list provided, otherwise accept the default setting and select [ Done ] to continue:
2.1 Partitioning
Here we will divide up your disk using Logical Volume Management. It is important to carefully follow these instructions so that you end up with:
* A new, primary ESP partition of 512MB to boot your machine using EFI
* A logical volume of 10GB in size called "root" that is mounted at "/"
* A logical volume of 10GB in size called "var" that is mounted at "/var"
* A volume group called "ganeti" that is the size of your entire disk minus the 512 MB use in the ESP partition.
Create a Custom storage layout
Select your local disk as the boot device. Your disk name might be different depending on the type of disk you have in your machine.
Be sure to select “Add GPT partition” - this will be how we create our ESP boot partition for EFI
Select “Leave unformatted” and the installer will not what to do. Do not worry about the Size field. Press <ENTER>:
Now you will see this screen. Select [ Create ] and press <ENTER>:
2.2 Logical Volume Management
Scroll down and highlight [ Create volume group (LVM) ] and press <ENTER>:
Name the LVM volume group “ganeti”, select partition 2 for the volume group and select [ Create ]:
Create Logical Volumes: Select the [ ganeti ] volume group, press <ENTER> and select Create Logical volume and press <ENTER> again:
Create the “root” logical volume, mount this at “/” using a filetype of “ext4” and a size of 10G:
Create Logical Volumes: Select the [ ganeti ] volume group, press <ENTER> and select Create Logical volume and press <ENTER> again (like we did above):
Create the “var” logical volume, mount this at “/var” using a filetype of “ext4” and a size of 10G:
Below is what your screen should look like where you are ready to write the changes to disk. Select [ Done ] and press <ENTER>:
Select [ Continue ] and your new disk partition will be written:
2.3 Server Settings and software
Provide a name, username, name for your host and password on this screen. We are going to work with the user “nsrc” throughout this class. We suggest you use the class password that is provided to you by your instructions. For hostname we are working with machines named host1, host2, host3, host4, etc… You should have been told what your host number is. For this example we show this screen filled in with “host1”:
Select [ Done ] and press <ENTER>
Select “Install OpenSSH server”, then select [ Done ] and press <ENTER>:
Do not select any of the presented packages on this screen. Instead just slect [ Done ] and press <ENTER>:
You will now see messages on your screen as the operating system is installed. This may take some time:
2.4 Installation Complete!
Once the installer has finished you will have an option [ Reboot Now ]. Be sure to select this and press <ENTER>.
Congratulations!: You are now done installing Ubuntu Server version 18.04.6 LTS.