VirtualBox is a fantastic software tool that lets you create Virtual Machines for free. These VMs act like separate computers inside your main one. So, if you’re a Linux user and want to try out different operating systems without needing extra devices, VirtualBox is your go-to!
Imagine having several operating systems running on just one machine. That’s what VirtualBox does. You can switch between these different systems without restarting your computer, which is super convenient and also saves you from buying extra hardware.
How to install VirtualBox on Ubuntu 22.04
Ubuntu is a more secure Linux-based operating system. We will now use Ubuntu’s default depository to install VirtualBox.
Before starting the installation, we suggest updating and upgrading Ubuntu 22.04 all packages.
Step 1: Update and Upgrade the APT cache Repository
First, open up the terminal by pressing “CTRL+ALT+T”. Then, update and upgrade all packages on Ubuntu 22.04:
$ sudo apt update && sudo apt upgrade
Step 2: Install VirtualBox
For now, we just need to run the following installation command to install VirtualBox on Ubuntu 22.04:
$ sudo apt install virtualbox
After running above mention command, system will ask for taking additional disk space for installation. Enter “y” to continue installation and that’s all:
The above-given output indicates that we have successfully installed VirtualBox on our Ubuntu 22.04 system.
Step 3: Launch the VirtualBox
To launch VirtualBox on Ubuntu 22.04, use the command provided below:
$ virtualbox
After running the above command, VirtualBox application will open up on your Ubuntu 22.04 system:
Step 5: Download and install VirtualBox Extension Package
To use VirtualBox, you need to configure VirtualBox and install its extension package. To get the extension package, we will utilize the following “wget” command:
$ wget https://download.virtualbox.org/virtualbox/6.1.32/Oracle_VM_VirtualBox_Extension_Pack-6.1.32.vbox-extpack
Once extension package is downloaded, install it using the below-mentioned command:
$ sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.1.32.vbox-extpack
How to use VirtualBox on Ubuntu 22.04
To use VirtualBox on Ubuntu 22.04, search for it in the “Activities” menu of Ubuntu 22.04 and open it from there:
After opening VirtualBox, click on the “New” button for adding a new Virtual Machine:
Next, enter the “Name” of the operating system you want to set on the created Virtual Machine, specify the “Machine Folder” and the “Version” of operating system:
Select the size of RAM you want to allocate to the Virtual Machine:
Select “Create a virtual hard disk now” option and hit the “Create” button:
Select “VDI (VirtualBox Disk Image)” and press “Next” button:
The opened wizard will ask you to set the type of storage. Select “Dynamically located” option and press the “Next” button:
In the next step, you have to set file location and size of the virtual hard disk according to your preferences. However, we will use the default suggested location and allocate 10GB size to the virtual hard disk and press “Create” button:
Now, click on the “Start” button, provide “ISO” file and using the created Virtual Machine:
That was all essential information related to installation and usage of VirtualBox on Ubuntu 22.04. You can further research as required.
Conclusion
Installing VirtualBox on Ubuntu 22.04 is a straightforward process. Begin by opening the terminal and running the command: “$ sudo apt install virtualbox”. This command seamlessly installs VirtualBox from the Ubuntu 22.04 repository.
Once VirtualBox is installed, proceed to add the VirtualBox extension package. Then, utilizing the VirtualBox application, create a new Virtual Machine effortlessly.
This write-up comprehensively covers the installation, setup, and utilization of VirtualBox for launching various operating systems.