VirtualBox: Windows Host

windows and ubuntu-gray.png

Image credit: keypuncher staff

My go to Virtual Machine is VirtualBox. It’s not as spiffy as VMWare but it’s free and powerful.

Host vs Guest VM

This page states:

The host operating system is software on a computer that works with the underlying hardware. The term is typically used when differentiating from the guest operating system used in a virtualized server.

We are going to install a Linux guest OS onto a Windows host OS. I will use Windows 10 as my host and Ubuntu 18.04 as my guest.

Step 1: Download VirtualBox

In Windows, navigate to the VirtualBox website. I’m going to be using VirtualBox 6.1.18. In your favorite browser navigate to the downloads page and click on “Windows hosts.” This should bring up a dialog that looks something like this:

virtualbox-download.png

Install VirtualBox with the default settings.

virtualbox-install1.png

Make sure you find the icon that lets you make changes to Windows. It has a shield icon on the taskbar and was hard to find the first time I ran the installer.

virtualbox-install2.png
virtualbox-install3.png

It’s OK to install the Oracle Network interfaces:

virtualbox-install4.png

Make sure to:

  • allow virtualbox to allow changes to your device

  • allow the Oracle USB driver to install

  • to install the Oracle network adapters and the Oracle network service

virtualbox-install5.png
virtualbox-install6.png

After installing, run VirtualBox. It should be under “Oracle VM VirtualBox” in your Start menu. To access the Start menu, click the window icon in the lower-left corner of the screen.

virtualbox-welcome.png

Step 2: Install Ubuntu Inside VirtualBox

Point your browser at ubuntu.com. As of this writing the latest version is 20.10, but I’m using Ubuntu 18.04. You’re free to use whatever version you like. To use the version I did, use this link.

Then select “Machine > New…” inside VirtualBox.

virtualbox-new-vm.png

Set the guest OS type:

virtualbox-new-vm2.png

Specify the amount of memory to allocate to the guest OS. I’m allocating 4 GB.

virtualbox-new-vm3.png

Create a virtual hard disk to store your files in your guest OS.

virtualbox-new-vm4.png

In this guest I’m using VDI.

virtualbox-new-vm5.png

I’m using a dynamically allocated disk.

virtualbox-new-vm6.png

I’m allocating 25 GB for my virtual disk.

virtualbox-new-vm7.png

With that we are all finished with the new virtual machine wizard. Your new VM should look something like this:

virtualbox-ubunut-almost-ready.png

Remember downloading Ubuntu before? This is where we specify its location. Right click on Storage (IDE Secondary Device) and specify an optical drive by clicking “Choose a disk file…”

virtualbox-choose-iso.png

This brings up the following dialog. Click “Add Disk Image.”

virtualbox-add-image.png

Select the image of Ubuntu downloaded previously. Here you see it in my Downloads folder.

virtualbox-select-ubuntu.png

Now there should be an Optical Drive in the IDE controller of the Storage section.

virtualbox-start-ubuntu.png

Step 3: Start Ubuntu In VirtualBox

Now we are ready to fire up Ubuntu on our Windows Host! Click “Start” with the green arrow next to it. Ubuntu will probably take a few seconds to initialize and then you should see this screen. Choose your desired language.

ubuntu-vb-screen1.png

Then use the arrow keys and select “Install Ubuntu.”

ubuntu-vb-screen2.png

Ubuntu will begin installing.

ubuntu-vb-screen3.png

Select the desired language one more time.

ubuntu-vb-screen4.png

I installed with the following options:

ubuntu-vb-screen5.png

Don’t be afraid to erase the entire disk. It’s only going to erase this disk inside the VM.

ubuntu-vb-screen6.png

Yes, you really want to overwrite the disk.

ubuntu-vb-screen7.png

Now enter a username and password. Remember this password!

ubuntu-vb-screen8.png

Ubuntu will begin installing inside the VM.

ubuntu-vb-screen9.png

The installation will run for several minutes. Then you will be met with this screen. Just click “Restart Now.”

ubuntu-vb-screen10.png

We can’t very well remove the installation media from a “virtual” drive so just press enter.

ubuntu-vb-screen11.png

Congratulations! You’ve just installed a virtual machine!

Step 4: Post Installation

I like to run through some steps after I finish installing. First, log in.

ubuntu-vb-screen12.png

Ubuntu will be way out of date despite the advertised promise to install updates. Install these updates then restart the VM.

ubuntu-vb-screen13.png

Next I like to remove Thunderbird mail because I don’t use it anyway. Right click on it and remove it from favorites.

ubuntu-vb-screen14.png

In the lower left corner there should be an icon with 9 dots. Click it.

ubuntu-vb-screen15.png

This should allow you to search for applications.

ubuntu-vb-screen15.5.png

Type “terminal” in the search box.

ubuntu-vb-screen16.png

Right click on the Terminal application and click “Add to Favorites.”

ubuntu-vb-screen17.png

This should result in a Terminal icon getting added to the left bar.

ubuntu-vb-screen18.png
Previous
Previous

VirtualBox USB

Next
Next

GNU Make