
Give your new VM a name and select the appropriate details. Once the image is downloaded start up VirtualBox and click on new. When you click on this link the ISO image should start to download. I am working on a 64bit machine so I am going to click on the 64-bit PC (AMD64) desktop image link. VirtualBox can be downloaded from here.įirst you will need to download the Ubuntu 20.04 ISO image from here. You will need to have VirtualBox installed on your workstation. I can now ssh / ftp into the guest server from the host on its static IP address and the guest can connect to the internet.This post will show you how to get up and running with Ubuntu 20.04 on VirtualBox. Netplan cfg with static IPĪnd that is it. In the image below I have added the other network interface as seen from ip a and have given it the static IP of 192.168.56.108. Now edit the config file with your preferred text editor (vi, nano etc). Make a backup of that file in case something goes wrong and you need to roll back. cd /etc/netplanĭepending on your Ubuntu version you will see a filename like 01-netcfg.yaml for my Ubuntu 20.04 server or 50-cloud-init.yaml for Ubuntu 18.04.

Netplan is the network management tool on Ubuntu these days, so forget the old /etc/network/interfaces. To see the network interfaces available type: ip aĪnd you will get output like: Ubuntu 20.04 ip a before static IP You will now be back in the console window. OK to save the new setting and start the VM. Now go to Adapter 2, check Enable Network Adapter and choose Attached to ‘Host-only Adapter’. For this VM, choose settings and the Network. Do a sudo apt update & sudo apt upgrade to have the OS up to date and then sudo shutdown now.īack in VirtualBox. To begin it is assumed you have downloaded the relevant Ubuntu iso file, created a new virtual machine through VirtualBox and gone through that install process. NAT network adapter (for access to the outside world).a host-only network adapter and configure the VM with a static IP address (for host to guest access).VirtualBoxįor this to happen the VM needs 2 network adapters:

The aim is being able to access the guest on a static IP from the host to upload/download files and for the guest to be able to access the internet for API access to external services, apt update etc.
