How to install VirtualBox on Ubuntu Linux 18.04 desktop machine?

How to install VirtualBox on Ubuntu Linux 18.04 desktop machine?

      If you have a host machine that runs Ubuntu Linux operating system, then you need to install VirtualBox to build and run virtual machines. Now, let's see how to do VirtualBox installation on Linux host machine.

# Install required system packages.
$ sudo apt install gcc make perl vim

# Download VirtualBox.
$ wget https://download.virtualbox.org/virtualbox/7.0.4/virtualbox-7.0_7.0.4-154605~Ubuntu~bionic_amd64.deb -P ~/Downloads

# Install VirtualBox.
$ sudo apt install ~/Downloads/virtualbox-7.0_7.0.4-154605~Ubuntu~bionic_amd64.deb

# Check VirtualBox version.
$ virtualbox --help

# Add host-only network configuration for VirtualBox.
$ sudo vim /etc/vbox/networks.conf
* 0.0.0.0/0 ::/0
    • Related Articles

    • How to install Vagrant on Ubuntu Linux 18.04 desktop machine?

      If you have a host machine that runs Ubuntu Linux operating system, then you need to install Vagrant to automate and manage virtual machines. Now, let's see how to do Vagrant installation on Linux host machine. # Download Vagrant. $ wget ...
    • How to install VirtualBox on Mac desktop machine?

      Install VirtualBox on Mac operating system If you have a host machine that runs Mac operating system, then you need to install VirtualBox to build and run virtual machines. Now, let's see how to do VirtualBox installation on Mac host machine. ...
    • How to install VirtualBox on Windows 10/11 desktop machine?

      Install VirtualBox on Windows operating system If you have a host machine that runs Windows 10 or Windows 11 operating system, then you need to install VirtualBox to build and run virtual machines. Now, let's see how to do VirtualBox installation on ...
    • How to install Docker on Ubuntu Linux 18.04 desktop machine?

      Docker is available in two editions: Community Edition (CE) and Enterprise Edition (EE). Here, we'll proceed with Docker CE, the Community Edition. To do a clean installation, you must first remove existing Docker installation, if anything found. And ...
    • How to install Terraform on Ubuntu Linux 18.04 desktop machine?

      Let's install Terraform by downloading and extracting the executable binary for Linux. This is most recommended way of installing Terraform on any Linux-based operating system. No matter how we install Terraform, its just a executable binary. Once ...