How to Install Ubuntu 25.04 on VirtualBox in Windows (2025)
If you want to use Ubuntu Linux without affecting your Windows system, the best way is to install Ubuntu on a Virtual Machine. In this guide, I will show you how to install Ubuntu 25.04 on VirtualBox step-by-step. Using this method, you can run Windows and Ubuntu at the same time without any risk to your data.
Requirements
- Windows 10 or 11 installed
- VirtualBox 7.x installed
- Ubuntu 25.04 ISO file
- Minimum 4 GB RAM (8 GB recommended)
- Minimum 25GB free storage
- Stable Internet connection
Installing Ubuntu on VirtualBox
1. Download and Install VirtualBox
- Visit the official VirtualBox website: Download VirtualBox
- Download the latest stable version for Windows.
- Install it by double-clicking the downloaded file and following the on-screen instructions.
- Also download the VirtualBox Extension Pack (optional but recommended).
2. Download Ubuntu 25.04 ISO
- Visit the Ubuntu official site: Download Ubuntu 25.04
- Download the Ubuntu 25.04 Desktop ISO.
3. Create a New Virtual Machine
To begin, open VirtualBox and click Machine > New, or simply press CTRL + N to start the VM creation wizard.
- Name: Enter a name for your VM, such as āUbuntu25ā to keep it simple.
- Folder: Choose where you want to save the virtual machine files (preferably not on your main system drive if space is limited).
- ISO Image: Choose the ISO file of Ubuntu 25.04 from where youāve downloaded it.
- Select the ISO File: Choose the ISO file of Ubuntu 25.04 from where youāve downloaded it.
- VM Type and Version:
- Type: Linux
- Subtype: Ubuntu
- Version: Ubuntu (64-bit)
- You can also opt for an unattended installation (weāll cover that below).
4. Enable Unattended Installation (Optional)
VirtualBox allows for an auto-installation process, which simplifies the setup. If youād like to skip manual steps, leave the Skip Unattended Installation option unchecked. This allows you to set some pre-configurations like:
- Username and Password for your user account
- Hostname and Domain Name
However, if you donāt want to use this feature, you can check the Skip Unattended Installation box, and these settings will be greyed out.
Note: You can also enable Guest Additions for features like clipboard sharing and full-screen mode. If the installation fails with Guest Additions enabled, try again after unchecking this option and install it later.
5. Set VM Hardware Configuration
Now, configure the VM hardware for optimal performance:
- Memory: Assign at least 8 GB of RAM for smooth operation.
- Processor: I recommend allocating 4 CPU cores.
- If you prefer, you can enable UEFI firmware to control the boot-up process, but for this guide, weāll skip it.
6. Create a Virtual Hard Disk
Next, set up the virtual hard disk:
- Location: Choose the directory where you want to store the disk file.
- Size: A minimum of 25 GB is recommended for Ubuntu 25.04.
- Disk Format: I suggest using the VDI (VirtualBox Disk Image) format.
7. Boot the VM and Begin Installation
Once youāve finished the setup, click Finish. The Ubuntu installer should automatically load, displaying the familiar purple screen.
If you selected the unattended installation option earlier, Ubuntu will automatically prepare the installation. Otherwise, you will be prompted to click Try or Install Ubuntu to begin the manual setup.
8. Walkthrough the Installation Process
- Boot & Select Action: Boot the VM from the ISO. At the GRUB menu, select āTry or Install Ubuntuā and press Enter.
- Language: Choose your installation language. Click
Next
. - Accessibility: Configure any needed accessibility options (optional). Click
Next
. - Keyboard Layout: Select your keyboard layout. Click
Next
. - Network Connection: Connect to a wired or Wi-Fi network, or select āDo not connectā¦ā. Click
Next
. - Choose Install Mode: Select āInstall Ubuntuā. Click
Next
. (An option to āUpdate installerā might appear here if connected to the internet). - Installation Type: Select āInteractive installationā (this is the standard graphical setup). Click
Next
. - Application Set: Choose āDefault selectionā (essentials) or āExtended selectionā (more apps like office suite, media players). Click
Next
. - Third-Party Software: Choose whether to āInstall third-party softwareā¦ā (for graphics, Wi-Fi, media). Click
Next
. - Disk Setup (Installation Method): Select āErase disk and install Ubuntuā. Click
Next
. - User Account: Enter your name, computerās name (hostname), username, and password (confirm password). Choose login preference (require password or auto-login). Click
Next
. - Time Zone: Select your location on the map or type your city to set the time zone. Click
Next
. - Review Your Choices: Review the proposed disk actions and confirm you want to write changes to the (virtual) disk. Click
Install
orContinue
. - Installation: Wait for the files to copy and the system to install.
- Restart: Click āRestart Nowā when the installation is complete.
- Finalize Boot: Press Enter when prompted to remove the installation medium (VirtualBox usually handles detaching the ISO automatically).
If you want to try another Linux distro like Kali Linux, check out our guide on How to install Kali Linux on VirtualBox Windows OS!
Post-Installation Setup for Ubuntu 25.04
1. Install VirtualBox Guest Additions
To improve performance, including better resolution, clipboard sharing, and drag-and-drop support, you need to install Guest Additions.
First, install required packages:
sudo apt update sudo apt install build-essential dkms linux-headers-$(uname -r) -y
Then, install Guest Additions:
- In the VirtualBox menu, click Devices ā Insert Guest Additions CD Image.
- Inside Ubuntu:
- You will see a pop-up asking to Run.
- Click Run and enter your password when asked.
- If no pop-up appears:
- Open āFilesā ā Mounted VBox_GAs CD.
- Right-click ā Open in Terminal.
- Run manually:
sudo ./VBoxLinuxAdditions.run
- After installation finishes, reboot Ubuntu:
sudo reboot
Now, you can resize the VirtualBox window, enable clipboard sharing, and drag-and-drop files between your Ubuntu and Windows host!
2. Post-Installation Settings
After installing Ubuntu and Guest Additions, adjust the following settings for optimal performance:
- Bidirectional Clipboard and DragānāDrop:
- Go to General > Advanced > Shared Clipboard and DragānāDrop and select Bidirectional in both options.
- USB 3.0 Support:
- Go to Settings > USB.
- Select USB 3.0 (xHCI) Controller.
- Note: USB 3.0 support requires the installation of the VirtualBox Extension Pack.
- 3D Acceleration:
- Go to Settings > Display.
- Under the Screen tab, check Enable 3D Acceleration.
- Note: Enabling 3D acceleration may require increasing the Video Memory.
- Increase Video Memory:
- In the same Display settings, increase the Video Memory slider to at least 256MB.
3. Update Your Ubuntu System
After the installation of VirtualBox Guest Additions and adjusting the machine settings for access the extra features , update your system to the latest packages:
sudo apt update sudo apt upgrade -y
4. Install Useful Software
Install common useful applications:
sudo apt install gnome-tweaks vlc gimp build-essential
You can also install apps like Chrome and VS Code:
sudo snap install code --classic sudo snap install spotify
5. Adjust Basic Settings
- Enable Night Light to reduce eye strain.
- Customize Themes using GNOME Tweaks.
- Set Keyboard Shortcuts for easier navigation.
Conclusion
Now you have successfully installed Ubuntu 25.04 on VirtualBox inside your Windows system.
With Guest Additions and system updates, your Ubuntu virtual machine will run fast and smooth.
Enjoy exploring Linux while keeping your Windows safe! š