How to install Ubuntu in VirtualBox on Windows PC

The first thought is that a user would need a separate machine just for the Linux software or that they would need to replace Windows with Linux on Windows PC. But this is not the case. Let's check out how to install Ubuntu on a Windows host machine using VirtualBox.


Windows users that are looking to use Linux or at least try it out for the first time may seem at a loss on how to go about doing it. The first thought is that a user would need a separate machine just for the Linux software or that they would need to replace Windows with Linux on their Windows machine.

But this is not the case. This article will explain how to install Ubuntu on a Windows host machine using VirtualBox.

Installing Ubuntu on VirtualBox on Windows

To follow this guide, you will need to download Ubuntu and Virtualbox.

Installing VirtualBox:

Install Virtual Box
Install Virtual Box


Once you have downloaded VirtualBox, navigate to the download folder and double-click the VirtualBox installer.

    1. The Welcome Screen is the first screen to appear. Click Next to move on.
    2. You will choose which components you wish to have installed. I recommend leaving the default options selected. Click Next to go to the next screen.
    3. On the Custom Setup screen, choose which folder on which you want VirtualBox to be installed. Click Next.
    4. On this screen, you will choose whether or not to have a desktop shortcut created. Click Next again.
    5. It will be the Network Warning screen, and you will select Yes.
    6. You are now ready to install VirtualBox, so click Install to start the installation.

Note: During the installation of VirtualBox, you may be asked to allow permissions to install the application and you will want to be sure to allow these permissions so that VirtualBox can install completely.

Setting Up VirtualBox:

Virtual Box Setup
Virtual Box Setup

Once the installation of VirtualBox is complete, it is time to set it up and get everything ready to install Ubuntu.

    1. After the installation, a screen will appear with an option to Start Oracle VM VirtualBox after Installation. Please be sure the box is checked beside this option and then click Finish to complete the installation.
    2. If the box in the previous step was checked, then VirtualBox should have started and shown you the main screen. Otherwise, you will need to double-click the shortcut icon on the desktop or the icon within the folder you installed VirtualBox within.
    3. On the main screen click New in the toolbar at the top left of the window.
    4. On the next screen, you will define the type of virtual machine that you want to create.
        1. Enter a name into the Name box. (e.g. Ubuntu)
        2. Select Linux as the type.
        3. Choose Ubuntu as the version.
        4. Click Next.

Virtual Box Setup 2
Virtual Box Setup

    1. On the next screen, you will allocate memory to the virtual machine. You don’t want to go below the minimum memory specified, but you also want to make sure that enough memory is left so that your Windows operating system can keep running. If you have enough memory, I recommend increasing the bar to between 2 gigabytes (2048 megabytes) and 4 gigabytes. Once you have moved the slider to your selection, click Next.

Creating Virtual Machine - Memory Size
Creating Virtual Machine – Memory Size

    1. The next step is to create a virtual hard drive.
        1. Select Create a virtual hard drive now and then click Create.
        2. Next, you will be asked to select what type of hard drive you want to create. By default, VDI is selected, which is native to VirtualBox. Make sure VDI is selected and click Next.
        3. Select the desired hard drive type. A fixed size hard drive is created with a maximum size that you choose while a dynamically sized hard drive adds space as needed. I recommend going with a fixed size hard drive for better performance. Once your desired hard drive type is selected, click Next.
        4. Now you will need to specify the amount of disk space that will be allocated to the Virtual Machine. You should not go below the minimum, and if you can spare the space, I recommend at least 20 gigabytes. Choose where the virtual machine will be saved and then specify the disk size. Once done click Create.

Start Virtual Machine
Start Virtual Machine

    1. With the Virtual Machine created, it is time to start it. Press the Start button on the toolbar.
    2. With the first boot, you will be required to select a startup disk.
        1. Click the folder icon.
        2. Navigate to the downloads folder or to where you downloaded the Ubuntu file to and select Ubuntu ISO.
        3. Click Start.

Installing Ubuntu within VirtualBox:

Ubuntu Install
Ubuntu Install


