Close Menu
  • AI Tools
    • Claude AI
    • ChatGPT
    • Cursor AI
    • GitHub Copilot
  • Programming
    • Python
    • JavaScript
  • About
  • Contact Us
Facebook X (Twitter) Instagram
Skill Trek
Facebook X (Twitter) Instagram Pinterest
  • AI Tools
    • Claude AI
    • ChatGPT
    • Cursor AI
    • GitHub Copilot
  • Programming
    • Python
    • JavaScript
  • About
  • Contact Us
Subscribe
Skill Trek
Home»Programming»How to Install Ubuntu on VirtualBox in Windows 11 (Step-by-Step Guide)
Programming

How to Install Ubuntu on VirtualBox in Windows 11 (Step-by-Step Guide)

Md Al MamunBy Md Al MamunSeptember 4, 2026Updated:November 22, 2026No Comments11 Mins Read
Share Facebook Bluesky Threads Pinterest Twitter LinkedIn Tumblr Email
Follow Us
Facebook X (Twitter) Pinterest LinkedIn
Share
Facebook Bluesky Pinterest Threads Email Copy Link

Want to try Ubuntu without removing Windows 11 or setting up a dual-boot system?

If you’re interested in learning Linux, practicing programming, developing applications, or exploring open-source software, installing Ubuntu on a virtual machine is an excellent place to start.

In this tutorial, I’ll show you how to install Ubuntu on VirtualBox in Windows 11, step by step. By the end of this guide, you’ll have a fully functional Ubuntu desktop running inside your Windows computer.

We’ll cover everything from downloading VirtualBox and the Ubuntu ISO file to creating a virtual machine, configuring hardware resources, and completing the Ubuntu installation.

Watch the complete video tutorial:

Let’s get started!

What You Need Before Installing Ubuntu

Before starting the installation, make sure you have the following:

  • A Windows 11 PC
  • A stable internet connection
  • Enough free storage space
  • At least 8 GB of RAM recommended
  • A processor that supports hardware virtualization
  • Oracle VirtualBox
  • Ubuntu Desktop ISO file

For a comfortable Ubuntu experience, here are my recommended virtual machine settings:

HardwareRecommended Allocation
RAM8 GB
CPU Cores4 Cores
Virtual Disk50–100 GB
Architecture64-bit

These are recommended settings, not strict requirements. You can adjust them depending on your computer’s available resources.

Important: Make sure hardware virtualization (Intel VT-x or AMD-V) is enabled in your BIOS/UEFI settings if VirtualBox cannot start your virtual machine.


Step 1: Download VirtualBox on Windows 11

First, we need to download and install Oracle VirtualBox.

VirtualBox is free virtualization software that allows you to run another operating system inside your existing operating system.

For example, you can run Ubuntu on your Windows 11 computer without removing Windows or creating a dual-boot configuration.

Follow these steps:

  1. Open your preferred web browser.
  2. Search for VirtualBox Download.
  3. Visit the official VirtualBox website.
  4. Click the Download button.
  5. Find the platform-specific packages.
  6. Select Windows hosts.

The VirtualBox installer will start downloading.

Save the installer in your Downloads folder or another location where you can easily find it.

Official download page: https://www.virtualbox.org/wiki/Downloads

Step 2: Install VirtualBox on Windows 11

Once the download is complete, open your Windows Downloads folder.

Find the VirtualBox setup file and double-click it to start the installation.

The VirtualBox Setup Wizard will appear.

Click Next to continue.

Choose the Installation Location

VirtualBox will display the default installation location.

You can keep the default location on your C: drive unless you have a specific reason to change it.

Click Next.

Network Interface Warning

During installation, you may see a warning that your network connection will be temporarily disconnected.

This is normal because VirtualBox needs to install virtual networking components.

Click Yes to continue.

Your internet connection may briefly disconnect during this process.

Python Dependencies Warning

Depending on your VirtualBox installer version and selected components, you may see a warning about missing Python binding dependencies.

If you don’t need Python integration with VirtualBox, you can generally continue without installing those optional components.

