LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   VirtualBox asks me to run vboxconfig each time (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/virtualbox-asks-me-to-run-vboxconfig-each-time-4175600411/)

Stéphane Ascoët 02-23-2017 03:04 AM

VirtualBox asks me to run vboxconfig each time
 
Hi, after each restart of my Debian Wheezy, when I want to launch a VM, I have message:

"Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/sbin/vboxconfig'

as root.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT."

Do you know why I need to do it each time, or otherwise where I should look for to find the explanations and thus making this driver installed automatically at each boot.

jsbjsb001 02-23-2017 03:42 AM

Quote:

Originally Posted by Stéphane Ascoët (Post 5674881)
Hi, after each restart of my Debian Wheezy, when I want to launch a VM, I have message:

"Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/sbin/vboxconfig'

as root.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT."

Do you know why I need to do it each time, or otherwise where I should look for to find the explanations and thus making this driver installed automatically at each boot.

As it's telling you, the driver for Virtualbox is not installed and therefore you will not be able to start any VM's. Open a terminal window as superuser/root and run the command it's telling you to.

If this still does not work, try reinstalling Virtualbox.

Stéphane Ascoët 02-23-2017 05:27 AM

Yes, that's what I do but I'd like to not be forced to do it everyday

jsbjsb001 02-23-2017 07:54 AM

Quote:

Originally Posted by Stéphane Ascoët (Post 5674909)
Yes, that's what I do but I'd like to not be forced to do it everyday

Let's start with some basic info like;

How did you install Virtualbox (and where from, official repo's, etc)?

As I have Virtualbox installed myself and have not had any issues, that you are talking about. I have installed it from official repo's for my distro (PCLinuxOS).

Stéphane Ascoët 02-23-2017 08:52 AM

The package from Debian Wheezy amd64 on
https://www.virtualbox.org/wiki/Linux_Downloads

jsbjsb001 02-23-2017 09:45 AM

Quote:

Originally Posted by Stéphane Ascoët (Post 5674981)
The package from Debian Wheezy amd64 on
https://www.virtualbox.org/wiki/Linux_Downloads

Is there a package for Virtualbox in the official repo's for Debian Wheezy? If so, you should install it from there instead (uninstall your current Virtualbox installation first).

If you are still having the same problem, then you may need to check file permissions (as the output you posted, originally said). As that's the only other possibly I can think of, as to why you are getting that error message.

The correct file permissions are as follows;

Code:

lrwxrwxrwx 1 root root    34 Jan 31 21:50 vboxconfig -> /opt/VirtualBox/postinst-common.sh*
crw------- 1 root root 10, 57 Feb 24 01:52 /dev/vboxdrv


hydrurga 02-23-2017 09:52 AM

Focussing on another part of the error message, what are you permissions for /dev/vboxdrv?:

ls -la /dev/vbox* should also provide info on vboxdrvu and vboxnetctl.

Stéphane Ascoët 02-23-2017 10:03 AM

Probleme with VirtualBox
 
Quote:

Originally Posted by jsbjsb001 (Post 5675004)
Is there a package for Virtualbox in the official repo's for Debian Wheezy? If so, you should install it from there instead (uninstall your current Virtualbox installation first).

That's what I've done in the first place, but with this old one I couldn't use the window$ installer provided by my work.

Quote:

Code:

lrwxrwxrwx 1 root root    34 Jan 31 21:50 vboxconfig -> /opt/VirtualBox/postinst-common.sh*
crw------- 1 root root 10, 57 Feb 24 01:52 /dev/vboxdrv


They are like this

jsbjsb001 02-23-2017 10:12 AM

Quote:

Originally Posted by Stéphane Ascoët (Post 5675012)
That's what I've done in the first place, but with this old one I couldn't use the window$ installer provided by my work.



They are like this

Did you run the command hydrurga has mentioned?

Here's my output for it;

Code:

crw------- 1 root root      10, 57 Feb 24 01:52 /dev/vboxdrv
crw-rw-rw- 1 root root      10, 56 Feb 24 01:52 /dev/vboxdrvu
crw------- 1 root root      10, 53 Feb 24 01:52 /dev/vboxnetctl

/dev/vboxusb:
total 0
drwxr-x---  5 root vboxusers  100 Feb 24 01:46 ./
drwxr-xr-x 20 root root      5240 Feb 24 02:04 ../
drwxr-x---  2 root vboxusers  100 Feb 24 02:04 001/
drwxr-x---  2 root vboxusers  60 Feb 24 01:46 002/
drwxr-x---  2 root vboxusers  60 Feb 24 01:46 003/

Please post your output, thanks.

Stéphane Ascoët 02-23-2017 10:23 AM

crw------- 1 root root 10, 58 févr. 23 14:35 /dev/vboxdrv
crw-rw-rwT 1 root root 10, 57 févr. 23 14:35 /dev/vboxdrvu
crw------- 1 root root 10, 56 févr. 23 14:35 /dev/vboxnetctl

/dev/vboxusb:
total 0
drwxr-x--- 4 root vboxusers 80 févr. 23 14:44 .
drwxr-xr-x 14 root root 3300 févr. 23 14:44 ..
drwxr-x--- 2 root vboxusers 80 févr. 23 08:41 001
drwxr-x--- 2 root vboxusers 60 févr. 23 14:44 002

hydrurga 02-23-2017 10:43 AM

Quote:

Originally Posted by Stéphane Ascoët (Post 5675020)
crw-rw-rwT 1 root root 10, 57 févr. 23 14:35 /dev/vboxdrvu

Hmmm, what's with that sticky bit (I don't know if it's relevant or not)?

jsbjsb001 02-24-2017 02:21 AM

Quote:

Originally Posted by hydrurga (Post 5675036)
Hmmm, what's with that sticky bit (I don't know if it's relevant or not)?

Yeah, that's the only difference, I can see as well, might be a clue ;)

Stéphane Ascoët 03-09-2017 02:06 AM

Hi helpers, I'd like to understand something to debug the thing: where on your systeme do you have one or several vboxdrv.sh file(s)?

jsbjsb001 03-09-2017 02:46 AM

Quote:

Originally Posted by Stéphane Ascoët (Post 5681006)
Hi helpers, I'd like to understand something to debug the thing: where on your systeme do you have one or several vboxdrv.sh file(s)?

One place, here;
Code:

/opt/VirtualBox/vboxdrv.sh
Are you still having any problems??

Stéphane Ascoët 03-09-2017 02:58 AM

No changes, and I can't see how the sticky bit could be linked to it.


All times are GMT -5. The time now is 10:33 PM.