Ubuntu will now start as a live version within VirtualBox to go through the steps to install it.

    1. Choose the installation language and click Continue.
    2. The next screen will show you the computers statistics. I recommend plugging into a power source if you are on a laptop. There will be two checkboxes at the bottom of the screen. You will need to choose whether or not to install updates as you go. Then choose whether or not to install 3rd party software. For these choices, I recommend installing the updates as you go and waiting to install 3rd party software post installation.
    3. Click Continue.
    4. The next step is partitioning the hard drive. Don’t panic as this is strictly for the virtual hard drive on VirtualBox and will not affect Windows. Select Erase disk and install Ubuntu.
    5. Click Install Now.
    6. Choose your location by clicking on the map. It sets the timezone. Click Continue.
    7. Choose the language for your keyboard.
    8. Choose the type of keyboard.
    9. Click Continue.
    10. On the next screen, you will fill in who you are.
        1. Enter your name.
        2. Choose a name for your virtual machine.
        3. Create a username.
        4. Create a password and repeat the password.
        5. Choose whether to automatically login or require username and password to login.
        6. Choose if you want the home folder encrypted.
        7. Click Continue.
    11. Once the installation is complete, you will need to reboot the virtual machine. It can be done by clicking the icon in the top right corner of the Ubuntu desktop and clicking restart.

Ubuntu is now good to go, and it’s time to enjoy!

Divya Kiran Kumar
I'm the Editor of FOSS Linux. I worked as a Software Engineer before taking up blogging as my full-time job. I enjoy using Linux, and can't imagine anything else for my PC. Apart from writing for FOSS Linux, I enjoy reading non-fictional books. Sapiens was my favorite last read. I hope you enjoy reading and using this blog to enhance your Linux experience! Have a great day ahead!


Please enter your comment!
Please enter your name here




Top 20 Git Commands with Practical Examples

If you are here reading this post, there is a high probability that you have heard or interacted with Github, and you now want to learn Git. Before we continue with showing you some of the cool Git commands, let's understand the difference between Git and GitHub.

Top 10 New Features in Linux Kernel 5.7

Linus Torvalds has announced the release of Linux Kernel 5.7 after seven weeks of development. The release announcement comes as a piece of exciting news as it brings a host of new features for the hardware manufacturers as well as the developers.

How to install CMake on Ubuntu

CMake is a cross-platform free and open-source software tool designed to build, test, and package the software. CMake uses a simple platform and compiler-independent configuration files to control the software compilation process.

How to install Lightworks on Ubuntu

Even though Linux may not get a native installer of video editing software like Adobe Premiere or Final Cut Pro, that doesn't mean there are no industry standards tools available. Lightworks is non-linear editing (NLE) video mastering app for Windows, Linux, and macOS. Installing it on Ubuntu is simple due to deb package availability.

How to install DaVinci Resolve on Fedora

Davinci Resolve is a professional application used for color correction, video editing, visual effects, and motion graphics. It is one of the extensively used software by movie industries located in Hollywood.

The 10 Best Programming Languages for Hacking

One of the significant entities we have in Cyber Security is Ethical Hacking (ETH). It is the process of detecting and finding flaws or vulnerabilities in a system that a hacker would exploit.


Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

What is the difference between Linux and Unix?

When discussing Linux and Unix with average users, it's not uncommon that they will sometimes mistakenly interchange the terms Linux and Unix.  The two are not the same.  Though they share similarities in their overall structures and toolkits, they are decidedly not the same.

Installing an updatable Manjaro Linux on a USB Flash Drive

In this tutorial, we will show step by step how to install a Manjaro on a USB flash. For those new to this distro, it is a light-weight distro that is based on Arch Linux. Arch Linux is known for its simplistic approach and is typically made for Linux pros, but Manjaro bridges the gap between user-friendliness and rock-solid performance.

6 Best Linux Distributions for Beginners

Making the shift to Linux is not as complicated as some people make it out to be. There is a variety of Linux distributions available that cater to the needs of people who are planning on making the jump to Linux from any other operating system.

15 Tar command in Linux uses with examples

Tar is a famous utility that is basically used for collecting multiple files in a single archive. This file is often called a 'tarball'. Today, we are going to tell you about the different things you can do with tarballs using the tar command, with practical examples.