
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.In this blog, we will cover how you can install pfSense on a virtual box hypervisor. 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.

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.

Guest OS is Ubuntu 20.04 (Focal Fossa) Server Beta.
