You are not logged in.

#1 2008-08-10 02:03:55

wantamad
Member
Registered: 2007-01-18
Posts: 42

cant find virtualbox vboxdrv (install vbox modules on custom kernel)

hi guys!

i recently installed virtualbox-ose using pacman -Sy virtualbox. it installed fine and i was able to create a vm. when i start my vm i get this error:

VirtualBox kernel driver not installed. The vboxdrv kernel module was either not loaded or /dev/vboxdrv was not created for some reason. Re-setup the kernel module by executing '/etc/init.d/vboxdrv setup' as root.
VBox status code: -1908 (VERR_VM_DRIVER_NOT_INSTALLED).

Result Code: 
0x80004005
Component: 
Console
Interface: 
IConsole {d5a1cbda-f5d7-4824-9afe-d640c94c7dcf}

i could not find /etc/init.d/vboxdrv. when i do for a search for vboxdrv, it shows me a vobxdrv.ko and its located on my original arch kernel 2.6.25-ARCH. im using a custom kernel. how do i tell virtualbox to build the modules in my custom kernel and not on the arch kernel. i remember i had the same problem with ndiswrapper before that ndis wrapper built the ndiswrapper module on my arch kernel instead of my custom kernel. any ideas?

thanks!

Offline

#2 2008-08-10 03:27:54

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: cant find virtualbox vboxdrv (install vbox modules on custom kernel)

run /usr/bin/vbox_build_module as root.

Offline

#3 2008-08-10 12:37:30

wantamad
Member
Registered: 2007-01-18
Posts: 42

Re: cant find virtualbox vboxdrv (install vbox modules on custom kernel)

hi DonVla!

i dont have /usr/bin/vbox_build_module...

<<archbox>> :ls /usr/bin/v*
/usr/bin/vboxbfe           /usr/bin/verve-focus       /usr/bin/vlc
/usr/bin/vboxmanage        /usr/bin/vi                /usr/bin/vlc-config
/usr/bin/vboxsdl       /usr/bin/vidiff          /usr/bin/vmstat
/usr/bin/vboxsvc       /usr/bin/view          /usr/bin/volname
/usr/bin/vboxxpcomipcd       /usr/bin/viewres          /usr/bin/vorbiscomment
/usr/bin/vditool       /usr/bin/vino-preferences  /usr/bin/vstp
/usr/bin/vercmp           /usr/bin/virtualbox          /usr/bin/vte
/usr/bin/verify_krb5_conf  /usr/bin/vitutor
<<archbox>>:updatedb
<<archbox>> :locate vbox
/lib/modules/2.6.25-ARCH/misc/vboxdrv.ko
/opt/qt/include/qvbox.h
/opt/qt/man/man3/qvbox.3qt.gz
/opt/qt/man/man3/qvboxlayout.3qt.gz
/usr/bin/vboxbfe
/usr/bin/vboxmanage
/usr/bin/vboxsdl
/usr/bin/vboxsvc
/usr/bin/vboxxpcomipcd
/usr/include/kvbox.h
/usr/include/Qt/q3vbox.h
/usr/include/Qt3Support/q3vbox.h
/usr/include/gtk-2.0/gtk/gtkvbox.h
/usr/include/xfce4/libxfce4panel/xfce-hvbox.h

i wonder whats the /etc/init.d/vboxdrv equivalent in arch?

Offline

#4 2008-08-10 12:48:05

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: cant find virtualbox vboxdrv (install vbox modules on custom kernel)

AFAIK, it's missing in the OSE build. You'd have to rebuild virtualbox-modules package yourself or move to virtualbox_bin.

Offline

#5 2008-08-10 13:31:17

arch0r
Member
From: From the Chron-o-John
Registered: 2008-05-13
Posts: 597

Re: cant find virtualbox vboxdrv (install vbox modules on custom kernel)

pacman -S virtualbox-ose (or virtualbox_bin from the french repo) virtualbox-modules

if it gives you any error concerning the modules, run "vbox_build_module" as root ... it will rebuild the modules (needed after kernel update)

Last edited by arch0r (2008-08-10 13:31:28)

Offline

#6 2008-08-11 00:45:50

wantamad
Member
Registered: 2007-01-18
Posts: 42

Re: cant find virtualbox vboxdrv (install vbox modules on custom kernel)

hi guys i tried this but didnt work... im now starting to think of making my own package but i have some worries... first of all is if i create my own package, will i be able to upgrade it when a new version comes out? i was looking at the arch wiki for virutal box and it seems that the AUR pkgbuild is not working properly. i wonder whats the difference if i create a package and just install the binary file? any suggestions?

Offline

#7 2008-08-11 08:13:40

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: cant find virtualbox vboxdrv (install vbox modules on custom kernel)

I'm using this, it works fine and comes with a module building script.

Offline

