Step 1: Download VirtualBox
- Go to the official site: https://www.virtualbox.org/
- Click Download
- Choose your platform:
- Windows
- macOS
- Linux
Also download the Extension Pack (same version as VirtualBox) for extra features like USB support.
Step 2: Install VirtualBox
Windows
- Open the .exe installer
- Click Next through the setup wizard
- Keep default components selected
- Accept network warnings (it may briefly disconnect internet)
- Click Install → Finish
macOS
- Open the .dmg file
- Double-click the installer package
- Follow prompts and allow permissions in System Settings → Security & Privacy if blocked
- Finish installation
Linux (Ubuntu/Debian example)
sudo apt update
sudo apt install virtualbox
Step 3: Install Extension Pack
- Open VirtualBox
- Go to File → Preferences → Extensions
- Click + and select the downloaded Extension Pack file
- Accept license → Install
Step 4: Create a Virtual Machine (VM)
- Click New
- Enter:
- Name (e.g., Ubuntu VM)
- Type: Linux / Windows / Other
- Version: Match your OS
- Click Next
Allocate Resources
- RAM:
- Minimum: 2 GB
- Recommended: 4+ GB (if available)
- CPU (under advanced settings):
- 2 cores is a good start
Create Virtual Hard Disk
- Choose Create a virtual hard disk now
- File type: VDI (default)
- Storage: Dynamically allocated
- Size:
- Linux: 20–30 GB
- Windows: 50+ GB
Step 5: Install an Operating System
- Download an ISO file (example: Ubuntu from https://ubuntu.com/)
- In VirtualBox:
- Select your VM → Settings → Storage
- Click empty disk → choose ISO file
- Click Start
Follow the OS installation steps like a normal computer setup
Step 6: Install Guest Additions (Important)
This improves performance, screen resolution, and mouse integration.
- Start your VM
- In menu: Devices → Insert Guest Additions CD Image
- Run installer inside the VM
- Restart VM