How to Install VirtualBox and Usb support. On LMDE

  10 years ago

This is a little help for those who want to know, how to install and sucessfully use the usb in Windows XP, Vista or Seven in VirtualBox. For Linux Mint Debian Edition.

I've tried with the 3 of them. In a laptop Lenovo T400 the data is in "my hardware" in my profile.

1.- Install VirtualBox from the Website (DO NOT INSTALL from the Repos)


Select Debian: Debian 6.0 ("Squeeze") i386. from the list.

Add the following line according to your distribution to your /etc/apt/sources.list:

deb squeeze non-free

How to do that:

Open a "Root Terminal" (The terminal is a little icon like a TV screen)
Open Mint Menu and under Accessories it's a "Terminal" and a "Root Terminal"

learn more With The 5-Minute Essential Shell Tutorial from justin.
Choose "Root Terminal" and a white screen with a message is going to pop up!

Inside the terminal you are going to type in what we need to install, VirtualBox.


sudo gedit /etc/apt/sources.list

It's going to open a text document and you are going to paste the line:

deb squeeze non-free

Save and quit.

That is going to add the sources from VirtualBox Non-free package.
Which means you'll have a different package from the one you see 
in the "Software Center".

After that we go back to the terminal because we have to download and install 
the Oracle Public Key, we just have to type:

wget -q -O- | sudo apt-key add -

Please Be carefull to copy/paste ALL the code and hit enter, 
you shoud see a message displaying an "OK"

To install VirtualBox, do:

sudo apt-get update

This Command it's going update your sources, 
remember we add the sources from VirtualBox? Well you'll have another "source"
Where you can download another version of VirtualBox.

Other Command to download the latest version 
from the sources that you already update:

sudo apt-get install virtualbox-4.1

This Command asks to install VirtualBox is going to show something like this:

 Click "y" and hit enter. If you receive a message saying that you need

to type an "install command" (don't remember which one)

just copy the command that is displayed, hit enter,

and type again the command given above.

After that:

Follow the steps from here.

If doesn't works:

Edit the file "fstab" follow steps from here.


Sorry if the tone of this tutorial is for dummies, but I am new in Linux and i'm trying to help

the ones that don't have a clue about computers.

Let a message if you have something to add to this tutorial, Remember that this tutorials is to help the community and Linux to evolve; this could lead to faster development by identifying faster what is not well seen or done. Peace!! 

Ueliton 7 years ago

Here with "3.11-2-amd64 #1 SMP Debian 3.11.8-1 (2013-11-13) x86_64 GNU/Linux" just downloaded the package Debian 7.0 ("Wheezy") i386 | AMD64 on site and installed with GDebi.

After installed, added the VirtualBox 4.3.16 Oracle VM VirtualBox Extension Pack >

Possible problems and solutions:
It does not detect USB, excute the virtual box by terminal with $ sudo virtualbox or $ su, # virtualbox.
To access the emulated system, they must be installed in the same way (the same user sudo or su).

PerfMonk 10 years ago

I just tried the recipie (dec 11, 2011) and I after doing "sudo apt-get install virtualbox-4.1", I get a message telling virtualbox-4.1 is not available but it exist in the database. It usually means that the package is missing/obsolete/or available from another source (sorry for accuracy of the text but it's translated from french).

I'm no expert with apt, does it means that I have to retry later, may be I caught the package in the middle of an update of the source ?



Exact message is here:
bernard@sig-m164911x ~ $ sudo apt-get install virtualbox-4.1
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Aucune version du paquet virtualbox-4.1 n'est disponible, mais il existe dans la base
de données. Cela signifie en général que le paquet est manquant, qu'il est devenu obsolète
ou qu'il n'est disponible que sur une autre source

E: Le paquet « virtualbox-4.1 » n'a pas de version susceptible d'être installée

thermodynamics4 10 years ago

Sorry this tutorial it's a little old, I'm going to change the numbers to the right version. Thanks for the update!

m_holmes 10 years ago

As biggocharley, pointed out the new version is 4.x. I believe for virtualbox-4.x they have moved the public key to:

Please correct me if I'm wrong.

biggocharley 11 years ago

I think you mean sudo apt-get install virtualbox 4.0 instead of sudo apt-get install virtualbox-3.2.
Thank you for this tutorial --I think it may help me with some problems I have been having with VB on LMDE. I installed the ubuntu lucid package earlier and I found it to be slow --seems to be using more memory than it should

craigevil 11 years ago

Or you can use svmi.
sudo svmi
Pick Option 1 virtualbox-options
Then 3) install-vbox-non-ose-squeeze
Then 5) build-vbox-module-non-ose
And you are good to go.

remoulder 11 years ago

If this tutorial is aimed at LMDE you should state that in the title or at the beginning as otherwise it is incorrect to advise users to install the debian versions on ubuntu based versions of Mint.