LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Selfbuilt Virtualbox 6.1 on Slackware current: Qt platform plugin "xcb" not founded (https://www.linuxquestions.org/questions/slackware-14/selfbuilt-virtualbox-6-1-on-slackware-current-qt-platform-plugin-xcb-not-founded-4175665861/)

lancsuk 12-12-2019 12:17 PM

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
Qt FATAL: This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Reinstalling the application may fix this problem.
Aborted


Any suggestion as to how to fix this issue?
  1. OS Slackware64-current multilib
  2. KERNEL 5.4.2
  3. QT-VERSION 5.9.8


lancs

ponce 12-12-2019 12:28 PM

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).

TheRealGrogan 12-12-2019 03:47 PM

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.

lancsuk 12-13-2019 12:29 AM

@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).


Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
MachineWrap
Interface:
IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}

The funny thing is, I have this issue not as root.

Code:

[lancs@lappi ~]$ groups
users lp wheel floppy audio video cdrom plugdev power netdev scanner vboxusers


Lancs

TheRealGrogan 12-13-2019 04:51 AM

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
-r-s--x--x  1 root root    23128 Dec 10 10:20 VBoxNetAdpCtl
-r-s--x--x  1 root root  154192 Dec 10 10:20 VBoxNetDHCP
-r-s--x--x  1 root root  154192 Dec 10 10:20 VBoxNetNAT
-r-s--x--x  1 root root  154192 Dec 10 10:20 VBoxSDL
-r-s--x--x  1 root root    10544 Dec 10 10:20 VBoxVolInfo
-r-s--x--x  1 root root  154200 Dec 10 10:20 VirtualBoxVM


lancsuk 12-13-2019 05:32 AM

Quote:

Originally Posted by TheRealGrogan (Post 6067444)
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
-r-s--x--x  1 root root    23128 Dec 10 10:20 VBoxNetAdpCtl
-r-s--x--x  1 root root  154192 Dec 10 10:20 VBoxNetDHCP
-r-s--x--x  1 root root  154192 Dec 10 10:20 VBoxNetNAT
-r-s--x--x  1 root root  154192 Dec 10 10:20 VBoxSDL
-r-s--x--x  1 root root    10544 Dec 10 10:20 VBoxVolInfo
-r-s--x--x  1 root root  154200 Dec 10 10:20 VirtualBoxVM


I just have built VirtualBox as a user.

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
+++ ./virtualbox-6.0.2_builds/virtualbox/virtualbox.SlackBuild        2019-12-13 09:18:08.553967669 +0000
@@ -25,7 +25,7 @@
 
 PRGNAM=virtualbox
 SRCNAM=VirtualBox
-VERSION=${VERSION:-6.0.2}
+VERSION=${VERSION:-6.1.0}
 BUILD=${BUILD:-5}
 TAG=${TAG:-_rah}
 
@@ -130,7 +130,7 @@
 
 # We don't want an init-script building kernel modules.
 # Use virtualbox-kernel.SlackBuild for this.
-patch -d src/VBox/Installer/linux -i $CWD/vboxdrv.sh-setup.diff
+#patch -d src/VBox/Installer/linux -i $CWD/vboxdrv.sh-setup.diff
 
 # Fix wrong path to rdesktop-vrdp-keymaps
 #patch -p1 -i $CWD/006-rdesktop-vrdp-keymap-path.patch

lancs

TheRealGrogan 12-13-2019 01:33 PM

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.

ricky_cardo 12-19-2019 05:11 AM

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
then in each directory run the downloads_needed.txt
Code:

/bin/bash ./downloads_needed.txt
--thanks for the push lancsuk was actually stalling upgrading to kernel 5.4.x until I knew virtualbox was ok.

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 ))

TheRealGrogan 12-19-2019 06:23 AM

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.

av2zeal 02-17-2020 11:09 AM

Does anyone still have ricky_cardo's slackbuild scripts for 6.1.0? His site seems to be down.

ricky_cardo 02-19-2020 01:09 PM

PITA - my ddns is gone will have to setup again standby

ricky_cardo 02-19-2020 01:22 PM

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

bassmadrigal 02-19-2020 09:30 PM

Quote:

Originally Posted by ricky_cardo (Post 6091895)
PITA - my ddns is gone will have to setup again standby

duckdns.org seems to be a very reliable dynamic dns. I've been using them for the past 5 years (I think I started using them after dyndns.org got rid of their free service). I have mine linked with a free domain from dot.tk that requires annual renewals (they send reminder emails and it's a few clicks and less than 30 seconds once a year). Other than my annual renewal reminder from dot.tk, I've been completely problem-free and don't even think about it.

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.

ricky_cardo 02-20-2020 08:28 PM

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

ricky_cardo 02-22-2020 12:17 PM

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.