Complete the Installation

Keep the default installation options selected and click Next.

Then click Install.

Windows may ask for permission to allow the installer to make changes to your computer.

Click Yes to continue.

Wait a few moments while VirtualBox installs.

Once the installation is complete, click Finish.

VirtualBox should now open automatically.

Step 3: Download the Ubuntu ISO File

Now that VirtualBox is installed, we need to download the Ubuntu installation image.

An ISO file is a disk image containing the operating system installation files. VirtualBox will use this file to install Ubuntu inside the virtual machine.

Follow these steps:

  1. Open your web browser.
  2. Search for Ubuntu Download.
  3. Visit the official Ubuntu website.
  4. Select Download Ubuntu Desktop.
  5. Choose the latest available Ubuntu Desktop release.
  6. Select the appropriate architecture for your computer.

For this tutorial, we’re using Ubuntu 26.04.1 LTS.

If you’re using a standard Intel or AMD Windows 11 PC, select the 64-bit Intel/AMD version.

Click Download and save the ISO file somewhere easy to access, such as your Downloads folder.

The ISO file can be several gigabytes in size, so the download may take some time depending on your internet connection.

Official download page: https://ubuntu.com/download/desktop

Step 4: Create an Ubuntu Virtual Machine in VirtualBox

After downloading the Ubuntu ISO file, return to VirtualBox.

Now we’ll create a new virtual machine for Ubuntu.

Follow these steps:

  1. Open VirtualBox.
  2. Click the New button.
  3. A new virtual machine configuration window will appear.

Enter the Virtual Machine Name

In the Name field, enter a name for your virtual machine.

For example:

Ubuntu Desktop

You can choose any name you prefer.

VirtualBox may automatically detect the operating system type based on the name.

Step 5: Select the Ubuntu ISO File

Next, we need to select the Ubuntu ISO file that we downloaded earlier.

Look for the ISO Image option.

Click the dropdown menu and select Other.

Now follow these steps:

  1. Navigate to the folder where you downloaded Ubuntu.
  2. Select the Ubuntu ISO file.
  3. Click Open.

VirtualBox should automatically detect the operating system information from the selected ISO file.

Click Next to continue.

Step 6: Create Your Ubuntu User Account

The next screen allows you to configure your Ubuntu user account.

You’ll need to enter the following information:

  • Username
  • Password
  • Confirm Password

For example:

FieldExample
Usernameubuntu
PasswordYour preferred password
Confirm PasswordEnter the same password

Choose a secure password that you’ll remember because you’ll need it when logging into Ubuntu.

Important: Your Ubuntu account password is separate from your Windows password.

After entering your details, click Next.

Step 7: Configure Virtual Machine Hardware

Now we need to allocate some of your computer’s hardware resources to Ubuntu.

VirtualBox allows you to configure:

  • RAM (Memory)
  • CPU cores
  • Virtual disk space

These settings determine how smoothly Ubuntu runs inside Windows 11.

Allocate RAM

First, configure the amount of RAM you want to allocate to Ubuntu.

For example, if your Windows computer has 16 GB of RAM, allocating approximately 8 GB to the Ubuntu virtual machine is a reasonable starting point.

Avoid allocating too much RAM because Windows also needs memory to run applications.

Allocate CPU Cores

Next, choose how many CPU cores you want to assign to Ubuntu.

For example, if your computer has an 8-core processor, you can allocate:

4 CPU cores

This gives Ubuntu sufficient processing power while leaving resources available for Windows.

Configure Virtual Disk Space

Now configure the virtual hard disk.

For example, you could allocate:

106 GB

The amount of storage you choose depends on what you plan to do inside Ubuntu.

If you’re only learning Linux and running basic applications, you may need less storage.

However, if you’re planning to install development tools, programming environments, and other applications, allocating more space can be helpful.

A dynamically allocated virtual disk is a good option because it can grow as you add files, up to its configured maximum size.

Once you’ve configured the hardware, click Next.

Step 8: Review the Virtual Machine Configuration

