Skip to content
Follow
Ubuntu Linux

How to Install VirtualBox on Ubuntu 24.04

Richard
Written by
Richard
Mar 11, 2025 Updated Aug 13, 2026 2 min read
How to Install VirtualBox on Ubuntu 24.04
How to Install VirtualBox on Ubuntu 24.04

VirtualBox is a free program that lets you run other operating systems, like Windows, directly inside Ubuntu 24.04 without restarting your computer. You can use it to test new software or run apps built for other platforms right alongside your usual Ubuntu apps.

Installing VirtualBox on Ubuntu 24.04 version 7.x takes just a few steps using the terminal. Adding the official Oracle repository to your system makes sure you get the latest security updates and version upgrades automatically.

⚡ Quick Answer

Install VirtualBox on Ubuntu 24.04 by opening a terminal and running the command: sudo apt update && sudo apt install virtualbox virtualbox-ext-pack. Accept the license agreement when prompted during installation.

Install VirtualBox

A single terminal command handles the installation for both the main software and the VirtualBox Extension Pack, which adds extra features. Running this command and following the on-screen prompts finishes the setup.

The required command for installing VirtualBox and its extension pack:

🐧Bash / Shell
sudo update
sudo apt install virtualbox virtualbox-ext-pack

Accepting the license agreement appears as a prompt during the setup process. Proceeding through this prompt completes the core installation.

Verifying the installation takes a quick check of the extension package details using the command below, which produces similar output:

💻Code
VBoxManage list extpacks

Expected terminal output resembles this format:

💻Code
Extension Packs: 2
Pack no. 0: VNC
Version: 7.0.16
Revision: 162802
Edition:
Description: VNC plugin module
VRDE Module: VBoxVNC
Crypto Module:
Usable: true
Why unusable:

Pack no. 1: Oracle VM VirtualBox Extension Pack
Version: 7.0.16
Revision: 162802
Edition:
Description: Oracle Cloud Infrastructure integration, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption, NVMe, full VM encryption.
VRDE Module: VBoxVRDP
Crypto Module: VBoxPuelCrypto
Usable: true
Why unusable:

VirtualBox now sits fully installed and prepared for building virtual machines.

VirtualBox dashboard
VirtualBox dashboard

That completes the setup process!

Conclusion:

Wrapping up, setting up virtualization tools on Ubuntu provides several distinct advantages:

  • Easy Installation: Use a single command in the terminal to install VirtualBox and its extension pack.
  • Isolation for Testing: Create isolated environments for testing applications across different operating systems without additional physical hardware.
  • Legacy Support: Run legacy applications by replicating specific operational environments through virtual machines.
  • Versatile Applications: Utilize VirtualBox for various purposes, including development, testing, and concurrently running different operating systems.
  • User-Friendly Management: Manage your virtual machines quickly and access detailed information about installed extension packs.

Virtualization capabilities are fully unlocked on the Ubuntu system now that VirtualBox is ready for action.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Install Additional Software on Ubuntu
Ubuntu Linux How to Install Additional Software on Ubuntu
How to Install Ubuntu Linux
Ubuntu Linux How to Install Ubuntu Linux
How to Install GNOME Desktop on Ubuntu 24.04
Ubuntu Linux How to Install GNOME Desktop on Ubuntu 24.04
How to Install KDE Desktop on Ubuntu 24.04
Ubuntu Linux How to Install KDE Desktop on Ubuntu 24.04

1 Comment

Leave a Comment

Your email address will not be published. Required fields are marked *