Virtual Box guest OS startup issues

gmarik 1 min
$ VirtualBox --help
Sun VirtualBox Graphical User Interface 2.2.4_OSE
installed with pacman

Kernel Module

If you don’t have kernel module loaded you’ll get error:

Cannot access the kernel driver!
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Re-setup the kernel module by executing
'/etc/init.d/vboxdrv setup'
as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

To fix this - load module:

$ sudo modprobe vboxdrv
$ lsmod|grep vbox
vboxdrv               114664  0

Permissions

If you not a vboxusers group member youll get error as well, so maker sure

$ id|grep vbox 

yelds vboxusers

Otherwise add user to the group

$ gpasswd -a USERNAME vboxusers

you’ll need to relogin or run login shell to get permissions updated :

$ sudo su -l USERNAME

USB

Got another error:

Unknown -1909 error during initialization of the Runtime

Looks like VirtualBox looking for usb and unable to find it..so fix it with:

$ VBOX=$(grep vboxusers /etc/group | sed 's/vboxusers:x:\(.*\):.*/\1/')
$ mount -t usbfs -o devgid=$VBOX,devmode=664,nodev,noexec,nosuid none /proc/bus/usb

References:

  1. http://wiki.archlinux.org/index.php/VirtualBox
  2. http://bbs.archlinux.org/viewtopic.php?pid=552379#p552379
Read More
Time.parse and rubygems-1.3.3 issue
Git push default
Comments
read or add one↓