DEV Community

Seffu Kioi Nyambura
Seffu Kioi Nyambura

Posted on

3

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

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (1)

Collapse
 
wanjohichristopher profile image
WanjohiChristopher β€’

Nice one Engineer.

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

πŸ‘‹ Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay