How to Install VirtualBox 5.1 on Debian 9 (Stretch)

VirtualBox is a free and open source virtualization software used at desktop level. It is available for both Windows and Linux like operating systems. Debian Project has officially released its latest Debian GNU/Linux 9.0 with the code name ‘stretch’. In this article we will discuss how to install latest version of VirtualBox on Debian 9.

VirtualBox packages are not available in the default debian 9 package repositories. So we will have to set the additional virtualbox repository using beneath commands.

Step1: Adding VirtualBox 5.1 Repository

Open the terminal and run the following command to add Virtualbox repository

[email protected]:~$ sudo apt-add-repository 'deb http://download.virtualbox.org/virtualbox/debian stretch contrib'
[email protected]:~$

Step:2 Add Public Key of VirtualBox 5.1

[email protected]:~$ curl -O https://www.virtualbox.org/download/oracle_vbox_2016.asc
[email protected]:~$ sudo apt-key add oracle_vbox_2016.asc

Step3: Install VirtualBox 5.1 with apt-get command

[email protected]:~$ sudo apt-get update
[email protected]:~$ sudo apt-get install virtualbox-5.1

Once the Installation is completed, Now try accessing it

Accessing VirtualBox 5.1

Access-VirtualBox-5-1-Debian9.png

Click on Virtual Box Icon

VirtualBox-Debian9

Install Virtual Box 5.1 Extension Pack

It is recommended to install extension pack after installing the Virtual Box. To Install VirtualBox 5.1 extension pack, first we have to download extension pack file using following wget command

[email protected]:~$ wget http://download.virtualbox.org/virtualbox/5.1.22/Oracle_VM_VirtualBox_Extension_Pack-5.1.22-115126.vbox-extpack

Once the file is downloaded then go to VirtualBox GUI and browse

File –> Preferences –>Extensions and select the ‘vbox-extpack’ file  and then click on Install

Install-Extension-Pack-VirtualBox-Debian9

Click on ‘I Agree’

VirtualBox-License-Debian9

In the Next window we would see that Extension Pack has been installed successfully

VirtualBox-Extension-Pack-Message

That’s all from this tutorial, I hope you guys got an idea how to install VirtualBox 5.1 and its extension pack on Debian 9. Please do share your valuable feedback and comments.

5 Responses

  1. Guido van Steen says:

    Thanks for these useful instructions!

  2. johan says:

    Thanks a lot for your help, it’s perfect

  3. Santy says:

    Priceless mini-tutorial
    Forever grateful

    Just one thing.. when I opened up Vbox after installation, I got a warning informing me that I wouldn’t be able to create a VM as the vbox kernel module wasnt loaded (?)
    I solved this problem doing this:

    1) sudo apt-get install linux-headers-4.9.0-4-686-pae

    2) sudo /sbin/vboxconfig

    After that was done, Vbox was working nicely

  4. alexander says:

    apt-add-repository debian???

Leave a Reply

Your email address will not be published. Required fields are marked *

Pin It on Pinterest