How to install Ubuntu 18.04 (Bionic Beaver) on VirtualBox (with Guest Additions)

Percy Grunwald's Profile Picture

Written by Percy Grunwald

— Last Updated March 12, 2019

Ubuntu 18.04 (Bionic Beaver) is a long term support (LTS) release of the Ubuntu Linux distribution released in April of 2018 and supported until April of 2028. In this guide you’ll see how you can install Ubuntu 18.04 on VirtualBox, a popular cross-platform software for running virtual machines. These instructions will work for creating an Ubuntu 18.04 virtual machine on Windows, Linux and Mac OS host machines.

Video tutorial

If you prefer watching to reading, here’s a full video tutorial from the TopTechSkills YouTube channel covering a many of the points and examples from this article. Feel free to comment on this article or the video if you have any questions.

▶️ Watch on YouTube

Step 1 - Download the Ubuntu 18.04 distribution image

Download the desired image from the the Ubuntu 18.04 release page. For this guide we’ll be installing the desktop image:

Download the desktop image of Ubuntu 18.04 on the releases page

Step 2 - Create an empty virtual machine in VirtualBox

We’ll use the disk image downloaded in the previous step to install Ubuntu, but we first need an empty virtual machine to install it on. Create a new virtual machine in VirtualBox by clicking the New button.

Create a new virtual machine in VirtualBox

Next, enter the details for the virtual machine:

Enter the settings for a new Ubuntu 18.04 virtual machine
  • Name: the name you want for the virtual machine (this can be changed later)
  • Machine folder: the location you want the virtual machine files to be saved
  • Type: Linux
  • Version: Ubuntu (64-bit)
  • Memory size: the amount of memory to give the virtual machine. 1024MB should be fine in most cases, but you can increase/decrease it later depending on performance.
  • Hard disk: Create a virtual hard disk now

Click Create and you will be prompted for the details of the virtual hard drive:

Enter the settings for the virtual hard drive of the Ubuntu 18.04 virtual machine

The defaults on your computer should match the image above pretty closely, but if it doubt, these settings will work fine:

  • File location: leave this as default
  • File size: 10GB is fine and can be changed later
  • Hard disk file type: VDI is suggested
  • Storage on physical hard disk: I suggest using Dynamically allocated, which automatically grows the hard drive file as space is actually used on the virtual machine

Click Create and your new virtual machine will be created:

The newly created Ubuntu 18.04 virtual machine

Step 3 - Install Ubuntu 18.04 on the virtual machine

Click Start to start the newly created Ubuntu 18.04 virtual machine:

Start the Ubuntu 18.04 virtual machine

VirtualBox will prompt you to select a disk image from which to install Ubuntu. Click the folder icon:

Select the Ubuntu 18.04 disk image by clicking the folder icon

Select the .iso file you downloaded in step 1 and then click Start:

Start the virtual machine after selecting the Ubuntu 18.04 disk image

Step 4 - Complete the Ubuntu 18.04 install wizard

The virtual machine will launch using the Ubuntu 18.04 disk image and you will be guided through the installation by the installation wizard. The wizard has instructions for each step, so we won’t show each step here. Once the wizard is complete, the full installation will start. Once the installation is complete, you will need to restart the system:

Complete the Ubuntu 18.04 installation wizard and install Ubuntu

Once the system restarts, log in with the username and password you set in the installation wizard and you will be greeted with your new Ubuntu desktop:

The Ubuntu 18.04 desktop after installation completes

Step 5 - Install the VirtualBox Guest Additions for Ubuntu 18.04

The VirtualBox Guest Additions contain drivers and system applications to optimize the performance and features of the virtual machine’s operating system.

You need to install some system dependencies before installing the Guest Additions. The dependencies required are gcc, make and perl. To install them, first launch the Terminal by right clicking on the desktop and clicking Open Terminal, or by clicking All Programs and searching for Terminal:

Launch the Terminal application in Ubuntu 18.04

In the terminal, run the following 2 commands (you will need to provide your password when prompted):

sudo apt-get update
sudo apt-get install -y gcc make perl
Install the dependencies for VirtualBox Guest Additions in Ubuntu 18.04

Once the dependencies have finished installing, we can go ahead and install the Guest Additions. To install the Guest Additions for Ubuntu 18.04 click Devices in the menu bar and then Insert Guest Additions CD Image...:

Insert the VirtualBox Guest Additions CD Image for Ubuntu 18.04

When Ubuntu asks you if you want to run the software, click Run:

Run the VirtualBox Guest Additions software for Ubuntu 18.04

Ubuntu will prompt you to authenticate with your password:

Run the VirtualBox Guest Additions software for Ubuntu 18.04

Once authenticated, the Guest Additions will install automatically:

VirtualBox Guest Additions install complete on Ubuntu 18.04

With the Guest Additions installed, all you need to do now is restart the system and you’ll be ready to use your new Ubuntu 18.04 virtual machine.

Restart Ubuntu 18.04

Comment & Share