Info
Please validate that you have the latest Ubuntu installed. Click here for the installation steps.
Introduction
We are installing Ubuntu on the physical node on a fresh node as an example. This will take us from a base Ubuntu OS to a fully deployed Containerized Swarm on K3s.
Hardware
The hardware used in this example has the following characteristics:
Component | Count | Type |
---|---|---|
processor | 1 | Intel(R) Xeon(R) Silver 4314 CPU @ 2.40GHz |
memory | 4 | 64gb (256gb total) |
disk group | 1tb | nvme |
3.5tb | nvme | |
disk swarm | 18.2 | sata |
network | 10/25gbe |
This is the required partition layout.
We are using the IPMI interface to deploy the system. The steps are similar to a USB-booted host.
This guide is based on supermicro-based hardware.
Accessing the IPMI Console and Booting From a Local ISO
Navigate to the IPMI IP address. We are using https://<IPMI ADDRESS> for an example.
Select Remote Control from the left pane.
Click Launch Console.
We are using JAVA plug-in as it can mount an ISO. HTML5 can also do this, but it is a licensed feature for ISO.
There might be a warning as shown below:
Click Continue.
Click Run.
Select Virtual Storage.
Expand the Logical Drive Type and select ISO Image.
Click Open Image to upload the downloaded ISO image.
Select the ISO image downloaded earlier, and click Open.
Click OK.
Press f11 to invoke the boot menu.
BIOS may not be set to use “virtual media” as a boot option. If so, enable it as an extra boot option in the BIOS.
Virtual Media is displayed as shown below:Select the virtual media as a boot device.
Initial Steps for Ubuntu Install
The first screen on booting from the Ubuntu 22.04.4 is:
Refer to the following steps to install:
Select Ubuntu Server with the HWE Kernel.
Select the preferred language. We have used English as an example.
Select the layout and variant as per your preferred language.
Select Done.
Select Ubuntu Server > Done.
Select the network connection > Done. The network connection is configured to talk to the server.
Provide the proxy address > select Done.
Provide the archive mirror address > select Done.
Storage Configuration
Ubuntus installer by default chooses the largest disk to deploy, which is not required for this installation. Therefore, press return and select an alternate drive for root.
There is a large selection of drives here, so we will go with 893.750G drive and delete the existing partitions on this drive.
Press return on the highlighted drive.
Select Done.
Select the new LVM volume group and edit it.
Select Leave Unmount from the Mount drop-down. This will unmount the partition to change the amount of free space.
Select Save.
When it is changed on the mount, change it to “/”.
Use the remaining volumes for var.
Create a new logical volume group for the containers. This will be on the 3.4tb volume.
Provide a name for the LVM volume group. Here, we have used vg0 as an example.
Select Create.
When finished, you will have a new device called vg0.
Highlight the free space.
Select Create Logical Volume.
Select /var/lib from the Mount drop-down. This is used to dedicate all the free space to /var/lib where the containers live.
Select Create.
It shows a warning where select Continue.
User Creation
Provide the following information to set up a user profile:
Name - Name of the user.
Server name - Name of your server name to talk to other devices/computers.
Username - The username to log into the system.
Password - It is recommended to have a strong password.
Select Done.
Upgrade to Ubuntu Pro
Select Enable Ubuntu Pro.
Select Continue.
Select Install OpenSSH server and import SSH identity as No.
Select Done.
Ignore the following screens if displayed on your device.After successful installation, the system ejects the cdrom that fails.
Reboot the machine manually to have a fresh OS. While rebooting the host, you will see a lot of text on screen, but if you hit return, it displays as shown below:
Now, it will show your hostname. Here, my hostname is Godzilla, yours should be different.
Logging into the system takes you to the command prompt.
Next, see Base Packages Installation