Using /sbin/vboxconfig in 5.0.8

Discussions related to using VirtualBox on Linux hosts.

Using /sbin/vboxconfig in 5.0.8

Postby stephanecharette » 21. Oct 2015, 00:30

In the 5.0.8 release notes, it mentions the /etc/init.d/vboxdrv init command has been renamed to /sbin/vboxconfig. This would also seem to be supported by this message when I try to start any of my VMs:

screenshot.png
screenshot.png (68.72 KiB) Viewed 31330 times


However, I cannot figure out how to get the VirtualBox driver updated. Where I'd previously run the vboxdrv init command, the vboxconfig command doesn't seem to do anything for me:

Code: Select all   Expand viewCollapse view
> sudo /sbin/vboxconfig
> sudo /sbin/vboxconfig init
Bad argument init
> sudo /sbin/vboxconfig help
Bad argument help
> sudo /sbin/vboxconfig --help
Bad argument --help
> sudo /sbin/vboxconfig init
Bad argument init
> sudo /sbin/vboxconfig --init
Bad argument --init


For the record, I do have dkms installed.
screenshot2.png
screenshot2.png (26.27 KiB) Viewed 31330 times
stephanecharette
Volunteer
 
Posts: 290
Joined: 10. Nov 2007, 22:03
Location: Kelowna, British Columbia, Canada
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Ubuntu-64bit, Windows

Re: Using /sbin/vboxconfig in 5.0.8

Postby Buford T. Justice » 21. Oct 2015, 05:36

