Installing Linux Using a Virtual Machine (original) (raw)

Last Updated : 28 Nov, 2025

Installing Linux on a Virtual Machine (VM) allows users to explore Linux’s power and flexibility without modifying their main operating system. Virtual machines enable running multiple operating systems simultaneously on a single computer.

These instructions are also applicable to other Linux distributions with minor adjustments.

Steps to Install Linux on a Virtual Machine

The first step is to choose the right virtualization program for you. Here are some popular choices:

Installation of Oracle VirtualBox

Oracle VirtualBox is a virtualization tool that allows users to run other operating systems on a host OS. For example, you can install Ubuntu on your Windows 11 system virtually using VirtualBox.

**Step 1 : To download VirtualBox, visit the Virtualbox website and choose the right version for your OS.

Screenshot-2024-05-25-201941-(1)

Installling Oracle Virtual Box

Choose the correct package to download VirtualBox based on your primary OS (Operating System). Here we are using windows operating system so will choose **Windows Hosts package to download.

**Step 2 : Run the downloaded setup or exe file. If it asks for making changes on your device, click **Yes.

**Step 3: Click **Next on setup wizard. It will redirect you to "custom setup" dialog box where you can choose or change the features that will be going to installed on you system.

Screenshot-2024-05-25-203026

Here, we will not make any changes. Click on Next, it will ask "**Proceed with the installation ?", Click **yes to go to next menu. Then, click on install. It will take some time to install on your system, basically depends on system to system. After that, click on finish.

Installing Linux Using a Virtual Machine

Step 4: Launch VirtualBox and Create a New VM

After installing VirtualBox on your system, open the application. The VirtualBox Manager window will appear. From here, you can view any previously created virtual machines and create new ones.

Click on New to start creating a new virtual machine. You will be asked to enter:

Screenshot-2024-05-25-204240

Step 5: Select Operating System and ISO

Screenshot-2024-05-25-205257

Step 6: Configure User Settings

For Ubuntu, VirtualBox allows you to define:

You can either customize these settings or use the default values. After that, click Next.

Screenshot-2024-05-25-225143

Step 7: Allocate Memory and CPU

Now, allocate system resources for your VM:

Click Next once done.

Screenshot-2024-05-25-225900

Step 8: Allocate Virtual Hard Disk

Screenshot-2024-05-25-230336

Step 9: Review and Finalize

Screenshot-2024-05-25-231320

Step 10: Final Setup Inside Ubuntu

During installation, you will be asked to:

Click Continue.

Screenshot-2024-05-25-232611

I

After this, a welcome screen will appear. The system may take some time to complete the setup as it configures essential files. You will also be guided through first-time Ubuntu settings like:

No need to worry - the process is smooth and user-friendly.

Screenshot-2024-05-25-233513

And that’s it. You’re all set!

Enable Fullscreen and Clipboard Support

The Linux VM might not resize to full screen automatically. To fix this:

**Step 1: Open Terminal and run:

sudo apt update

**Step 2: Then install the required packages:

sudo apt install -y build-essential linux-headers-$(uname -r)

**Step 3: In VirtualBox menu, go to Devices > Insert Guest Additions CD image.

**Step 4: If it doesn’t autorun, open the disk, right-click -> Open in Terminal.

sudo ./VBoxLinuxAdditions.run

**Step 5: Enter your password and press Enter and after completion, reboot your VM.

Once rebooted, resizing the window will now adjust the display properly.

Benefits of Using a Virtual Machine

Virtual machines provide a flexible, secure, and cost-effective way to run multiple operating systems and applications on a single physical computer.

1. Better Resource Utilization

2. Enhanced Security and Stability

3. Scalability

4. Cost Effectiveness

5. Good for Testing

6. Disaster Recovery

7. Seamless Migration

8. Snapshots and Cloning