Installing Ubuntu on a Windows operating system can be a great way to explore Linux without altering your main OS. In this guide, I’ll walk you through the process of installing Ubuntu 22.04 LTS on Oracle VirtualBox on Windows 11. VirtualBox allows you to run multiple operating systems on your host computer, enabling you to use Ubuntu virtually alongside Windows. Let’s get started!
What is VirtualBox?
VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. With VirtualBox, you can install and run other operating systems, like Ubuntu, on your Windows host without affecting your existing system. This is particularly useful for testing, development, or simply learning about Linux.
Read More: 3 Methods to Upgrading to Windows 11: A Step-by-Step Guide
Getting Start: Downloading VirtualBox
Before installing Ubuntu, we need to download and install VirtualBox. Here’s how to do it:
- Open your favorite web browser and search for “VirtualBox“. You will see a big Download VirtualBox button.
- Click on the button or navigate to Downloads and select Windows hosts. This will download an executable (.exe) file.
- Once downloaded, run the installer and follow the prompts to complete the installation.
Downloading Ubuntu 22.04 LTS ISO File
Next, we need to download the Ubuntu 22.04 LTS ISO file. This is the file we will use to install Ubuntu in VirtualBox.
- Open your web browser and search for Ubuntu, then navigate to Downloads.
- Navigate to the downloads section and find the 22.04 LTS version. Make sure to choose the LTS version as it has long-term support.
- Click on the green button to download the ISO file.
Setting Up the Virtual Machine (Ubuntu 22.04) in VirtualBox
Once you have VirtualBox installed and the Ubuntu ISO file downloaded, it’s time to set up your virtual machine:
- Open VirtualBox and click on the “New” button to create a new virtual machine.
- Give your virtual machine a name like “Ubuntu 22.04”. VirtualBox will automatically detect the type as “Linux” and version as “Ubuntu (64-bit)”.
- Select the memory size. It’s recommended to move the slider to the end of the green mark, which is typically around 4 GB for Ubuntu.
- Choose to create a new virtual hard disk now and click Create.
- Leave the hard disk file type as VDI and click Next.
- Select Dynamically allocated for the storage type and click Next.
- Allocate around 100 GB for your virtual hard disk and click Create.
Configuring the Virtual Machine
Now that you have created the virtual machine, you need to configure it before starting:
- Select your newly created virtual machine and click on “Settings”.
- In the General section, go to Advanced and set Shared Clipboard and Drag and Drop to Bi-directional.
- In the System section, you can allocate more CPUs if your machine allows it. For example, allocate 4 CPUs.
- In the Storage section, click on the empty disk icon, then click on the CD icon to select the Ubuntu ISO file you downloaded earlier.
Installing Ubuntu in VirtualBox
Now that everything is set up, we can start the installation of Ubuntu.
- Select your virtual machine and click on Start.
- When prompted, select Try or Install Ubuntu and press Enter.
- Select your preferred language and click on Install Ubuntu.
- Choose your keyboard layout and click Continue.
- In the next window, select Normal installation and check the boxes for downloading updates and installing third-party software. Then click Continue.
- When you see the option Erase disk and install Ubuntu, don’t worry; this only applies to the virtual hard disk and not your host machine. Click Install Now.
- Select your region and click Continue.
- Fill in your details, including your name, computer name, and password, then click Continue.
- The installation will now proceed. Wait until the progress bar reaches 100%.
- Once the installation is complete, click on Restart Now.
When prompted, remove the installation medium and press Enter. Your virtual machine will restart, and you will see the login screen for Ubuntu.
Post-Installation: VirtualBox Guest Additions
After installation, it is important to install VirtualBox Guest Additions to optimize performance and improve usability.
- Open the terminal in Ubuntu and run the following command to update the package list:
sudo apt update
- Next, install the required packages:
sudo apt install -y build-essential linux-headers-$(uname -r)
- In VirtualBox, click on Devices and select Insert Guest Additions CD Image.
- Open the mounted CD image and run the autorun.sh script to install Guest Additions.
- After installation, restart your virtual machine to apply the changes.
Using Ubuntu on VirtualBox
Now you can use Ubuntu on your Windows 11 system through VirtualBox. You should notice improved performance and functionality due to the Guest Additions installation, including the ability to resize the window and share files between the host and guest OS.
Read More: How to Disable Weather Widget in Windows 11?
To wrap things up
Congratulations! You have successfully installed Ubuntu 22.04 LTS on your Windows 11 operating system using VirtualBox. This setup allows you to explore Ubuntu and its features without affecting your main system. Enjoy your journey into the world of Linux!