vboxdrv service not loading drivers automatically

Discussion for all VM - Installing, Software, Problems

Moderator: Moderators

vboxdrv service not loading drivers automatically

Postby thenthenio » Mon Aug 03, 2009 22:28

I noticed that perhaps starting from VirtualBox 3.0.0 /etc/init.d/vboxdrv was added, in previous versions there was no such service in /etc/init.d folder.
I also noticed that /etc/init.d/vboxdrv was already added to default runlevel.
Before I was loading the kernel module with vboxdrv added to /etc/conf.d/modules, so I tried to remove the module name from this file (I try to avoid as much as possible custom config files, so, if there is a standard way to do a thing I do prefer it to all other ways).
After reboot vboxdrv was not loaded.
Trying to run /etc/init.d/vboxdrv start manually everything worked as expected, the module is loaded and VirtualBox started VM as expected.
This does not happen automatically, despite /etc/init.d/vboxdrv is on default runlevel!!!
I tried to have a look to /var/log/messages file but there were no lines about vboxdrv.
I also tried to follow boot process interactively (typing I while booting), but nothing, /etc/init.d/vboxdrv is completely ignored.
How could this be possible?
What should I check?

Many thanks.
Mauro
User avatar
thenthenio
Old Dear Hen
 
Posts: 522
Joined: Thu Mar 01, 2007 23:11
Location: Melegnano (MI) Italy

Re: vboxdrv service not loading drivers automatically

Postby genfool » Mon Aug 03, 2009 23:38

User avatar
genfool
Technological Hen
 
Posts: 342
Joined: Fri Apr 03, 2009 17:56
Location: Albuquerque, NM

Re: vboxdrv service not loading drivers automatically

Postby thenthenio » Tue Aug 04, 2009 22:00

No, unfortunately...
Using that procedure it does work!
My PC was configured that way.
The point is:
- By hands also /etc/init.d/vboxdrv start works.
- Why /etc/init.d/vboxdrv does not get started despite it is in default runlevel???
User avatar
thenthenio
Old Dear Hen
 
Posts: 522
Joined: Thu Mar 01, 2007 23:11
Location: Melegnano (MI) Italy

Re: vboxdrv service not loading drivers automatically

Postby WarraWarra » Tue Aug 04, 2009 23:23

/etc/init.d/something needs to be added to rc-update load / kill during star / shutdown if you want to run it as a service.

Code: Select all
rc-update add vboxdrv default

Should load it at boot.

To load a module at boot edit grub.conf and add
Code: Select all
dovboxdrv

doload and modprobe in grub.conf also works or edit /etc/modules and add to the list. :wink:
User avatar
WarraWarra
Sagely Hen
 
Posts: 1989
Joined: Wed Jan 03, 2007 21:01
Location: 31.324270, -113.585511

Re: vboxdrv service not loading drivers automatically

Postby thenthenio » Wed Aug 05, 2009 10:53

Yes warrawarra, it already is in default runlevel, but looks like it is not executed...
User avatar
thenthenio
Old Dear Hen
 
Posts: 522
Joined: Thu Mar 01, 2007 23:11
Location: Melegnano (MI) Italy


Return to Virtual Managers

Who is online

Users browsing this forum: No registered users and 1 guest