VirtualBox will now display a summary of your virtual machine configuration.

Review all the settings before creating the virtual machine.

For example:

ConfigurationSelected Value
Operating SystemUbuntu
RAM8 GB
CPU4 Cores
Virtual Disk106 GB
ISO ImageUbuntu Desktop ISO

If everything looks correct, click Finish.

Your Ubuntu virtual machine has now been created.

Step 9: Start the Ubuntu Installation

Now it’s time to install Ubuntu.

Your newly created virtual machine should appear in the VirtualBox Manager.

Follow these steps:

  1. Select your Ubuntu virtual machine.
  2. Click the Start button.
  3. VirtualBox will power on the virtual machine.
  4. Ubuntu will boot from the selected ISO file.

Ubuntu will load the necessary files and display the installation interface.

Follow the on-screen instructions to complete the installation.

Depending on your computer’s performance, this process may take several minutes.

Note: Some VirtualBox versions offer an unattended installation option that automatically configures the user account and performs installation steps. If you’re using this option, some installation screens may look different from a manual installation.

Step 10: Log In to Ubuntu

Once the Ubuntu installation has finished, your virtual machine will restart.

You should eventually reach the Ubuntu login screen.

Select the user account you created earlier.

Enter your password and press Enter.

You should now be logged into your new Ubuntu desktop!

Step 11: Complete the Ubuntu Initial Setup

The first time you log into Ubuntu, you may see several initial setup screens.

Follow the on-screen instructions.

You may be asked to:

  • Select your preferred language.
  • Configure your keyboard layout.
  • Connect to a network.
  • Choose privacy settings.
  • Select your preferred desktop appearance.

You can skip optional setup steps if you don’t need them immediately.

When you’re finished, click Finish.

Congratulations! Ubuntu is now installed and running inside VirtualBox on your Windows 11 computer.


Bonus: Install VirtualBox Guest Additions

After installing Ubuntu, I recommend installing VirtualBox Guest Additions.

Guest Additions provide additional integration features between Ubuntu and Windows.

These features can include:

  • Improved display resolution.
  • Automatic window resizing.
  • Shared clipboard.
  • Drag-and-drop support.
  • Better mouse integration.
  • Shared folders.

To install Guest Additions:

  1. Start your Ubuntu virtual machine.
  2. Log in to Ubuntu.
  3. From the VirtualBox menu, select Devices.
  4. Click Insert Guest Additions CD Image.
  5. Follow the installation instructions shown inside Ubuntu.
  6. Restart the virtual machine when the installation finishes.

Guest Additions can significantly improve your overall virtual machine experience.


What Can You Do with Ubuntu on VirtualBox?

Now that Ubuntu is installed, you can use your virtual machine for many different purposes.

Here are some examples:

1. Learn Linux: Practice Linux commands, understand the Linux file system, and explore the Ubuntu desktop.

2. Programming: Develop applications using Python, Java, C++, and other programming languages.

3. Learn DevOps: Practice Docker, Kubernetes, Git, and other DevOps tools.

4. Software Testing: Test applications in a separate operating system without changing your main Windows environment.

5. Server Administration: Learn Linux server management, user permissions, networking, and system administration.

6. Explore Open-Source Software: Install and experiment with different open-source applications.

The best part is that you can experiment with Ubuntu while keeping your existing Windows 11 installation intact.

Frequently Asked Questions (FAQs)

1. Is VirtualBox free to use?

Yes. Oracle VirtualBox is free and open-source software. You can download and use it on Windows, macOS, and Linux.

2. Can I install Ubuntu on Windows 11 without removing Windows?

Yes! You can install Ubuntu inside VirtualBox without removing or modifying your existing Windows installation.

Ubuntu runs inside a separate virtual machine.

3. How much RAM should I allocate to Ubuntu in VirtualBox?

For a comfortable desktop experience, 4–8 GB of RAM is a good starting point.

If your computer has 16 GB of RAM, allocating 8 GB to Ubuntu is a reasonable configuration.

