Power users can run VirtualBox host software on headless Ubuntu 16.04 LTS servers and create virtual guest machines easily from remote locations… this allows you to run VirtualBox from anywhere without connecting directly to the host servers..
Few days ago we showed students and new users how to install and use VirtualBox virtualization software on Ubuntu 16.04 LTS server.. This can also known as headless installation.
Headless installation is when you installed and run VirtualBox on a server without direct monitor or desktop environment via remote terminal. The GUI-less installation of VirtualBox is typical in server environments.
This brief tutorial is going to show you how to install and guest operating systems on the headless installation of VirtualBox. This should be quick and easy new students should love it.
To get started with installing a guest OS on a headless VirtualBox follow the guide below:
Step 1: Install VirtualBox on Ubuntu server
Before installing a guest OS on VirtualBox, you must first have the host server installed. Our previous post showed you how.. click the link below to read this post.
Next, modify the guest os to increase the system memory, include a virtual dvd drive and well as enable VRDP (Virtual Remote Desktop Protocol) to access the guest machine remotely by running the commands below.
sudo VBoxManage modifyvm Ubuntu_1604 --memory 1024--boot1 dvd--vrde on --vrdeport 5001
Add a network adapter and NAT it by running the commands below. If you want it to be bridged, change nat to bridged.
sudo VBoxManage modifyvm Ubuntu_1604 --nic1 nat
Next, create a storage sata controller named “Ubuntu_1604_SATA
sudo VBoxManage storagectl Ubuntu_1604 --name "Ubuntu_1604_SATA" --add sata
Next, create virtual HDD with 10GB size and format it as VDI with standard variant.
sudo VBoxManage createhd --filename /var/box/Ubuntu_1604.vdi--size 10280 --format VDI --variant Standard
Step 4: Attach the Virtual Hard Disk
Next, attach the virtual hard disk created above to the VM… To do that run the commands below: