How to Run Ubuntu on VirtualBox: The 2026 Beginner's Guide

15 Min Read  |  Updated: Jan 2026

Screenshot of VirtualBox Name and Operating System setup screen

So, you've heard about Linux. You want to see what the hype is about—maybe learn some terminal commands or host a server—but you're terrified of accidentally wiping your Windows hard drive. I get it. I've been there.

The solution? VirtualBox.

Think of VirtualBox as a computer inside your computer. It allows you to run Ubuntu in a safe, isolated window. If you break something inside Ubuntu, you just delete the file and start over. Your main computer remains completely untouched. In this guide, I'll walk you through every single click.

1. Gather Your Tools

Before we start hacking away, we need to download two main files. Don't worry, they are both 100% free.

Download VirtualBox Download Ubuntu ISO
Note for downloading Ubuntu: You want the "LTS" version (Long Term Support). As of 2026, grab the latest 24.04 LTS or 26.04 LTS if available.
Advertisement

2. Create the Virtual Machine

Install VirtualBox like you would any other program. Once installed, open it up. You'll see a mostly empty grey window. Let's fix that.

Step-by-Step:

  1. Click the big blue "New" star icon in the toolbar.
  2. Name: Type "Ubuntu". VirtualBox is smart—it will automatically detect the Type as Linux and Version as Ubuntu (64-bit).
  3. ISO Image: Click the dropdown and select "Other...", then find the Ubuntu `.iso` file you downloaded in Step 1.
  4. Check the box that says "Skip Unattended Installation". (Trust me on this, the unattended installer often glitches. We'll do it manually to be safe.)
Screenshot of VirtualBox Name and Operating System setup screen

3. Allocate Resources (RAM & CPU)

Now we need to decide how much power to give your virtual machine. Think of this as slicing a piece of your actual computer's power cake to feed Ubuntu.

  • Base Memory (RAM): I recommend at least 4096 MB (4GB). If you have 16GB or 32GB on your PC, feel free to give it 8GB. Do not go into the "Red" zone on the slider.
  • Processors (CPU): Give it at least 2 CPUs. Ubuntu runs sluggishly on 1 core.
Warning: Never allocate more than 50% of your total RAM or CPU to the VM, or your main Windows PC will lag efficiently.

Create Virtual Hard Disk

On the next screen, it asks for a Hard Disk. The default 25GB is usually fine for testing. Click Next and then Finish.

4. Install Ubuntu

Your VM is created, but it's "turned off." Select your new Ubuntu VM on the left list and click the big green Start arrow.

A window will pop up. It might look like Matrix code for a few seconds—that's normal! Eventually, you will see the Ubuntu installer.

Ubuntu Installation Welcome Screen
  1. Select Install Ubuntu.
  2. Keyboard Layout: Pick your language.
  3. Updates and other software: Select Normal Installation. I also highly recommend checking "Install third-party software for graphics and Wi-Fi hardware"—this includes drivers for MP3 playback and video.
  4. Installation Type: Select Erase disk and install Ubuntu. DON'T PANIC! This only erases the "Virtual Hard Disk" we created in Step 3. It does NOT erase your actual Windows hard drive.
  5. Click Install Now -> Continue.
  6. Pick your Timezone and create your User Account (Username/Password).

Now, grab a coffee. The installation will take 10-15 minutes.

5. The Secret Sauce: Guest Additions

Once the install is done, you'll restart the VM. You might notice the screen is small, square, and won't resize to full screen. It feels laggy. This is because we are missing drivers.

We need to install VirtualBox Guest Additions.

The Easy Way:

  1. In the VirtualBox window menu (top left), go to Devices -> Insert Guest Additions CD image...
  2. Inside Ubuntu, a CD icon will appear on the left dock. Click it.
  3. Right-click inside the folder window and select "Open in Terminal".
  4. Type the following command and hit Enter (you will need your password):
sudo ./VBoxLinuxAdditions.run

Let it run. Once it says "Press Return to close this window," restart your VM one last time.

Boom. Now you can resize the window, copy-paste between Windows and Ubuntu, and enjoy smooth performance.

Troubleshooting Common Issues

Things don't always go smoothly. Here is how to fix the most common headaches users face in 2026.

Ubuntu Installation Welcome Screen

Error: "VT-x/AMD-V hardware acceleration is not available"

The Fix: This means Virtualization is disabled in your computer's BIOS. Restart your real computer, enter BIOS (usually F2, F10, or Del key), and enable "Intel Virtualization Technology" or "SVM Mode" (for AMD).

Black Screen on Boot

The Fix: Shut down the VM. Go to Settings > Display. Increase Video Memory to 128MB. Also, try unticking "Enable 3D Acceleration" if it's currently on.

Internet Not Working in Ubuntu

The Fix: By default, VirtualBox uses "NAT". If this fails, go to Settings > Network and change "Attached to" from NAT to Bridged Adapter. This treats the VM like a real device on your WiFi.

"Kernel driver not installed (rc=-1908)"

The Fix: This happens on macOS often. You need to go to System Preferences > Security & Privacy and "Allow" Oracle America to load software. Then reinstall VirtualBox.

Conclusion

Congratulations! You are now running a full Linux desktop inside your computer. You can browse the web, learn Python, or set up a web server.

If you're ready to take this to the next level and run a server online that your friends can actually join, check out our Free Game Server Hosting for a real challenge.