4. Does Ubuntu on VirtualBox have the same performance as a normal installation?

Not exactly.

Ubuntu runs inside a virtual machine, so it shares your computer’s hardware resources with Windows.

Performance can be slightly lower than a native installation, particularly for graphics-intensive applications.

5. Can I use Ubuntu and Windows at the same time?

Yes! That’s one of the biggest advantages of VirtualBox.

You can run Ubuntu inside a window on your Windows 11 desktop and switch between the two operating systems whenever you want.

6. Why is my Ubuntu virtual machine running slowly?

There are several possible reasons:

  • Insufficient RAM allocation.
  • Too few CPU cores assigned.
  • Hardware virtualization is disabled.
  • Limited available storage.
  • Guest Additions are not installed.

Check your virtual machine configuration and make sure your Windows computer has enough resources available.

7. Can I delete Ubuntu without affecting Windows 11?

Yes. Since Ubuntu is installed inside a virtual machine, you can remove the Ubuntu virtual machine from VirtualBox without uninstalling Windows 11.

However, make sure you back up any important files stored inside the virtual machine before deleting it.


Final Thoughts

Installing Ubuntu on VirtualBox is one of the easiest ways to start learning Linux on a Windows 11 computer.

In this tutorial, we’ve covered the complete installation process:

  1. Download VirtualBox.
  2. Install VirtualBox on Windows 11.
  3. Download the Ubuntu Desktop ISO file.
  4. Create a new Ubuntu virtual machine.
  5. Select the Ubuntu ISO file.
  6. Create your Ubuntu user account.
  7. Configure RAM, CPU, and storage.
  8. Review your virtual machine settings.
  9. Start the Ubuntu installation.
  10. Log in and complete the initial setup.
  11. Install VirtualBox Guest Additions.

If you’re new to Linux, this setup gives you a convenient environment to experiment, practice programming, and explore Linux without changing your main Windows installation.

If you found this tutorial helpful, don’t forget to subscribe to my YouTube channel for more tutorials about Linux, Python programming, AI tools, and technology.

Have fun exploring Ubuntu!

Share. Facebook Pinterest Telegram Bluesky Threads Email Copy Link
Previous ArticleHow to Use Claude Code for Free using Ollama in VS Code
Next Article How to Check Ubuntu Version: 3 Easy Methods (Step-by-Step Guide)
Md Al Mamun
  • Website
  • Facebook
  • X (Twitter)
  • Instagram
  • LinkedIn

a full-stack developer and educator with a community of over 144,000 learners across YouTube, Udemy, and Facebook. With years of hands-on experience in building modern web applications, I specialize in making complex topics easy to understand through clear, structured explanations and real-world examples.

Related Posts

How to Call an API in Python (Step-by-Step Guide for Beginners)

November 22, 2026

How to Install OpenCode in WSL on Windows 11 (Step-by-Step Guide)

November 22, 2026

How to Check Ubuntu Version: 3 Easy Methods (Step-by-Step Guide)

September 4, 2026
Add A Comment
Leave A Reply Cancel Reply

Recent Posts

  • How to Install ECC Repository in Claude Code (Step-by-Step Guide)
  • How to Use Hermes AI Agent with Ollama (Step-by-Step Guide)
  • How to Call an API in Python (Step-by-Step Guide for Beginners)
  • OpenCode Skills Tutorial: From Setup to Efficient AI Agents
  • How to Add a Custom Provider in OpenCode

Recent Comments

No comments to show.

Archives

  • November 2026
  • September 2026
  • August 2026

Categories

  • AI Tools
  • Claude AI
  • Google Antigravity
  • JavaScript
  • Programming
  • Python
  • Uncategorized
Quick Access
  • Home
  • About
  • Contact Us
  • Privacy Policy
  • Disclaimer
Facebook X (Twitter) Instagram Pinterest
  • Home
  • About
  • Contact Us
  • Privacy Policy
  • Disclaimer
© 2026 SkillTrek. All Rights Preserved by Md Al Mamun.

Type above and press Enter to search. Press Esc to cancel.