Linux Ubuntu Oracle VirtualBox

1. What is it

  • Oracle VirtualBox allow you to create, manage, and run VM’s on Ubuntu.

2. Installation

2.1. Pre-Checks

  1. Confirm if the CPU supports hardware virtualization.

    egrep -c '(vmx|svm)' /proc/cpuinfo
    Sample output - should be higher than zero:
    egrep -c '(vmx|svm)' /proc/cpuinfo
    8
  2. Install cpu-checker:

    sudo apt install cpu-checker
  3. Check if your system can use KVM acceleration.

    sudo kvm-ok
    Sample output:
    sudo kvm-ok
    INFO: /dev/kvm exists
    KVM acceleration can be used

3. Install

  1. Update System

    sudo apt update -y && sudo apt upgrade -y
  2. Install VirtualBox packages

    sudo apt-get install virtualbox -y

4. Run

  1. Start VirtualBox

    virtualbox &