Ubuntu VM on Windows Powered by Oracle VirtualBox

It is handy to have a virtual machine running on your main system. This allows for you to run malicious programs and have no worry of them spreading to your main system. A Hypervisor is a program or Operation System (OS) that manages the resources connected to the motherboard and allocates them to different virtual environments. This tutorial will cover how to install Ubuntu in a Virtual Environment managed by the software VirtualBox by Oracle.

The things you need:
• Your ICO Image that you will use to install on the Virtual Machine (VM). In this tutorial we will use the most recent Ubuntu Distribution/Flavor. Here is the download link from Ubuntu.com: https://ubuntu.com/download/desktop/thank-you?version=20.04.2.0&architecture=amd64
• The Hypervisor you are going to use to run the VMs. If you have Windows 10 Pro you have free access to Hyper-V. If you have a dedicated system for running VMs you can load a free Hypervisor OS VMware. For this tutorial we are going to use Oracle’s VirtualBox since this program will work for more users. The link for this program is: https://download.virtualbox.org/virtualbox/6.1.18/VirtualBox-6.1.18-142142-Win.exe Note: if this link does not work, go to the downloads page and pick the platform package that fits your OS: https://www.virtualbox.org/wiki/Downloads
• The last thing you need is a processor that can handle Virtual Processing. If your processor does support Virtual Processing then you may have to enable that in your BIOS. If you have an error starting the VM then the common problem will be that you do not have Virtual Processing enabled.

Step 1: Download and Install

Download the ICO Image and the VirtualBox installation.
Run the VirtualBox Installation and follow the prompts. For me the file is named “VirtualBox-6.1.16-140961-Win.exe”. It will require administrator permission and will also recommend a system restart to fully install.

Step 2: Create the VM for Ubuntu

After the restart open VirtualBox. It will look similar to this image, with no virtual machines created.

Click on the blue button titled “New”

Name the VM what ever you want.
Choose where you want the virtual machine the run from.
Be sure Linux and Ubuntu (64-bit) match your ICO image.
If you use all of your Memory/RAM for this VM then there is a chance that your main windows OS will fail. I would recommend using no more than half of your available RAM. If you run out of RAM then programs will freeze or crash.
Click “Create”

here you are creating a Virtal Drive. To the VM this will act like a HDD or SSD. If dynamically allocated is checked then if the drive needs more space then it will dynamically grow. Personally I would leave dynamically allocated checked so I do not have to worry about redoing everything if the drive is to small.

Once done click “Create”. Note I changed the drive to 20GB before creating.

Now we have a new VM created. Now we need to install the ICO image into the boot order.

Click the orange gear named “Settings”

Navigate to System > Processor. This is where you can change the number of cores that you want to allocate. I would recommend using 1/4 to 1/2 of your cores. the more you allocate the faster the install will be. Same with RAM. This window is designed to change the system configuration if the system is taking to many resources then you can change it and then boot up the VM.

Navigate to Storage > Optical Drive > Disk Icon > “Choose a disk file…”

Navigate to the ico file and open it.

Click “OK”

Step 3: Start the VM and Install Ubuntu

Now we are ready to start the VM and install Ubuntu on the VM. Click the green arrow “Start”.

If you get an error at this point or after you click “Start” then you need to enable Virtual Processing in the BIOS.

I will now show the options that I selected to install Ubuntu.

Normally this will work first try. To fix this I first clicked the X then told it to save the “Machine State”. I could not alter the boot settings with a save state so I clicked discard. Then I started the VM up again without changing any settings. and it booted like it should have.

After skipping through the prompts it asks to update. i would highly recommend doing this.

Now you are running a VM on your Window system.

Bonus: click the 3 by 3 dots > Terminal. Then enter the command “sudo apt install cmatrix”

Then the command “cmatrix”

If you have questions or comments feel free to post below.

1 comment

  1. I created this site to post Tech tutorials to help others grow in technology, and get their feet wet. This site is free and open for anyone to use. I do review each comment before it is publicly posted just to keep this a friendly place to learn and grow. I though this site was private. Now that I know this site is public I may change that to where the community can contribute freely. Thank You for your feedback.

Leave a Reply to admin Cancel reply

Your email address will not be published. Required fields are marked *