Page 1 of 2

[Solved] Set-up kernel

Posted: 31. Jan 2018, 17:10
by curano
I installed a new system and liked to install VirtualBox again with an existing Windows 10 guest.
I got the error message that the vboxdrv is not loaded or a permission problem with /dev/vboxdrv.

I tried to recompile the kernel:
sudo /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.
Any ideas - I checked dmesg but this doesnt mean a lot to me...

Thanks

Re: Set-up kernel

Posted: 31. Jan 2018, 17:54
by socratis
curano wrote:I checked dmesg but this doesnt mean a lot to me...
You could post it here, someone might know. Otherwise, we'll never know...

Re: Set-up kernel

Posted: 31. Jan 2018, 18:05
by curano

Re: Set-up kernel

Posted: 31. Jan 2018, 18:15
by andyp73
Thanks, but no thanks - not going to click on a random link to an external site!
socratis wrote:You could post it here
-Andy

Re: Set-up kernel

Posted: 31. Jan 2018, 18:22
by mpack
@curano: please zip up the log and attach it here directly.

Re: Set-up kernel

Posted: 31. Jan 2018, 18:26
by curano
Okay,

Here it is...

Re: Set-up kernel

Posted: 1. Feb 2018, 10:34
by socratis
You would need the 'dmesg' output from when you were trying to install the GAs. Not a generic run. There's not a single mention about "vbox", "VirtualBox", "fail" or "error" in what you posted. Unless I'm not reading it right...

Re: Set-up kernel

Posted: 1. Feb 2018, 10:40
by andyp73
socratis wrote:Unless I'm not reading it right...
Looks like your reading of it is spot on to me. It looks like a fairly bland Linux boot where nothing exciting really happened!

-Andy.

Re: Set-up kernel

Posted: 1. Feb 2018, 11:00
by curano
Sorry, I don't understand the term "GAs".
Please enlighten me.

Thanks

Re: Set-up kernel

Posted: 1. Feb 2018, 11:04
by andyp73
GA = Guest Additions!

You need to do the following...

1. Boot the vm
2. Run the /sbin/vboxconfig command as root
3. Cross your fingers and hope it generates the same result as the original post
4. Post the output of dmesg
5. Power off vm
6. Go for coffee

(Steps 5 and 6 are entirely optional)

-Andy.

Re: Set-up kernel

Posted: 1. Feb 2018, 11:19
by curano
Here is the out of dmesg after running /sbin/vboxconfig as root.

Re: Set-up kernel

Posted: 1. Feb 2018, 12:16
by curano
The message when starting the Windows 10 guest :
Kernel driver not installed (rc=-1908)

where sublibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED -The support driver is not installed. On linux, open returned ENOENT.

Additional details:

The virtual machine 'Windows 10' has terminated unexpectedly during startup with exit code 1 (0x1).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {85cd948e-a71f-4289-281e-0ca7ad48cd89}

Re: Set-up kernel

Posted: 2. Feb 2018, 11:16
by curano
Sorry, I can't provide another dmesg output.
The last one was directly after booting Fedora 27 and starting VirtualBox.
After the error I executed /sbin/vboxconfig and saved dmesg output into a log file.
It seems that the system will not try to compile and add the driver to the kernel.
All kernel-devel, kernel-debug-level and kernel-headers are here.
gcc and the libraries are installed too.

So what's going wrong?
It was running under Fedora 27 fine. I just installed a new system with Fedora 27...

Sorry to bother you with this !

Re: Set-up kernel

Posted: 2. Feb 2018, 11:37
by towo2099
do modprobe vboxdrv and paste the output.

Re: Set-up kernel

Posted: 2. Feb 2018, 11:53
by curano
Result is -

modprobe: ERROR: could not insert 'vboxdrv': Required key not available

I started modprobe vboxdrv within /sbin