VirtualBox faulty UI: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus

Discussions related to using VirtualBox on Linux hosts.
Post Reply
scavy
Posts: 1
Joined: 10. Aug 2017, 01:57

VirtualBox faulty UI: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus

Post by scavy »

I just installed Fedora 26 4.11.11-300.fc26.x86_64 and am trying to install and run VirtualBox. Note that I had the same problems with the previous version/kernel build recently and removed the old VirtualBox packages before system upgrade/reinstallation. Here is my process (from RPM Fusion):

Code: Select all

[scavy@localhost ~]$ sudo dnf install VirtualBox kernel-devel-$(uname -r) akmod-VirtualBox
Last metadata expiration check: 0:30:25 ago on Wed 09 Aug 2017 04:40:17 PM MDT.
Package kernel-devel-4.11.11-300.fc26.x86_64 is already installed, skipping.
Dependencies resolved.
==============================================================================================
 Package                  Arch         Version             Repository                    Size
==============================================================================================
Installing:
 VirtualBox               x86_64       5.1.26-1.fc26       rpmfusion-free-updates       7.2 M
 akmod-VirtualBox         x86_64       5.1.26-1.fc26       rpmfusion-free-updates        29 k
Installing dependencies:
 VirtualBox-kmodsrc       x86_64       5.1.26-1.fc26       rpmfusion-free-updates       799 k
 VirtualBox-server        x86_64       5.1.26-1.fc26       rpmfusion-free-updates        14 M

Transaction Summary
==============================================================================================
Install  4 Packages

Total download size: 23 M
Installed size: 64 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): akmod-VirtualBox-5.1.26-1.fc26.x86_64.rpm              134 kB/s |  29 kB     00:00    
(2/4): VirtualBox-kmodsrc-5.1.26-1.fc26.x86_64.rpm            927 kB/s | 799 kB     00:00    
(3/4): VirtualBox-5.1.26-1.fc26.x86_64.rpm                    1.4 MB/s | 7.2 MB     00:05    
(4/4): VirtualBox-server-5.1.26-1.fc26.x86_64.rpm             1.3 MB/s |  14 MB     00:11    
----------------------------------------------------------------------------------------------
Total                                                         1.8 MB/s |  23 MB     00:12     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                      1/1 
  Installing       : VirtualBox-kmodsrc-5.1.26-1.fc26.x86_64                              1/4 
  Installing       : akmod-VirtualBox-5.1.26-1.fc26.x86_64                                2/4 
  Installing       : VirtualBox-server-5.1.26-1.fc26.x86_64                               3/4 
  Running scriptlet: VirtualBox-5.1.26-1.fc26.x86_64                                      4/4 
  Installing       : VirtualBox-5.1.26-1.fc26.x86_64                                      4/4 
  Running scriptlet: VirtualBox-5.1.26-1.fc26.x86_64                                      4/4 
  Running scriptlet: akmod-VirtualBox-5.1.26-1.fc26.x86_64                                4/4 
  Running scriptlet: VirtualBox-5.1.26-1.fc26.x86_64                                      4/4 
  Verifying        : VirtualBox-5.1.26-1.fc26.x86_64                                      1/4 
  Verifying        : VirtualBox-server-5.1.26-1.fc26.x86_64                               2/4 
  Verifying        : akmod-VirtualBox-5.1.26-1.fc26.x86_64                                3/4 
  Verifying        : VirtualBox-kmodsrc-5.1.26-1.fc26.x86_64                              4/4 

Installed:
  VirtualBox.x86_64 5.1.26-1.fc26                akmod-VirtualBox.x86_64 5.1.26-1.fc26        
  VirtualBox-kmodsrc.x86_64 5.1.26-1.fc26        VirtualBox-server.x86_64 5.1.26-1.fc26       

Complete!

Code: Select all

 $akmods
    $systemctl restart systemd-modules-load.service
    $dmesg | grep -i vbox
[    1.057192] vboxdrv: loading out-of-tree module taints kernel.
[    1.057346] vboxdrv: module verification failed: signature and/or required key missing - tainting kernel
[    1.058094] vboxdrv: Found 4 processor cores
[    1.077155] vboxdrv: TSC mode is Invariant, tentative frequency 3292531211 Hz
[    1.077156] vboxdrv: Successfully loaded version 5.1.26 (interface 0x002a0000)
[    1.077492] VBoxNetFlt: Successfully started.
[    1.077705] VBoxNetAdp: Successfully started.
[    1.077939] VBoxPciLinuxInit
[    1.077942] vboxpci: IOMMU not found (not registered)
[  824.361468] VBoxPciLinuxLinuxUnload
[  855.368896] vboxdrv: Found 4 processor cores
[  855.385713] vboxdrv: TSC mode is Invariant, tentative frequency 3292471283 Hz
[  855.385715] vboxdrv: Successfully loaded version 5.1.26 (interface 0x002a0000)
[  855.386273] VBoxNetFlt: Successfully started.
[  855.387059] VBoxNetAdp: Successfully started.
[  855.387369] VBoxPciLinuxInit
[  855.387372] vboxpci: IOMMU not found (not registered)
$ VirtualBox 

** (VirtualBox:18766): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-Gy8Y9jNtrJ: Connection refused
Qt WARNING: libpng warning: iCCP: known incorrect sRGB profile
Now VirtualBox is loaded but the menus in the toolbar won't expand when clicked, and the only menus I can open, New and Settings, both have anomalous behavior in the sub-menus, e.g. can't expand context menus/drop downs. When I run as sudo everything works fine. VirtualBox in the past has never needed to run as sudo.

From here I looked at the

Code: Select all

 /var/log/vbox-install.log
and found one error:

Code: Select all

make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG= -C /lib/modules/4.10.6-200.fc25.x86_64/build -j4 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (    \
echo >&2;                           \
echo >&2 "  ERROR: Kernel configuration is invalid.";       \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
echo >&2 ;      
Also note that

Code: Select all

sudo modprobe vboxdrv
executes with no output.

Thank you for your time.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VirtualBox faulty UI: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/db

Post by Perryg »

You are installing a fork from rpmfusion and need to ask them what to do or remove theirs and install the official version from virtualbox.org.

Also the error you posted is not an error. It is echo code and not a response to an invalid build.
Post Reply