#8 2008-08-11 10:07:37

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: cant find virtualbox vboxdrv (install vbox modules on custom kernel)

the switch to virtualbox_bin. it works imo better.

Offline

#9 2008-08-11 10:36:42

arch0r
Member
From: From the Chron-o-John
Registered: 2008-05-13
Posts: 597

Re: cant find virtualbox vboxdrv (install vbox modules on custom kernel)

yeah, but the modules package still depends on the old kernel version hmm

Offline

#10 2008-08-14 15:43:49

wantamad
Member
Registered: 2007-01-18
Posts: 42

Re: cant find virtualbox vboxdrv (install vbox modules on custom kernel)

thanks for your reply guys!

i will try http://aur.archlinux.org/packages.php?ID=9753 but i want to be able to use this with my custom kernel.

im thinking of just installing the binaries from sun website (Vbox*.run) but if i do that i dont know how to uninstall it when i dont want it anymore or how to upgrade it thats why i wanted to use the ones in the pacman repos or in the aur so that i can easily update or remove it.

Offline

#11 2008-11-19 13:21:44

jayanath
Member
Registered: 2008-08-16
Posts: 30

Re: cant find virtualbox vboxdrv (install vbox modules on custom kernel)

Hi,
I also had the same issue with virtualbox-ose hence I'm using virtualbox_bin. It complains me after each kernel upgrade but I simply remove the virtualbox_bin and reinstall it. It does not take even 5 mins to complete. wink
As we are not touching the virtual hard disks our settings remain unchanged even though we remove and add virtualbox time to time.

Last edited by jayanath (2008-11-19 13:22:09)


Cheers,
Jayanath

"There is LIFE beyond the 8x8 cubicle"

Offline

#12 2009-03-11 21:22:10

Evanlec
Member
From: NH, USA
Registered: 2007-12-16
Posts: 141
Website

Re: cant find virtualbox vboxdrv (install vbox modules on custom kernel)

In virtualbox_bin 2.1.4-1 the vbox_build_module is no longer present it seems....any idea?

Offline

#13 2009-03-11 21:36:16

r.b
Member
From: Winnipeg, MB
Registered: 2009-03-11
Posts: 12

Re: cant find virtualbox vboxdrv (install vbox modules on custom kernel)

Try

modprobe vboxdrv

:wq

Offline

#14 2009-03-11 21:43:01

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: cant find virtualbox vboxdrv (install vbox modules on custom kernel)

Evanlec wrote:

In virtualbox_bin 2.1.4-1 the vbox_build_module is no longer present it seems....any idea?

lies!
there is 2.1.4-2 and vbox_build_module is present at /usr/bin/vbox_build_module


Give what you have. To someone, it may be better than you dare to think.

Offline

#15 2009-03-11 21:56:27

r.b
Member
From: Winnipeg, MB
Registered: 2009-03-11
Posts: 12

Re: cant find virtualbox vboxdrv (install vbox modules on custom kernel)

Whoops! I should read more carefully; I didn't see the part about this being a custom kernel.
Anywho, I have virtualbox_bin 2.1.4 installed, and it seems that it does contain /usr/bin/vbox_build_module. However, this file is only executable by root, so if you try tab-completing the filename as a user, it won't show up. That might be why you didn't see it.


:wq

Offline

#16 2010-05-15 01:35:22

lsathler
Member
Registered: 2010-05-15
Posts: 16

Re: cant find virtualbox vboxdrv (install vbox modules on custom kernel)

I had the same problem after upgrade the kernel. I tried to run vbox_build_module but  is no longer present it seems ( I still checked on /usr/bin))
Then I tried to run that command: /etc/rc.d/vboxdrv setup
and it works. The module of kernel was recompiled and things are working smile

Offline

#17 2010-05-15 01:58:41

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: cant find virtualbox vboxdrv (install vbox modules on custom kernel)

lsathler wrote:

I had the same problem after upgrade the kernel. I tried to run vbox_build_module but  is no longer present it seems ( I still checked on /usr/bin))
Then I tried to run that command: /etc/rc.d/vboxdrv setup
and it works. The module of kernel was recompiled and things are working smile

Grats on necro'ing a thread that's over a year old.

If you ran that command and it worked then you're either:

a) not on Arch
and/or
b) Didn't install it through AUR/pacman

$ ls /usr/bin/vbox_build_module
/usr/bin/vbox_build_module
$ ls /etc/rc.d/vboxdrv
ls: cannot access /etc/rc.d/vboxdrv: No such file or directory

The AUR package still uses the vbox_build_module script included with the taurball.

Offline

#18 2010-05-15 07:55:11

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: cant find virtualbox vboxdrv (install vbox modules on custom kernel)

Closing, information here is no longer relevant, as mentioned above.

Offline

Board footer

Powered by FluxBB