VirtualBox is the free and open-source software for running virtual machines developed by Oracle. VirtualBox allows you to install Windows, OS X and Linux guest operating system in your primary operating system.
In this article I will show you how to install VirtualBox in your Ubuntu operating system.
There are many ways you can install VirtualBox in Ubuntu. We will discuss some of easy ways to install VirtualBox.
1. Install from Ubuntu Software
This is the easiest way to install VirtualBox directly from Ubuntu software store. First open Ubuntu Software application and search for VirtualBox software.
Once you get the VirtualBox from result, click on Install button. It will download and install just after asking root password.
2. Install from Command line
This is also easy method to download VirualBox via command line. Open Terminal by shortcut CTRL+ALT+T
or from software menu and run bellow command. It may ask to agree terms and conditions.
sudo apt-get update && sudo apt-get install virtualbox virtualbox-ext-pack
3. Download installation file from official website and install
You can also download installation file from official VirtualBox website and install it.
Go to the VirtualBox download page. Click on the link according to your operating system and it will download software file.
Now open Terminal application and run bellow command from the downloaded directory. For example, Ubuntu 18.04 LTS downloaded file is virtualbox-6.0_6.0.14-133895_Ubuntu_bionic_amd64.deb
so run command:
sudo dpkg -i virtualbox-6.0_6.0.14-133895_Ubuntu_bionic_amd64.deb
This will install VirtualBox from the installtion file. Now open VirtualBox and install guest operating system.
Conclusion
This way, you can install and configure operation system in VirtualBox. I hope this article helped you to install VirtualBox as your suitable way.