Selfbuilt Virtualbox 6.1 on Slackware current: Qt platform plugin "xcb" not founded
Hiya Guys,
I've recently tried to build Virtualbox 6.1 on Slackware current. But when I start VirtualBox I get an error message. Code:
[lancs@lappi bin]$ ./VirtualBox Any suggestion as to how to fix this issue?
lancs |
most of the times I saw that error reported is because the qt5 dependencies hadn't been installed: assuming that you have a current full installation the only mandatory dependency missing is libxkbcommon, yet assumed you haven't downloaded the packages from somewhere and qt5 hasn't been built using also its optional dependencies (the only one not already in current is snappy).
|
One culprit I know of that causes this is missing libxkbcommon, a confusingly named project that you might think is part of X11's xkb but it's a third party library dependency NOT provided by Slackware. (Alien Bob has it in ktown dependencies)
I actually did a successful compile of qt5 and it failed to detect and build the xcb back end because I was missing that library. I was able to link against my qt5 and everything, but as soon as I tried to run the programs I compiled... blammo. |
@ponce @TheRealGrogan
Indeed, I've just forgotten to install libxkbcommon. But there is an another issue, when I create an vm I get an error message called Code:
Kernel driver not accessible Code:
The virtual machine 'Devuan' has terminated unexpectedly during startup with exit code 1 (0x1). Code:
[lancs@lappi ~]$ groups Lancs |
My guess would be that one or more of the VirtualBox binaries has not got the SUID permissions as it's supposed to.
Code:
-r-s--x--x 1 root root 154200 Dec 10 10:20 VBoxHeadless |
Quote:
https://www.slackwiki.com/VirtualBox_Compilation But I've found a better way, a bit quick&dirty but it works for me. I've customized ricky_cardo's Slackbuild for Virtualbox 6.1 https://www.linuxquestions.org/quest...1/#post5950139 Code:
--- old/virtualbox-6.0.2_builds/virtualbox/virtualbox.SlackBuild 2019-01-21 17:35:30.000000000 +0000 |
I just manually use /opt/VirtualBox/vboxdrv.sh setup/start/stop to build, load and unload the kernel modules. I sure wouldn't want DKMS on my system. I delete the init scripts and symlinks it installs to the sysvinit directories. I have no need of the virtualbox services, just the kernel module handling.
I have always just used the official binaries, because I always thought that you needed 32 bit userspace to compile VirtualBox. I see now that you only need that to build the Guest Additions iso and you can just drop in the precompiled one from the binaries. So yay, I'm going to look into building my own VBox. |
I removed DKMS (removepkg dkms) and rebuild virtualbox 6.1.0 and all seems well...
for anyone out there that wants the builds: http://lehcar.no-ip.org:8080/~rich/v..._builds.tar.gz Instructions: Code:
tar -xvf virtualbox-6.1.0_builds.tar.gz Code:
/bin/bash ./downloads_needed.txt DEP needed: (acpica qt5 virtualbox-kernel dkms) ((again seems fine without dkms, please test further...)) ((again these builds are just lighty modified versions from SlackBuilds.org )) |
You shouldn't put a tar.gz file extension on a .tar file though (it's not a .tar.gz) :-)
file virtualbox-6.1.0_builds.tar.gz virtualbox-6.1.0_builds.tar.gz: POSIX tar archive (GNU) Thanks for the updated script, I haven't tried yet and I'll use it as a reference. |
Does anyone still have ricky_cardo's slackbuild scripts for 6.1.0? His site seems to be down.
|
PITA - my ddns is gone will have to setup again standby
|
New domain seem to have lost previous...
http://lehcar.servebeer.com:8080/~ri..._builds.tar.gz as a bonus bumped to 6.1.2 if you need 6.1.0 it is there too, just change no-ip.org to servebeer.com In each directory run the downloads_needed.txt Code: /bin/bash ./downloads_needed.txt |
Quote:
duckdns even includes instructions on how to setup a cron job to ensure your IP is constantly updated. NOTE: I'm not affiliated with either company, just a happy user of both. |
new url: :) better than the no-ip one where I needed to catch an email monthly and ultimately it got spam filtered.
Thanks for the heads up: bassmadrigal http://lehcar.duckdns.org:8080/~rich..._builds.tar.gz |
Here is a quick update to 6.1.4 (this is good if you are testing Kernel 5.5)
http://lehcar.duckdns.org:8080/~rich..._builds.tar.gz deps needed: acpica virtualbox-kernel to grab source files needed you can run this in each folder Code:
sh ./downloads_needed.txt |
All times are GMT -5. The time now is 06:21 PM. |