- Download the latest Windows installer from the official site: https://www.virtualbox.org/wiki/Downloads
- Run the installer and follow the wizard (default options are fine). Reboot if prompted.
- Open VirtualBox → New.
- Name:
Ubuntu 22.04(or any name you like). - Type: Linux, Version: Ubuntu (64-bit).
- Allocate Memory: 4096 MB (or more if available).
- Create a Virtual Hard Disk → VDI, dynamically allocated, size 25 GB (or larger).
- Select the newly created VM → Settings → Storage.
- Under Controller: IDE, click the empty optical drive and then the small CD icon → Choose a disk file.
- Browse to the Ubuntu ISO you downloaded (e.g.,
C:\Downloads\ubuntu-22.04-desktop-amd64.iso).
- System > Motherboard: Enable EFI (only for UEFI‑based ISOs).
- Processor: Allocate 2‑4 CPU cores.
- Display > Screen: Increase Video Memory to 128 MB.
- Click Start.
- The VM will boot from the ISO – choose Install Ubuntu.
- Follow the regular Ubuntu installer steps (keyboard, updates, installation type → Erase disk and install Ubuntu – this only erases the virtual disk, not your host).
- When installation finishes, the VM will reboot. You may be prompted to remove the ISO – go back to Storage and detach it, then start the VM again.
- Install Guest Additions for better mouse/clipboard integration:
sudo apt update && sudo apt install -y build-essential dkms linux-headers-$(uname -r) sudo apt install -y virtualbox-guest-utils
- Set up Shared Folders in VirtualBox settings → Shared Folders → Add → folder path on Windows and mount it inside Ubuntu:
sudo mkdir /mnt/shared sudo mount -t vboxsf SharedFolderName /mnt/shared
- Adjust display resolution via View > Auto-resize Guest Display.
Tip: Snapshots – take a snapshot after a fresh install so you can revert easily.