I am having the EXACT same problem on Ubuntu MATE 14.04.2 LTS :(
Buford T. Justice
 
Posts: 3
Joined: 5. Oct 2015, 02:44

Re: Using /sbin/vboxconfig in 5.0.8

Postby stephanecharette » 21. Oct 2015, 12:06

I created a bug for this: https://www.virtualbox.org/ticket/14723

This is a showstopper for me, since none of my VMs can start in VB 5.0.8.
stephanecharette
Volunteer
 
Posts: 290
Joined: 10. Nov 2007, 22:03
Location: Kelowna, British Columbia, Canada
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Ubuntu-64bit, Windows

Re: Using /sbin/vboxconfig in 5.0.8

Postby loukingjr » 21. Oct 2015, 12:54

FWIW, i had no trouble upgrading to VB 5.0.8 on an Ubuntu 15.04 host and a Linux Mint 17.2 host and all my guests launch from the GUI or created shortcuts.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
loukingjr
Volunteer
 
Posts: 8827
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Using /sbin/vboxconfig in 5.0.8

Postby stephanecharette » 21. Oct 2015, 13:21

Buford T. Justice wrote:I am having the EXACT same problem on Ubuntu MATE 14.04.2 LTS :(


Running this command manually fixed the issue for me:

Code: Select all   Expand viewCollapse view
sudo /sbin/rcvboxdrv setup
stephanecharette
Volunteer
 
Posts: 290
Joined: 10. Nov 2007, 22:03
Location: Kelowna, British Columbia, Canada
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Ubuntu-64bit, Windows

Re: Using /sbin/vboxconfig in 5.0.8

Postby Buford T. Justice » 21. Oct 2015, 16:36

stephanecharette wrote:
Buford T. Justice wrote:I am having the EXACT same problem on Ubuntu MATE 14.04.2 LTS :(


Running this command manually fixed the issue for me:

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


And that fixed it for me. Thank you!

Code: Select all   Expand viewCollapse view
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMS ...done.
Starting VirtualBox kernel modules ...done.
Buford T. Justice
 
Posts: 3
Joined: 5. Oct 2015, 02:44

Re: Using /sbin/vboxconfig in 5.0.8

Postby hellomynameisjeff » 22. Oct 2015, 15:59

I have the same issue:

Ubuntu 15.04

Code: Select all   Expand viewCollapse view
$ uname -a
Linux 3.19.0-28-generic #30-Ubuntu SMP Mon Aug 31 15:52:51 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux


I did:

Code: Select all   Expand viewCollapse view
for i in vboxhost vboxdrv vboxnetflt vboxnetadp; do

sudo rm -rf "/var/lib/dkms/${i}"*

done


Then:

Code: Select all   Expand viewCollapse view
$ sudo rcvboxdrv setup
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Removing old VirtualBox kernel module ...done.
Trying to register the VirtualBox kernel modules using DKMSERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-5.0.0.crash'
Error! Bad return status for module build on kernel: 3.19.0-28-generic (x86_64)
Consult /var/lib/dkms/vboxhost/5.0.8/build/make.log for more information.
 ...failed!
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules ...failed!
  (Look at /var/log/vbox-install.log to find out what went wrong)


In /var/log/vbox-install.log:

Code: Select all   Expand viewCollapse view
$ tail /var/log/vbox-install.log
include/net/netns/mib.h:4:22: fatal error: net/snmp.h: No such file or directory
 #include <net/snmp.h>
                      ^
compilation terminated.
scripts/Makefile.build:257: recipe for target '/tmp/vbox.0/linux/VBoxNetFlt-linux.o' failed
make[2]: *** [/tmp/vbox.0/linux/VBoxNetFlt-linux.o] Error 1
Makefile:1395: recipe for target '_module_/tmp/vbox.0' failed
make[1]: *** [_module_/tmp/vbox.0] Error 2
Makefile:205: recipe for target 'vboxnetflt' failed
make: *** [vboxnetflt] Error 2


Can anyone help?
hellomynameisjeff
 
Posts: 3
Joined: 22. Oct 2015, 15:55

Re: Using /sbin/vboxconfig in 5.0.8

Postby stephanecharette » 22. Oct 2015, 19:01

hellomynameisjeff wrote:I have the same issue:
Code: Select all   Expand viewCollapse view
$ tail /var/log/vbox-install.log
include/net/netns/mib.h:4:22: fatal error: net/snmp.h: No such file or directory
 #include <net/snmp.h>
                      ^
compilation terminated.

Can anyone help?


Shot in the dark here, but have you done this: https://www.virtualbox.org/manual/ch02. ... nelmodules

I don't know if SNMP is a new/old dependency. Personally, my host is also where I do some software development, so I already had SNMP installed.

If you're looking for the Ubuntu package with those headers: sudo apt-get install libsnmp-dev
stephanecharette
Volunteer
 
Posts: 290
Joined: 10. Nov 2007, 22:03
Location: Kelowna, British Columbia, Canada
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Ubuntu-64bit, Windows

Re: Using /sbin/vboxconfig in 5.0.8

Postby Filippo Cas » 9. Jan 2016, 23:23

stephanecharette wrote:
Buford T. Justice wrote:I am having the EXACT same problem on Ubuntu MATE 14.04.2 LTS :(


Running this command manually fixed the issue for me:

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


Ok. The solution of Stephane works on Kubuntu 14.04 LTS too.
Filippo Cas
 
Posts: 1
Joined: 9. Jan 2016, 23:09

Re: Using /sbin/vboxconfig in 5.0.8

Postby mdalacu » 20. Jan 2016, 08:45

"Kernel driver not installed" - after VirtualBox upgrade.
I have the same problem using Virtualbox 5.0.14. I cannot start VMs on Ubuntu 15.10 x64. (sudo /sbin/rcvboxdrv setup - Bad argument setup)


The workaround is this:
Code: Select all   Expand viewCollapse view
sudo /usr/lib/virtualbox/vboxdrv.sh setup

:D
mdalacu
 
Posts: 5
Joined: 15. Apr 2015, 07:53

Re: Using /sbin/vboxconfig in 5.0.8

Postby mce128 » 21. Jan 2016, 04:46

Thanks! I also had the same issue as you where the /sbin/rcvboxdrv was complaining of "Bad argument setup". I looked in the script and not only was it missing the shebang line (amazing that it ran at all given that) but it only has one possible argument as acceptable in the case statement which is '--nostart' and that argument sets a bash variable called $START to be an empty string and then later when it is tested with a -n only if it is populated does it do anything, but there is no way for the logic to ever have the initially set value of 'true' as either it is cleared by running with the argument '--nostart' or it exits and complains about the 'bad argument <any arg here>'.

The workaround you gave worked beautifully! Well, after I signed the kernel module that it built anyway, but that is a whole different ball 'o wax.

mdalacu wrote:"Kernel driver not installed" - after VirtualBox upgrade.
I have the same problem using Virtualbox 5.0.14. I cannot start VMs on Ubuntu 15.10 x64. (sudo /sbin/rcvboxdrv setup - Bad argument setup)


The workaround is this:
Code: Select all   Expand viewCollapse view
sudo /usr/lib/virtualbox/vboxdrv.sh setup

:D
mce128
 
Posts: 1
Joined: 21. Jan 2016, 04:40

Re: Using /sbin/vboxconfig in 5.0.8

Postby stephanecharette » 21. Jan 2016, 10:38

mce128 wrote:... I looked in the script and not only was it missing the shebang line (amazing that it ran at all given that) but ...


I mentioned that shebang issue a few months ago. Disappointing to see it hasn't been fixed. https://www.virtualbox.org/ticket/14723#comment:1

I'll open up another bug specifically for that issue.
stephanecharette
Volunteer
 
Posts: 290
Joined: 10. Nov 2007, 22:03
Location: Kelowna, British Columbia, Canada
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Ubuntu-64bit, Windows

Re: Using /sbin/vboxconfig in 5.0.8

Postby Roshi » 22. Jan 2016, 07:51

I hit the same issue today after upgrading to 5.0.14 (I am on Ubuntu 15.10, using the official Virtualbox apt repo)

I fixed it with:

sudo /usr/lib/virtualbox/vboxdrv.sh setup
Roshi
 
Posts: 1
Joined: 22. Jan 2016, 07:49

Re: Using /sbin/vboxconfig in 5.0.8

Postby jay_m » 26. Jan 2016, 16:30

Roshi wrote:I hit the same issue today after upgrading to 5.0.14 (I am on Ubuntu 15.10, using the official Virtualbox apt repo)

I fixed it with:

sudo /usr/lib/virtualbox/vboxdrv.sh setup


Same thing worked for me. Ubuntu 14.04.
jay_m
 
Posts: 3
Joined: 29. Jun 2015, 21:29

Re: Using /sbin/vboxconfig in 5.0.8

Postby dabo man » 5. Feb 2016, 22:19

I am running VirtualBox 5.0.14 on openSUSE 13.2. After an openSUSE kernel update earlier today, the command "/sbin/rcvboxdrv setup" returned the error "Bad argument setup."

"sudo /usr/lib/virtualbox/vboxdrv.sh setup" fixed this problem for me.
dabo man
 
Posts: 8
Joined: 3. Oct 2014, 03:48

Next

Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 27 guests