How to Install Ubuntu 18.04 Desktop on VirtualBox – Ubuntu 18.04 (Bionic Beaver) is a long-term release (LTS) of the Ubuntu Linux distribution or distro released in April 2018 and supported until April 2028, so with Ubuntu 18.04 you don’t have to upgrade Ubuntu to version 19, because this 18.04 version has received long-term support and is more stable.
In this guide you will see how you can install Ubuntu 18.04 on VirtualBox, where virtualbox software is a popular cross-platform virtualization software for running virtual machines, it’s the same as VMWare. You can see a comparison between Virtualbox and VMWare in the following article → Difference between VirtualBox and VMware, which one is better?.
These instructions will work the same if you want to create a virtual machine with Ubuntu 18.04 installed on a computer running Windows, Linux and Mac OS.
Step 1 – Download the Ubuntu 18.04 ISO Image
Download the desired ISO image from the page Ubuntu 18.04 release. For this tutorial I’m going to install a desktop Ubuntu ISO image:
Step 2 – Create a New Virtual Machine in VirtualBox
I will use the disk image downloaded in the previous step to install Ubuntu on VirtualBox, but first I need an empty virtual machine to install it. Create a new virtual machine in VirtualBox by clicking the “New” button in the top menu.
Next, enter the details for your virtual machine as follows:
- Name: The name you want for the virtual machine (this can be changed later)
- Machine Folder: where you store virtual machine files
- Type: Linux
- Version: Ubuntu (64-bit)
- Memory Size: The amount of memory allotted to 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 asked to enter the details of the virtual hard drive:
The defaults on your computer should match the image above or be nearly the same, but if in doubt, follow the settings below to get them working properly:
- File Location: leave this as the default
- File Size: 10GB is sufficient and you can change it later
- Hard disk file type: VDI is recommended
- Storage on physical hard disk: I recommend using Dynamically allocated, which automatically grows hard drive files as space is actually being used on the virtual machine
Click “Create” and your new virtual machine will be created:
Step 3 – Install Ubuntu 18.04 on a Virtual Machine
Click “Start” to start the newly created Ubuntu 18.04 virtual machine:
VirtualBox will ask you to select a disk image from where you saved the file
.iso Ubuntu. Click the folder icon and select a file
.iso which you downloaded in step 1 and then click the “Start” button:
Step 4 – Complete the Ubuntu 18.04 Installation Process
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 I won’t go over each step here as I find it very easy. After the installation process is complete, the full installation will start, More or less this installation process will be exactly the same as in my previous article here. After the installation is complete, you must “Restart” the system:
Once system has restarted, log in with
password settings in the installation wizard and you will be greeted with a virtual machine with your new Ubuntu desktop.
Step 5 – Install VirtualBox Guest User for Ubuntu 18.04
VirtualBox Guest Additions contains system drivers and applications to optimize the performance and features of the virtual machine operating system.
You need to install some system dependencies before installing the Guest Additions. The dependencies required are
perl. To install it, first open “Terminal” by right clicking on the desktop and clicking Open Terminal, or by clicking All Programs and search Terminal:
At the terminal, run the following 2 commands (you must enter the password when prompted):
sudo apt-get update
sudo apt-get install -y gcc make perl
Once the dependencies have been installed, we can go ahead and install the Guest Additions. To install Guest Additions for Ubuntu 18.04 click Device in the menu bar and then Insert Guest Additions CD Image …:
When Ubuntu asks if you want to run the software, click Run and Ubuntu will ask you to authenticate with
Once confirmed, the Guest Additions will be installed automatically:
With Guest Additions installed, all you need to do now is restart the system and you will be ready to use your new Ubuntu 18.04 virtual machine.
And that’s a complete guide on how to install Ubuntu 18.04 LTS Desktop on VirtualBox which you can do on both Windows and Mac OS computers. Hopefully this article is useful and good luck, good luck. 🙂