You are not logged in.

#1 2017-04-10 13:18:07

tnek
Member
Registered: 2008-06-10
Posts: 40

[SOLVED] Xorg in Virtualbox results in module loading problem

I have a working VirtualBox guest command line system, but can't get Xorg to work even though I've tried to follow the instructions in both the Wiki and instructions from other web sites. At the moment I feel stuck so I am hoping for some guidance.

The expected graphics adapter from inside a VirtualBox system is found:

$ lspci | grep VGA
00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter

So I installed xorg-server:

$ pacman -S xorg-server
resolving dependencies...
:: There are 3 providers available for libgl:
:: Repository extra
   1) libglvnd  2) nvidia-304xx-utils  3) nvidia-340xx-utils

Enter a number (default=1): 1
looking for conflicting packages...
warning: dependency cycle detected:
warning: harfbuzz will be installed before its freetype2 dependency
warning: dependency cycle detected:
warning: mesa will be installed before its libglvnd dependency

Packages (57) damageproto-1.2.1-3  fixesproto-5.0+9+g4292ec1-1  fontconfig-2.12.1-4  fontsproto-2.1.3-1  freetype2-2.7.1-1
              graphite-1:1.3.9-1  harfbuzz-1.4.5-1  kbproto-1.0.7-1  libdrm-2.4.77-1  libepoxy-1.4.1-1  libevdev-1.5.6-1
              libfontenc-1.1.3-1  libglvnd-0.2.999+g4ba53457-2  libgudev-231-1  libinput-1.7.0-1  libomxil-bellagio-0.9.3-1
              libpciaccess-0.13.4-1  libpng-1.6.29-1  libtxc_dxtn-1.0.1-6  libunwind-1.1-3  libwacom-0.24-1  libx11-1.6.5-1  libxau-1.0.8-2
              libxcb-1.12-1  libxdamage-1.1.4-2  libxdmcp-1.1.2-1  libxext-1.3.3-1  libxfixes-5.0.3-1  libxfont-1.5.2-1  libxfont2-2.0.1-1
              libxkbfile-1.0.9-1  libxml2-2.9.4+12+ge905f081-5  libxshmfence-1.2-1  libxxf86vm-1.1.4-1  llvm-libs-3.9.1-2  mesa-17.0.2-2
              mtdev-1.1.5-1  pixman-0.34.0-1  wayland-1.13.0-1  xcb-proto-1.12-3  xextproto-7.3.0-1  xf86-input-libinput-0.25.0-1
              xf86vidmodeproto-2.3.1-3  xkeyboard-config-2.20-1  xorg-bdftopcf-1.0.5-1  xorg-font-util-1.3.1-1  xorg-font-utils-7.6-4
              xorg-fonts-alias-1.0.3-1  xorg-fonts-encodings-1.0.4-4  xorg-fonts-misc-1.0.3-5  xorg-mkfontdir-1.0.7-8
              xorg-mkfontscale-1.1.2-1  xorg-server-common-1.19.3-1  xorg-setxkbmap-1.3.1-1  xorg-xkbcomp-1.3.1-1  xproto-7.0.31-1
              xorg-server-1.19.3-1

Total Download Size:    40.73 MiB
Total Installed Size:  161.76 MiB

:: Proceed with installation? [Y/n]
...

I use the default kernel package:

$ pacman -Q | grep linux
archlinux-keyring 20170320-1
libutil-linux 2.29.2-2
linux 4.10.8-1
linux-api-headers 4.10.1-1
linux-firmware 20170309.695f2d6-1
util-linux 2.29.2-2

Since I want X support I installed virtualbox-guest-utils and since I have the default kernel I picked virtualbox-guest-modules-arch:

$ pacman -S virtualbox-guest-utils
resolving dependencies...
:: There are 2 providers available for VIRTUALBOX-GUEST-MODULES:
:: Repository community
   1) virtualbox-guest-dkms  2) virtualbox-guest-modules-arch

Enter a number (default=1): 2
looking for conflicting packages...

Packages (13) compositeproto-0.4.2-3  libice-1.0.9-1  libsm-1.2.2-2  libxcomposite-0.4.4-2  libxmu-1.1.2-1  libxrandr-1.5.1-1
              libxrender-0.9.10-1  libxt-1.1.5-1  randrproto-1.5.0-1  renderproto-0.11.1-3  virtualbox-guest-modules-arch-5.1.18-3
              xorg-xrandr-1.5.0-1  virtualbox-guest-utils-5.1.18-1

Total Download Size:    2.18 MiB
Total Installed Size:  11.95 MiB

:: Proceed with installation? [Y/n]
...

After that I reboot my system and activated VirtualBox guest services

$ reboot # the next line is after logging in again
$ VBoxClient-all

In some output below there will be some /dev/tty0 warnings, I have tried to remove some of them but not all. They exist only because I redirected stdout and stderr to a file, apart from that everything is the same. Disregard those as I get the same error when I don't redirect output.

