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
sudo /sbin/rcvboxdrv setup
I tryStopping 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.
Code: Select all
sudo dkms status
I am not happy to run 'sudo /sbin/rcvboxdrv setup' each time the VB or kernel is upgraded.Error! Could not locate dkms.conf file.
File: does not exist.
after a while of google, I find out a solution
Code: Select all
for i in /var/lib/dkms/*/[^k]*/source; do [ -e "$i" ] || echo "$i";done
the old version of VB install dkms and not clear properly, remove them/var/lib/dkms/vboxhost/4.2.8/source
Code: Select all
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