Step 1: Install a Virtualization Software
You'll need a virtualization tool like:
Oracle VirtualBox (Free) → Download Here
VMware Workstation Player (Free for personal use) → Download Here
Hyper-V (Built-in for Windows Pro & Enterprise)
For this guide, we’ll use VirtualBox.
Step 2: Download Ubuntu ISO
1. Go to Ubuntu’s official website.
2. Download the Ubuntu Desktop ISO (LTS recommended).
Step 3: Create a Virtual Machine in VirtualBox
1. Open VirtualBox and click "New".
2. Set up the VM:
o Name: Ubuntu
o Type: Linux
o Version: Ubuntu (64-bit)
3. Allocate RAM: At least 4GB (4096MB) (Recommended 8GB if your system allows).
4. Create Virtual Hard Disk:
o Select "Create a virtual hard disk now" → Click "Create".
o Choose "VDI (VirtualBox Disk Image)" → Click "Next".
o Choose "Dynamically allocated" → Click "Next".
o Set at least 25GB (Recommended: 40GB or more).
o Click "Create".
Step 4: Load the Ubuntu ISO and Boot the VM
1. Select your Ubuntu VM in VirtualBox and click "Settings".
2. Go to "Storage" → Click on Empty (under Controller: IDE).
3. Click on the CD icon on the right, then "Choose a disk file".
4. Select the Ubuntu ISO you downloaded.
5. Click OK, then Start the VM.
Step 5: Install Ubuntu in the Virtual Machine
1. When the VM boots, select "Install Ubuntu".
2. Choose Keyboard Layout and click "Continue".
3. Select Installation Type:
o Normal Installation (Recommended)
o Minimal Installation (For lighter use)
4. Disk Partitioning:
o Select "Erase disk and install Ubuntu" (This only affects the VM, not your
main PC).
o Click "Install Now" → Confirm changes.
5. Set Up User Details:
o Enter Username, Password, and Computer Name.
o Click "Continue".
6. Wait for the installation to complete, then Restart the VM.
Step 6: Post-Installation Setup
1. Remove ISO from VM:
o Go to Settings → Storage.
o Click on Ubuntu ISO → Choose Remove.
2. Update Ubuntu:
o Open Terminal (Ctrl + Alt + T).
o Run:
bash
CopyEdit
sudo apt update && sudo apt upgrade -y
3. Install Guest Additions (For Better Performance):
o Go to Devices → Insert Guest Additions CD Image in VirtualBox.
o Open Terminal and run:
bash
CopyEdit
sudo apt install -y build-essential dkms linux-headers-$(uname -r)
sudo sh /media/$USER/VBox_GAs*/VBoxLinuxAdditions.run
o Restart VM.