Windows 10: Install Ubuntu 20 in VirtualBox

How to install Ubuntu 20 in VirtualBox

This article will step through how to install Ubuntu Desktop on Windows 10 using VirtualBox. For this turotial I will be using Windows 10 Pro 64-bit (the host) and will explain how to run Ubuntu Desktop 20.04.1 LTS (the guest) as a virtual machine. Also covered are tips on configuring the display settings and installing VirtualBox Guest Additions.

VirtualBox is a free and open-source virtualization platform by Oracle, and is popular for running a variety of virtual machines. Ubuntu 20.04.1 LTS is the latest long-term support version of the popular Ubuntu Desktop OS.

Step 1: VirtualBox installation

If you already have a working installation of VirtualBox you may skip this section.

  1. First, download the VirtualBox Windows host from I’ve downloaded VirtualBox 6.1.14

  2. Run the executable and follow the wizard prompts to complete the installation.

    VirtualBox install wizard

    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 may be impacted (like being half-way through downloading a 16GB file that can’t be resumed).

Step 2: Create a new Ubuntu virtual machine

I’ll be installing the latest LTS (Long-term support) version of Ubuntu Desktop which at the time of writing is Ubuntu 20.04.1 LTS.

  1. Download the latest Ubuntu release from

  2. Open VirtualBox and click New.

    VirtualBox welcome splash

  3. Enter a Name for the virtual machine, for example Ubuntu 20 LTS. VirtualBox will try to predict the Type and Version based on the name you enter. Otherwise, select:

    • Type: Linux
    • Version: Ubuntu (64-bit)

    and click Next.

    VirtualBox create machine prompt

  4. Now you will be prompted for Memory size and will need to specify how much memory to allocate the virtual machine. According to the Ubuntu system requirements we need at least 4GB, but I’d recommend more if your host can handle it. 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 4GB. You can adjust this later if needed.

    Set the memory to 4096 MB (4 GB) and click Next.

    VirtualBox memory prompt

  5. On the Hard disk screen, select Create a virtual hard disk now and click Create

    VirtualBox hard disk prompt

  6. On the Hard disk file type screen, accept the default option VDI (VirtualBox Disk Image) (or change it if you want…) and click Next

    VirtualBox disk file type prompt

  7. 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.

    VirtualBox prompt

  8. Enter the hard disk File location and size. The Ubuntu system requirements recommend 25GB. Remember, we chose 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 (or whatever value you specify here). Click Create

    VirtualBox prompt

Step 3: Configure the virtual machine settings

  1. You should be back on the main VirtualBox screen now. Ensure the Ubuntu 20 LTS virtual machine is selected then hit Settings.

    VirtualBox prompt

  2. In the left pane select Storage, then in the right pane under Controller: IDE select the CD icon with the word Empty beside it.

    VirtualBox prompt

  3. In the far right pane under Attributes click the CD icon and select Choose/Create a Virtual Optical Disk…

    VirtualBox prompt

  4. The Optical Disk Selector window will be displayed. Click the Add button.

    VirtualBox prompt

  5. Browse to the downloaded file ubuntu-20.04.1-desktop-amd64.iso, select it, and click Open.

  6. In the Optical Disk Selector window, ensure the iso file is selected, then click Choose.

    If done correctly, you will see the Ubuntu 20 iso appear under the Controller: IDE storage device.

    VirtualBox prompt

  7. Click OK to close the Settings dialog window.

Step 4: Install Ubuntu 20

In VirtualBox, your VM should be showing as Powered Off, and the optical drive configured to point to the Ubuntu ISO file as per the previous step.

  1. In VirtualBox, select the virtual machine Ubuntu 20 LTS and click Start.

    VirtualBox will launch a new window with the vm and boot from the iso selected in a previous step.

    VirtualBox prompt

  2. Wait a few minutes for Ubuntu to load. When prompted, click Install Ubuntu.

    VirtualBox prompt

  3. Select your keyboard layout (or accept the defaults) and click Continue.

  4. Use the default options Normal installation and Download updates while installing Ubuntu, then click Continue.

    VirtualBox prompt

  5. Accept the default option Erase disk and install Ubuntu, then click Install Now.

    VirtualBox prompt

  6. You will be prompted with a warning that the changes will be written to disk. Click Continue.

    Note: this step may take a few minutes to complete.

    VirtualBox prompt

  7. Select your timezone and click Continue.

  8. Now you need to create the root account for Ubuntu. Enter your name, computer name, username and password, then click Continue.

    VirtualBox prompt

  9. The Ubuntu installation will take several minutes to complete, so put your feet up or make a coffee.

    VirtualBox prompt

  10. After the installation is finished you will be prompted to restart the VM. Click Restart Now.

    VirtualBox prompt

  11. When the vm reboots you may see a message Please remove the installation medium, then press ENTER:

    VirtualBox prompt

    From the VirtualBox menu select Machine > Settings.

    On the right side, select Storage to show the screen where we previously selected the iso file. If the Ubuntu iso file is still there, remove it. Otherwise close the Settings window, then in the VM press Enter to finish booting Ubuntu.

  12. If all went well, the VM should boot to the Ubuntu login screen. Select your user and enter your password to login.

    VirtualBox prompt

  13. As a final step, it is best practice to apply any available updates.

    You may be automatically prompted to install updates after first logging in and can simply hit Install Now.

    VirtualBox prompt

    Otherwise, you can follow the steps in my article How to check for updates in Ubuntu 18 Desktop (the same steps still apply for Ubuntu 20).

You have now completed the install of Ubuntu 20 in VirtualBox on Windows 10.

Optional Steps

Adjust Display settings

By default the VM will only have 16 MB video memory. I have found this is not enough, especially once VirtualBox Guest Additions are installed. I recommend changing this to 128 MB if your host system can handle it.

  1. Ensure the virtual machine is not running.

  2. In VirtualBox, select the virtual machine Ubuntu 20 LTS and click Settings.

    VirtualBox settings

  3. In the left pane select Display.

  4. Adjust the Video Memory to 128 MB.

    VirtualBox video memory

  5. Click OK to save the changes.

Install VirtualBox Guest Additions

Finally, if you wish to install the VirtualBox Guest Additions in Ubuntu 20, please see this article for instructions.