When I try to start Xorg it fails:

X.Org X Server 1.19.3
Release Date: 2017-03-15
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.9.11-1-ARCH x86_64
Current Operating System: Linux klavarch 4.10.8-1-ARCH #1 SMP PREEMPT Fri Mar 31 16:50:19 CEST 2017 x86_64
Kernel command line: initrd=\intel-ucode.img initrd=\initramfs-linux.img luks.uuid=edffb3cc-c44e-4c08-934f-960d0ffdc858 luks.name=slash root=UUID=73a00555-e4fe-4659-b8c6-9a61d441b9f8 rw resume=UUID=73a00555-e4fe-4659-b8c6-9a61d441b9f8 resume_offset=231424 fbcon=scrollback:100k
Build Date: 07 April 2017  05:42:48PM

Current version of pixman: 0.34.0
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/kent/.local/share/xorg/Xorg.0.log", Time: Mon Apr 10 14:34:59 2017
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) Please also check the log file at "/home/kent/.local/share/xorg/Xorg.0.log" for additional information.
(EE) Server terminated with error (1). ...

And the log file contents tells me that it among others had problems loading the vboxvideo module:

$ cat /home/kent/.local/share/xorg/Xorg.0.log
[   571.528]
X.Org X Server 1.19.3
Release Date: 2017-03-15
[   571.528] X Protocol Version 11, Revision 0
[   571.528] Build Operating System: Linux 4.9.11-1-ARCH x86_64
[   571.528] Current Operating System: Linux klavarch 4.10.8-1-ARCH #1 SMP PREEMPT Fri Mar 31 16:50:19 CEST 2017 x86_64
[   571.528] Kernel command line: initrd=\intel-ucode.img initrd=\initramfs-linux.img luks.uuid=edffb3cc-c44e-4c08-934f-960d0ffdc858 luks.name=slash root=UUID=73a00555-e4fe-4659-b8c6-9a61d441b9f8 rw resume=UUID=73a00555-e4fe-4659-b8c6-9a61d441b9f8 resume_offset=231424 fbcon=scrollback:100k
[   571.528] Build Date: 07 April 2017  05:42:48PM
[   571.528]
[   571.528] Current version of pixman: 0.34.0
[   571.528]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   571.528] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   571.528] (==) Log file: "/home/kent/.local/share/xorg/Xorg.0.log", Time: Mon Apr 10 14:34:59 2017
[   571.529] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   571.529] (==) No Layout section.  Using the first Screen section.
[   571.529] (==) No screen section available. Using defaults.
[   571.529] (**) |-->Screen "Default Screen Section" (0)
[   571.529] (**) |   |-->Monitor "<default monitor>"
[   571.529] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[   571.529] (==) Automatically adding devices
[   571.529] (==) Automatically enabling devices
[   571.529] (==) Automatically adding GPU devices
[   571.529] (==) Automatically binding GPU devices
[   571.529] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   571.529] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   571.529]    Entry deleted from font path.
[   571.529] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[   571.529]    Entry deleted from font path.
[   571.529]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[   571.529] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[   571.529]    Entry deleted from font path.
[   571.529]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[   571.529] (==) FontPath set to:
        /usr/share/fonts/misc/,
        /usr/share/fonts/TTF/,
        /usr/share/fonts/OTF/
[   571.529] (==) ModulePath set to "/usr/lib/xorg/modules"
[   571.529] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[   571.529] (II) Loader magic: 0x822d60
[   571.529] (II) Module ABI versions:
[   571.529]    X.Org ANSI C Emulation: 0.4
[   571.529]    X.Org Video Driver: 23.0
[   571.529]    X.Org XInput driver : 24.1
[   571.529]    X.Org Server Extension : 10.0
[   571.534] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[   571.535] (II) xfree86: Adding drm device (/dev/dri/card0)
[   571.536] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[   571.539] (--) PCI:*(0:0:2:0) 80ee:beef:0000:0000 rev 0, Mem @ 0x80000000/134217728, BIOS @ 0x????????/131072
[   571.539] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   571.539] (II) LoadModule: "glx"
[   571.539] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   571.541] (II) Module glx: vendor="X.Org Foundation"
[   571.541]    compiled for 1.19.3, module version = 1.0.0
[   571.541]    ABI class: X.Org Server Extension, version 10.0
[   571.541] (==) Matched vboxvideo as autoconfigured driver 0
[   571.541] (==) Matched vboxvideo as autoconfigured driver 1
[   571.541] (==) Matched modesetting as autoconfigured driver 2
[   571.541] (==) Matched fbdev as autoconfigured driver 3
[   571.541] (==) Matched vesa as autoconfigured driver 4
[   571.541] (==) Assigned the driver to the xf86ConfigLayout
[   571.541] (II) LoadModule: "vboxvideo"
[   571.542] (WW) Warning, couldn't open module vboxvideo
[   571.542] (II) UnloadModule: "vboxvideo"
[   571.542] (II) Unloading vboxvideo
[   571.542] (EE) Failed to load module "vboxvideo" (module does not exist, 0)
[   571.542] (II) LoadModule: "modesetting"
[   571.542] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   571.542] (II) Module modesetting: vendor="X.Org Foundation"
[   571.542]    compiled for 1.19.3, module version = 1.19.3
[   571.542]    Module class: X.Org Video Driver
[   571.542]    ABI class: X.Org Video Driver, version 23.0
[   571.542] (II) LoadModule: "fbdev"
[   571.542] (WW) Warning, couldn't open module fbdev
[   571.542] (II) UnloadModule: "fbdev"
[   571.542] (II) Unloading fbdev
[   571.542] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   571.542] (II) LoadModule: "vesa"
[   571.543] (WW) Warning, couldn't open module vesa
[   571.543] (II) UnloadModule: "vesa"
[   571.543] (II) Unloading vesa
[   571.543] (EE) Failed to load module "vesa" (module does not exist, 0)
[   571.543] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   571.543] (EE)
Fatal server error:
[   571.543] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
[   571.543] (EE)
[   571.543] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[   571.543] (EE) Please also check the log file at "/home/kent/.local/share/xorg/Xorg.0.log" for additional information.
[   571.543] (EE)
[   571.543] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[   571.543] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[   571.551] (EE) Server terminated with error (1). Closing log file.

