Install Ubuntu Server on Windows with VirtualBox
Summary
This tutorial guides you through installing Ubuntu Server as a virtual machine on a Windows PC using VirtualBox. You'll learn how to download Ubuntu Server, set up VirtualBox, and configure your virtual machine for a headless or command-line server environment.
Key Vocabulary
Prerequisites
- Windows PC (Windows 10/11 recommended)
- Internet connection
- At least 2GB RAM (4GB+ recommended)
- At least 20GB free disk space
- Administrator privileges on Windows
Step-by-Step Instructions
Download Ubuntu Server ISO
Go to the official Ubuntu website and download the latest Ubuntu Server ISO image.
https://ubuntu.com/download/server
Download and Install VirtualBox
Download VirtualBox for Windows and install it.
https://www.virtualbox.org/wiki/Downloads
Create a New Virtual Machine
Open VirtualBox and click 'New' to create a new VM. Name it 'Ubuntu Server', set Type to 'Linux', and Version to 'Ubuntu (64-bit)'.
Configure VM Memory and Storage
Allocate at least 2GB RAM (4GB+ recommended) and create a virtual hard disk of at least 20GB (VDI, dynamically allocated).
Attach Ubuntu Server ISO to VM
In VM settings, go to Storage > Controller: IDE > Empty. Click the disk icon and select the Ubuntu Server ISO you downloaded.
Set Network to Bridged Adapter (Optional)
For easier SSH access, set the VM's network to Bridged Adapter in Network settings.
Start the Virtual Machine
Click 'Start' to boot the VM. The Ubuntu Server installer will launch.
Install Ubuntu Server
Follow the on-screen instructions to install Ubuntu Server. Choose your language, keyboard layout, and installation type (Normal).
Create User Account and Set Hostname
Set your username, password, and server name as prompted.
Configure SSH (Recommended)
Enable OpenSSH server during installation for remote access.
Complete Installation and Reboot VM
Once installation finishes, reboot the VM. Remove the ISO from the virtual drive when prompted.
Log in to Ubuntu Server
Use your username and password to log in to the command-line interface.
(Optional) SSH from Windows Host
Use an SSH client (like PuTTY) to connect to your VM's IP address.
Ubuntu Server Ready!
You can now use Ubuntu Server inside Windows via VirtualBox for development, testing, or learning.
Common Issues & Solutions
Solution: Ensure virtualization is enabled in your BIOS/UEFI settings.
Solution: Increase RAM and CPU allocation in VM settings. Close other heavy apps on Windows.
Solution: Ensure you have started the VM and mounted the Server ISO image.
Solution: Check VirtualBox network settings (NAT or Bridged Adapter).
Solution: Remove the ISO from the virtual drive before rebooting.
Conclusion
Congratulations! You have successfully installed Ubuntu Server on your Windows PC using VirtualBox. This setup is perfect for development, testing, or learning Linux server administration without modifying your main system.