LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 05-02-2021, 03:26 PM   #1
windowsuser
LQ Newbie
 
Registered: May 2021
Location: Poland
Distribution: Manjaro, Alpine, OpenWRT, Debian
Posts: 19

Rep: Reputation: Disabled
Devuan/VBox 6.1.22: failure to run vboxconfig successfully. Should I install systemd?


Hello, so today I tried to install the extensions for Virtual Box and after running
Code:
sudo VBoxManage list extpacks
I got a message saying that the vboxdrv kernel module is not loaded (I'm running linux 5.10.0-6-amd64 with sysvinit version 2.93-8+devuan1). Here's the vbox setup log: https://pastebin.com/17Cihph3
 
Old 05-02-2021, 04:43 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
VirtualBox modules are quite fragile to build, kernel (or kernel headers) version is important, gcc version is important.
Code:
In file included from /tmp/vbox.0/linux/SUPDrv-linux.c:33:
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:141:11: fatal error: linux/smp_lock.h: No such file or directory
  141 | # include <linux/smp_lock.h>
      |           ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [/usr/src/linux-headers-5.10.0-6-common/scripts/Makefile.build:284: /tmp/vbox.0/linux/SUPDrv-linux.o] Error 1
make[3]: *** Waiting for unfinished jobs....
Here is your error. Not sure why it is looking for smp_lock.h, this file is obsolete, long gone. You may get better response in VirtualBox forums.
 
Old 05-03-2021, 08:28 AM   #3
windowsuser
LQ Newbie
 
Registered: May 2021
Location: Poland
Distribution: Manjaro, Alpine, OpenWRT, Debian
Posts: 19

Original Poster
Rep: Reputation: Disabled
my gcc version is 4:10.2.1-1 and kernel headers are 5.10.28-1
 
Old 05-03-2021, 08:34 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
GCC stable version is 11, your GCC-4 is the first suspect in this failure.
 
Old 05-03-2021, 09:02 AM   #5
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
@Emerson. It's not GCC 4, it's GCC 10 though. 4: here is called epoch: an optional part of the package version in Debian, Fedora, Arch and many other distros.

The Maximum RPM book long ago advised against using it, but the thingy is still used by some packages, both RPMs and DEBs, till this day.

Last edited by shruggy; 05-03-2021 at 09:06 AM.
 
1 members found this post helpful.
Old 05-03-2021, 09:04 AM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Thanks, normally one should do 'gcc -v' to see the actual version in use, there may be several installed.
 
Old 05-03-2021, 10:52 AM   #7
windowsuser
LQ Newbie
 
Registered: May 2021
Location: Poland
Distribution: Manjaro, Alpine, OpenWRT, Debian
Posts: 19

Original Poster
Rep: Reputation: Disabled
@Emerson it says my gcc version is 10.2.1 20210110 (Debian 10.2.1-6)
 
Old 05-03-2021, 12:14 PM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
OK, it is getting this ancient include from somewhere, do you have anything in /usr/local/include ?
 
Old 05-03-2021, 05:57 PM   #9
windowsuser
LQ Newbie
 
Registered: May 2021
Location: Poland
Distribution: Manjaro, Alpine, OpenWRT, Debian
Posts: 19

Original Poster
Rep: Reputation: Disabled
no, nothing
 
Old 05-03-2021, 06:32 PM   #10
windowsuser
LQ Newbie
 
Registered: May 2021
Location: Poland
Distribution: Manjaro, Alpine, OpenWRT, Debian
Posts: 19

Original Poster
Rep: Reputation: Disabled
Ok apparently even though if I remember correctly I installed virtualbox manually from their website, a quick check with package manager revealed that for whatever reason my version was 6.0. After reinstalling with the latest version vboxconfig ran with no errors.
 
Old 05-04-2021, 11:53 AM   #11
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,604

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547

Sounds like you've solved the problem, but the question in the title is confusing:
Quote:
Originally Posted by windowsuser View Post
Devuan/VBox 6.1.22: failure to run vboxconfig successfully. Should I install systemd?
Since the defining characteristic of Devuan is the lack of systemd, if you're willing to install systemd, what benefit is there to running Devuan?

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Devuan - Devuan based distros fatmac Linux - Distributions 50 02-19-2018 08:15 AM
Devuan & Devuan based distro thread fatmac Linux - General 8 07-30-2017 02:55 AM
VirtualBox asks me to run vboxconfig each time Stéphane Ascoët Linux - Virtualization and Cloud 31 04-12-2017 04:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 11:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration