2009/12/29

VirtualBox

Installation

The virtualbox-ose package in the official repositories does not support USB peripherals. Hence one can install the non-ose version downloading the deb package from official site, or adding a non-official repository in /etc/apt/sources.list:

# VirtualBox
deb http://download.virtualbox.org/virtualbox/debian jaunty non-free


The authentication key is

wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -


and than the package list must be updated.

sudo aptitude update


and the package can be installed

sudo aptitude install virtualbox-3.1



After the insallation

We need to add the user to the vboxusers group:

sudo adduser $LOGNAME vboxusers


sudo -u $USER -s


Than we can enable the usb support:

echo "none /proc/bus/usb usbfs devgid=$(grep plugdev /etc/group | sed 's/plugdev:x:\(.*\):.*/\1/'),devmode=664 0 0" | sudo tee -a /etc/fstab


mount the usb devices

sudo mount /proc/bus/usb


and recompiling the module

sudo /etc/init.d/vboxdrv setup





Ref: Ubuntu Wiki.