In the above I went for the minimal amount of steps to reproduce the problem (so I skipped using startx). Let me know if additional information is needed for being able to help me out and I'll update this post.

Last edited by tnek (2017-04-10 23:48:28)

Offline

#2 2017-04-10 16:59:48

pm3840
Member
Registered: 2013-12-16
Posts: 61

Re: [SOLVED] Xorg in Virtualbox results in module loading problem

try reinstall guest modules
this package: virtualbox-guest-modules-arch

[   571.542] (EE) Failed to load module "vboxvideo" (module does not exist, 0)

Last edited by pm3840 (2017-04-10 17:00:30)

Offline

#3 2017-04-10 20:32:19

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,591

Re: [SOLVED] Xorg in Virtualbox results in module loading problem

pm3840 wrote:

try reinstall guest modules
this package: virtualbox-guest-modules-arch

[   571.542] (EE) Failed to load module "vboxvideo" (module does not exist, 0)

And yet again, that error is normal as that DDX module does not exist in Arch

Last edited by Scimmia (2017-04-10 20:57:39)

Offline

#4 2017-04-10 23:46:33

tnek
Member
Registered: 2008-06-10
Posts: 40

Re: [SOLVED] Xorg in Virtualbox results in module loading problem

My problem was that I tried to start Xorg as a regular user. I found it out when I accidentally started Xorg as root, which worked and gave a blank screen.

When I installed xorg-xinit and xterm (as it's started by default via startx) and then issued startx it worked and I got an X session with a running terminal. I am still new to X and didn't yet  understand that I must have xinit installed if I want to run X as a regular user (please correct me if that assumption is wrong).

Offline

#5 2017-04-11 01:15:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,802

Re: [SOLVED] Xorg in Virtualbox results in module loading problem

It is more likely that, when you ran as root, you left some files around your users directory that are now owned by root and your user cannot overwrite them.  Look for files anywhere in your user's directory tree that are owned by root, there really should not be any.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#6 2017-04-11 12:19:29

tnek
Member
Registered: 2008-06-10
Posts: 40

Re: [SOLVED] Xorg in Virtualbox results in module loading problem

ewaller wrote:

It is more likely that, when you ran as root, you left some files around your users directory that are now owned by root and your user cannot overwrite them.  Look for files anywhere in your user's directory tree that are owned by root, there really should not be any.

It does not seem to be the problem, there are quite few files and they're all owned by me.

$ echo $HOME
/home/kent
$ pwd
/home/kent
$ ls -la
total 32
drwx------ 2 kent kent 4096 Apr 11 14:08 .
drwxr-xr-x 3 root root 4096 Mar  8 23:47 ..
-rw------- 1 kent kent  996 Apr 10 14:30 .bash_history
-rw-r--r-- 1 kent kent   21 Jan 30 08:40 .bash_logout
-rw-r--r-- 1 kent kent   57 Jan 30 08:40 .bash_profile
-rw-r--r-- 1 kent kent  141 Jan 30 08:40 .bashrc
-rw-r--r-- 1 kent kent    0 Mar  9 00:54 somefile
-rw-r----- 1 kent kent    4 Apr 10 14:30 .vboxclient-draganddrop.pid
-rw-r----- 1 kent kent    4 Apr 10 14:30 .vboxclient-seamless.pid

If I run sudo Xorg it works and I get the black screen, if not I get the error from previous posts. Couldn't there be some kind of privilege that my normal user needs but does not have?

$ id
uid=1000(kent) gid=1000(kent) groups=1000(kent),10(wheel)
$ sudo id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),19(log)

Offline

Board footer

Powered by FluxBB