This article will describe how to install Ubuntu on Windows 10 using VirtualBox.
Getting started with Ubuntu 16 in VirtualBox
Today I will be installing VirtualBox on Windows 10 Pro 64-bit (the host), then creating a new virtual machine to run Ubuntu 16.04.1 (the guest). For those running Windows 10 Home edition, sorry but this probably won't work for you.
First we need to download VirtualBox from https://www.virtualbox.org. I’ve downloaded VirtualBox 5.1.14
Run the executable and follow the prompts to complete the installation. We don’t really need to change anything for our purposes, and can accept the defaults. Before completing the wizard you will get a warning that the network connection will temporarily be interrupted, so make sure you’re not doing anything that would be impacted, like being half-way through downloading a 16GB file that can’t be resumed.
Create an Ubuntu virtual machine
- Download the latest Ubuntu release from https://www.ubuntu.com/download/desktop. I’ve downloaded Ubuntu 16.04.1
Open VirtualBox and click New
Type the Name for the virtual machine, like
Ubuntu 16. VirtualBox will try to predict the Type and Version based on the name you enter. Otherwise, select:
and click Next.
Next we need to specify how much memory to allocate the virtual machine. According to the Ubuntu system requirements we need 2GB, but I’d recommend more if your host can handle it. Basically the higher you can set the memory without severly impacting your host machine, the better the performance of the guest machine. If you’re not sure, stick with 2GB.
On the Hardware screen select Create a virtual hard disk now and click Create
Accept the default option VDI for Hard disk file type (or change it if you wish…) and click Next
Next we are prompted for Storage on physical hard disk. The options are Dynamically allocated and Fixed size. We’ll use the default of Dynamically allocated. Click Next
Choose the hard disk size and storage location. The Ubuntu system requirements recommend 25GB. Remember, we choose Dynamically allocated as our storage option in the last step, so we won’t consume all this disk space immediately. Rather, VirtualBox will allocate it as required, up to the maximum 25GB we specified. Click Create
The wizard will finish and we are returned to the main VirtualBox window. Click Settings
In the left pane select Storage, then in the right select the CD icon with the word
Under Attributes click the CD icon (highlighted in the screenshot above) and select Choose Virtual Optical Disk File and browse to the downloaded file
Click OK to close the Settings dialog window. The virtual machine should now be ready to start.
In VirtualBox your VM should be showing as Powered Off, and the optical drive configured to point to the Ubuntu ISO file we downloaded previously.
In VirtualBox, select the virtual machine Ubuntu 16 and click Start. VirtualBox will launch a new window with the vm and boot from the iso.
Click Install Ubuntu
Select Download updates while installing Ubuntu and click Continue
On the next screen accept the default of Erase disk and install Ubuntu and click Install Now
You will be prompted with a warning saying the changes will be written to disk. Click Continue
Select your timezone and click Continue
Select your keyboard layout. I accepted the default of English (US) and click Continue
Enter a username and password, then click Continue
The Ubuntu installation may take several minutes to run, so have another coffee.
When the installation is finished you will be prompted to restart. Save and close anything else you may have open and click Restart Now
Now when the vm reboots you may see this message.
From the menu select Machine > Settings.
Navigate back into the Storage settings where we previously selected the
isofile. If the Ubuntu iso file is still there, remove it. Otherwise close the Settings window and in the vm press Enter to proceed.
If all went well the VM should boot to the Ubuntu login screen. Enter your password to continue.
Ubuntu should run normally in the VirtualBox environment. If everything is far too small, you can adjust the ‘zoom’ by selecting View > Scale Factor > 200%.