Could not locate dkms.conf file

Discussions related to using VirtualBox on Linux hosts.

Could not locate dkms.conf file

Postby maxchen » 27. Feb 2016, 15:22

hope this help someone.

I upgrade my kernel and VirtualBox, and find that VB will not start vm. A message says to run ' /sbin/rcvboxdrv setup'

Code: Select all   Expand viewCollapse view
sudo /sbin/rcvboxdrv setup

Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modulesError! Could not locate dkms.conf file.
File: does not exist.
...done.
Trying to register the VirtualBox kernel modules using DKMS ...done.
Starting VirtualBox kernel modules ...done.


I try
Code: Select all   Expand viewCollapse view
sudo dkms status

Error! Could not locate dkms.conf file.
File: does not exist.


I am not happy to run 'sudo /sbin/rcvboxdrv setup' each time the VB or kernel is upgraded.
after a while of google, I find out a solution
Code: Select all   Expand viewCollapse view
for i in /var/lib/dkms/*/[^k]*/source; do [ -e "$i" ] || echo "$i";done

/var/lib/dkms/vboxhost/4.2.8/source

the old version of VB install dkms and not clear properly, remove them
Code: Select all   Expand viewCollapse view
sudo rm -rf /var/lib/dkms/vboxhost/4.2.8
 sudo dkms status

vboxhost, 5.0.12, 4.2.0-27-generic, x86_64: installed
maxchen
 
Posts: 20
Joined: 27. Oct 2010, 15:57
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows

Re: Could not locate dkms.conf file

Postby leolivier » 5. Mar 2016, 19:31

Great!!! Had the same issue and fixed it using this way
Do not hesitate to remove all the old directories but the currently installed one...
leolivier
 
Posts: 1
Joined: 5. Mar 2016, 19:29

Re: Could not locate dkms.conf file

Postby vortexbased » 21. Jul 2016, 13:56

I registered just to be able to thank you.

This has been bugging me for ages...
vortexbased
 
Posts: 1
Joined: 21. Jul 2016, 13:56


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: Bing [Bot] and 10 guests