

$ sudo hostnamectl set-hostname "k8s-node-1" // Run this command on node-1Īdd the following entries in /etc/hosts files on each node, 192.168.1.40 k8s-masterġ92.168.1.42 k8s-node-1 Step 2) Install Docker (Container Runtime) on all 3 nodes Since, we download the source files reliably and in their latest versions from the repositories of Oracle VM VirtualBox. $ sudo hostnamectl set-hostname "k8s-node-0" // Run this command on node-0 Downloading and installing VirtualBox in a Linux wasn't that easy.
#HOW TO INSTALL VIRTUALBOX UBUNTU 20.04 HOW TO#
Use hostnamectl command to set hostname on each node, example is shown below: $ sudo hostnamectl set-hostname "k8s-master" // Run this command on master node I will show you how to install Virtualbox in ubuntu 20.04 LTS. Now let’s jump into the Kubernetes installation steps Step1) Set hostname and add entries in /etc/hosts file
#HOW TO INSTALL VIRTUALBOX UBUNTU 20.04 SOFTWARE#
• Machine 3 (Ubuntu 20.04 LTS Server) – K8s-node-1 – 192.168.1.42 I download the virtualbox software from the website, then I open terminal in downloads, run sudo dpkg -i installSelect your language Use UP, DOWN Arrow and ENTER key to select language. Please select a virtual optical disk file containing a disk to start your new virtual machine.

Machine 2 (Ubuntu 20.04 LTS Server) – K8s-node-0 – 192.168.1.41 Now currently create virtual machine is start.You will be required to install two packages, VirtualBox guest utils, and dkms.

