/sbin/vboxconfig fails on Linux 5.4.8 and Mint 19.3

Discussions related to using VirtualBox on Linux hosts.

Re: /sbin/vboxconfig fails on Linux 5.4.8 and Mint 19.3

Postby fbatschu » 22. Jan 2020, 00:32

fbatschu
 
Posts: 3
Joined: 21. Aug 2019, 12:27
Location: Germany, Berlin
Primary OS: Solaris
VBox Version: OSE other
Guest OSses: linux, windows, solaris

Re: /sbin/vboxconfig fails on Linux 5.4.8 and Mint 19.3

Postby realwuffi » 22. Jan 2020, 07:24

Tanks a lot for that information!
Looks like I will stay on 5.3 then until Ubuntu upgrades to a new kernel.
realwuffi
 
Posts: 3
Joined: 6. Jan 2020, 18:50

Re: /sbin/vboxconfig fails on Linux 5.4.8 and Mint 19.3

Postby themistabhi » 26. Jan 2020, 09:42

Right now the problem seems to be with ukuu. Grab the kernel source from kernel(dot)org, build yourself and install it (probably a lot simpler than you think ;) ). This works great.. I am currently running on 5.4.14 and everything seems to be working perfectly.
themistabhi
 
Posts: 1
Joined: 26. Jan 2020, 09:30

Re: /sbin/vboxconfig fails on Linux 5.4.8 and Mint 19.3

Postby myname1st » 28. Jan 2020, 18:13

Folks,
For those of us in Ubuntu, please go to https://bugs.launchpad.net/ubuntu/+sour ... ug/1849348 and upvote the issue. Right now, only 2 of us appear as affected...which if i were a dev, I would definitely not prioritize.
So let's help them by letting them know that it also affects others.
Thx.
PS: I tried the new kernel 5.5...and same result. :(
myname1st
 
Posts: 4
Joined: 29. Oct 2015, 19:39

Re: /sbin/vboxconfig fails on Linux 5.4.8 and Mint 19.3

Postby dacorsa » 29. Jan 2020, 12:07

Problem solved for me with Ubuntu and 5.5.0 uuku kernel

Cheyenne Wills (ccwills) wrote on 2019-11-01: #4

I think I might have found the
"source" of the problem.

https://github.com/torvalds/linux/commi ... 9dd64134ee

Replacing the gcc-7 version with gcc-8 seems to "fix" the problem

root@ubuntu_base:~/builderr# uname -a
Linux ubuntu_base 5.4.0-050400rc5-generic #201910271430 SMP Sun Oct 27 18:33:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
root@ubuntu_base:~/builderr# gcc --version
gcc (Ubuntu 8.3.0-6ubuntu1~18.04.1) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

root@ubuntu_base:~/builderr# make -C /lib/modules/5.4.0-050400rc5-generic/build/ M=$PWD
make: Entering directory '/usr/src/linux-headers-5.4.0-050400rc5-generic'
AR /root/builderr/built-in.a
CC [M] /root/builderr/conftest.o
Building modules, stage 2.
MODPOST 1 modules
CC [M] /root/builderr/conftest.mod.o
LD [M] /root/builderr/conftest.ko
make: Leaving directory '/usr/src/linux-headers-5.4.0-050400rc5-generic'
dacorsa
 
Posts: 3
Joined: 8. Jan 2020, 12:43

Re: /sbin/vboxconfig fails on Linux 5.4.8 and Mint 19.3

Postby myname1st » 29. Jan 2020, 19:38

@dacorsa,
THANK YOU SO MUCH for posting this.

I sorta follow what you mentioned, but i ovbiously needed a couple more things (like gcc-8, lol). I tried some things and here are the results:

Here is what to do:
First, install gcc-8
Code: Select all   Expand viewCollapse view
sudo apt install gcc-8 g++-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-8 --slave /usr/bin/gcov gcov /usr/bin/gcov-8

if you now run
Code: Select all   Expand viewCollapse view
gcc --version
you will see that you have v8

Next, issue the vboxconfig command:
Code: Select all   Expand viewCollapse view
sudo /sbin/vboxconfig


and voila. No need to recompile the kernel or anything. vbox started right after that. I am on kernel 5.5.0
I will post this as a workaround on the ubuntu bug entry. :)

Again @dacorsa: THANK YOU!
myname1st
 
Posts: 4
Joined: 29. Oct 2015, 19:39

Re: /sbin/vboxconfig fails on Linux 5.4.8 and Mint 19.3

Postby realwuffi » 30. Jan 2020, 00:31

Yeah, works. That's a good solution for me. Installed Kernel 5.5 and works!
realwuffi
 
Posts: 3
Joined: 6. Jan 2020, 18:50

Re: /sbin/vboxconfig fails on Linux 5.4.8 and Mint 19.3

Postby kinghat » 11. Feb 2020, 23:10

myname1st wrote:@dacorsa,
THANK YOU SO MUCH for posting this.

I sorta follow what you mentioned, but i ovbiously needed a couple more things (like gcc-8, lol). I tried some things and here are the results:

Here is what to do:
First, install gcc-8
Code: Select all   Expand viewCollapse view
sudo apt install gcc-8 g++-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-8 --slave /usr/bin/gcov gcov /usr/bin/gcov-8

if you now run
Code: Select all   Expand viewCollapse view
gcc --version
you will see that you have v8

Next, issue the vboxconfig command:
Code: Select all   Expand viewCollapse view
sudo /sbin/vboxconfig


and voila. No need to recompile the kernel or anything. vbox started right after that. I am on kernel 5.5.0
I will post this as a workaround on the ubuntu bug entry. :)

Again @dacorsa: THANK YOU!

worked for me as well! tyvm!
kinghat
 
Posts: 4
Joined: 7. Dec 2018, 00:42

Re: /sbin/vboxconfig fails on Linux 5.4.8 and Mint 19.3

Postby hwertz » 11. May 2020, 03:00

Worked for me too, on all but one machine.

On one machine, I kept having vboxdrv and /sbin/vboxconfig fail oddly, finally I took a look for vbox* stuff in /etc/ compared to a working sysytem -- I had obsolete vboxadd* files from 2016 on there!!! :oops: Don't know if these were from a Ubuntu 16.04-era package install or ".run" file.

I'd just run something like
Code: Select all   Expand viewCollapse view
sudo find /etc/ -name "vboxadd*"
and delete any vboxadd files you find (DON'T DELETE vboxdrv files, those are current). I had 4 files in there. Two vboxadd.sh files in /etc/kernel/preinst.d and postinst.d, and 2 other vboxadd* files, one for systemd and one for udev . I also had a vboxadd.service in /lib/systemd/system/.

No surprise that these 4 year old scripts didn't run properly, but they also were doing something to the kernel headers that kept vboxdrv or /sbin/vboxconfig from building functional modules, it'd build for "5.6.11" instead of "5.6.11-050611-generic" so they'd go in the wrong folder in /lib/modules and wouldn't load anyway because kernel vermagic doesn't match.
hwertz
 
Posts: 1
Joined: 11. May 2020, 02:41

Previous

Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: Google [Bot] and 15 guests