DEV Community

Seffu Kioi Nyambura
Seffu Kioi Nyambura

Posted on

2 or 3 Easy steps to install Virtualbox in Ubuntu

Virtualization is the process of running a virtual instance of a computer system in a layer abstracted from the actual hardware.It allows for simultaneous running of multiple operating systems on a single computer system.
Oracle VM VirtualBox is a type-2 hypervisor that allows for virtualization and is supported by multiple operating systems including but not limited to Windows based OS's,Linux and Mac OS.
Lets get started, shall we,
Prerequisites:

  1. Virtualization enabled computer
  2. An account with sudo privileges
  3. Stable internet
  4. Open Terminal (Ctrl+alt+t)

Step 1: Update package list
Use the command below to get a list of packages that might need to be updated. Ensure to input the correct password when prompted.

sudo apt update
Enter fullscreen mode Exit fullscreen mode

Update
Step 2: Upgrade packages (Optional)
Use the command below to upgrade any packages that appear from the first step.

sudo apt upgrade
Enter fullscreen mode Exit fullscreen mode

Upgrade
Step 3: Install Virtualbox
The command below is used to install virtualbox and its accompanying extensions. Ensure that you agree to accept the agreements and terms of license.

sudo apt install virtualbox virtualbox-ext-pack
Enter fullscreen mode Exit fullscreen mode

Install
Below are some of the prompts and windows you will see during the installation.
genesis

license

terms
Step 4: Confirmation(Optional)
Finally to confirm that VirtualBox was successfully installed, use the command below

virtualbox
Enter fullscreen mode Exit fullscreen mode

start
#This is the sign of victory
victory

Congratulations, you have successfully installed VirtualBox

Next Step

  • Installing an OS in VirtualBox

Top comments (1)

Collapse
 
wanjohichristopher profile image
WanjohiChristopher

Nice one Engineer.