You are not logged in.

#1 2014-05-23 13:25:25

phoenixRO
Member
Registered: 2011-09-15
Posts: 21

ArchLinux as a VirtualBox guest -- Xorg freezes

Hi all,

I have successfully installed ArchLinux under VirtualBox, also managed to install the guest additions and modprobe them. Installed xorg, ran Xorg -configure, got an xorg.conf.new file in my /root dir. Now, I do have vboxvideo enabled in the config file. I also installed xf86-video-vesa as a precaution.

So my problem is that xorg freezes (I cannot Alt+F1, Ctrl+Alt+F1, Ctrl+Alt+Del or anything) when I use vboxvideo. On the other hand, I can get awesome running when using the vesa driver.

Offline

#2 2014-05-23 15:24:34

silverhammermba
Wiki Maintainer
Registered: 2011-04-14
Posts: 156

Re: ArchLinux as a VirtualBox guest -- Xorg freezes

For one, it sounds like you're running everything as root which is not a good idea.

I'm also running Arch as a guest, but I've never heard of using Xorg -configure or putting vboxvideo in a config file. I just have the kernel load the vboxvideo module at boot as describe on the wiki.
https://wiki.archlinux.org/index.php/Vi … _modules_2

Offline

#3 2014-05-23 18:56:55

phoenixRO
Member
Registered: 2011-09-15
Posts: 21

Re: ArchLinux as a VirtualBox guest -- Xorg freezes

Yes, I am running X as root. I am running a (very) fresh install, and wanted to install everything before I move on with setting up users.

And yes, I have already gone through the newbie install guide and through "install arch as a guest" guide. A peculiar thing was that, after installing the vbox modules, I had most (if not all) of the vbox installed files with length 0. Same happened for example for the vesa driver. Maybe there's an issue with pacman, I got some "invalid signature / certificate" a couple of times, but just reinstalled the packages and it worked.

Offline

#4 2014-05-23 19:43:33

phoenixRO
Member
Registered: 2011-09-15
Posts: 21

Re: ArchLinux as a VirtualBox guest -- Xorg freezes

Okay, an update is required: I have reinstalled the system, tried to install virtualbox-guest-modules directly, but couldn't modprobe -a them (error: not found, but there they were in /lib/modules). Anyway, moving on, I installed the dkms version, all good, modprobe -a works. Also install Xorg, awesome, virtualbox-guest-utils (this order). All good, but still get a freeze on startx. Anyway, install openssh, putty into the machine and startx from there. The virtualbox window is quite frozen, but the ssh window isn't! I get the following output:

X.Org X Server 1.15.1
Release Date: 2014-04-13
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.14.0-4-ARCH i686
Current Operating System: Linux arch-box 3.14.4-1-ARCH #1 SMP PREEMPT Tue May 13 16:44:54 CEST 2014 i686
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=5f1e41bf-0818-429d-8dbd-8b3123aa2b35 rw quiet
Build Date: 14 April 2014  08:41:02AM

Current version of pixman: 0.32.4
        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: "/var/log/Xorg.0.log", Time: Fri May 23 21:37:26 2014
(==) Using config directory: "/etc/X11/xorg.conf.d"
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension Present
Initializing built-in extension DRI3
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
Inconsistency detected by ld.so: dl-open.c: 678: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed!
^Cxinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: unexpected signal 2

I am actually concerned about the failed assertion. Well and now I am also concerned by the fact that I had to rm some .so files belonging to libxcb because I got a bunch of "/sbin/ldconfig: File [...] is empty, not checked." errors. I'd love some pointers on what to read about this issue. The best arch-linux forum thread I could find was dated in 2011, and recommended me to "pacman -Syyf [package]", but "-f" is not valid with pacman anymore.

Thanks!

Offline

#5 2014-05-23 19:54:34

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: ArchLinux as a VirtualBox guest -- Xorg freezes

What if you just don't use the 'f' flag.  It stands for 'force'; is there a conflict without it?
BTW, I'll help with Pacman issues, but I'll not help with trying to run X is root.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2014-05-23 20:09:37

phoenixRO
Member
Registered: 2011-09-15
Posts: 21

Re: ArchLinux as a VirtualBox guest -- Xorg freezes

Yes, I tried it without "-f" but still did not get it work like that. What I did was actually remove the files which were listed and then re-installed libxcb and all good.

So okay, I got it work now. I am not sure which are the minimum required steps needed, but:
1) Installed glibc
2) LD_DEBUG=files startx --> see that the assertion failed after loading vboxvideo_dri. Google it.
3) Find out this: https://bbs.archlinux.org/viewtopic.php?pid=624327 Second message mentions installing libxcomposite, which I did. One startx later I stopped getting X errors. Nice.

Now, I can get xterm running in X, but not awesome. I guess I misconfigured .xinitrc, but that's a different story altogether. Maybe libxcomposite should be a dependency for virtualbox-guest-utils? I'm not sure, I also had problems with virtualbox-guest-modules so probably I did something wrong, maybe this is also related to the host system (Dell laptop with Nvidia video card -- I tend to get a lot of compatibility issues).

Offline

#7 2014-05-23 20:19:25

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: ArchLinux as a VirtualBox guest -- Xorg freezes

Yeah, without a ~/.xinitrc, you end up using the default /etc/X11/xinit/xinitrc which starts dwm.  Sounds like that is what you ran.

There is a prototype in /etc/skel/  Just copy it to your user's home directory and start from there.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#8 2014-05-23 20:24:24

phoenixRO
Member
Registered: 2011-09-15
Posts: 21

Re: ArchLinux as a VirtualBox guest -- Xorg freezes

Thanks! Well that is interesting: I got a lot of xcb-related errors. Strange, since all pacman installs went smoothly. So I figured out I should reinstall (manually) some of the xcb-util-* packages. Most of them installed ok. xcb-util-wm error'd me, but with:

(1/1) checking keys in keyring                                                                                                                 [#######################################################################################] 100%
(1/1) checking package integrity                                                                                                               [#######################################################################################] 100%
(1/1) loading package files                                                                                                                    [#######################################################################################] 100%
(1/1) checking for file conflicts                                                                                                              [#######################################################################################] 100%
error: failed to commit transaction (conflicting files)
xcb-util-wm: /usr/include/xcb/xcb_ewmh.h exists in filesystem
xcb-util-wm: /usr/include/xcb/xcb_icccm.h exists in filesystem
xcb-util-wm: /usr/lib/pkgconfig/xcb-ewmh.pc exists in filesystem
xcb-util-wm: /usr/lib/pkgconfig/xcb-icccm.pc exists in filesystem
xcb-util-wm: /usr/share/licenses/xcb-util-wm/LICENSE exists in filesystem

Now this error came up a couple of times, and I just diligently removed the offenders and "pacman -S" again. It also happened that this /etc/skel/.xinitrc was not there earlier, or it was empty during my previous installation.

My question is: why do some of the files installed by pacman end up empty, or even not there at all? Is there something wrong with my pacman configuration? I should mention that I haven't touched any pacman config file.

Many thanks again for all the patience you have! :-)

EDIT: after trying to install terminator:

ldconfig: File /usr/lib/libdns_sd.so.1.0.0 is empty, not checked.
ldconfig: File /usr/lib/libavahi-ui-gtk3.so is empty, not checked.
ldconfig: File /usr/lib/libavahi-client.so.3.2.9 is empty, not checked.
ldconfig: File /usr/lib/libavahi-client.so is empty, not checked.
ldconfig: File /usr/lib/libavahi-ui.so.0 is empty, not checked.
ldconfig: File /usr/lib/libavahi-qt4.so.1 is empty, not checked.
ldconfig: File /usr/lib/libavahi-ui.so.0.1.4 is empty, not checked.
ldconfig: File /usr/lib/libavahi-core.so.7.0.2 is empty, not checked.
ldconfig: File /usr/lib/libatk-1.0.so is empty, not checked.
ldconfig: File /usr/lib/libxml2.so is empty, not checked.
ldconfig: File /usr/lib/libavahi-qt4.so.1.0.2 is empty, not checked.
ldconfig: File /usr/lib/libxml2.so.2.9.1 is empty, not checked.
ldconfig: File /usr/lib/libavahi-glib.so is empty, not checked.
ldconfig: File /usr/lib/libhowl.so.0 is empty, not checked.
ldconfig: File /usr/lib/libavahi-common.so.3.5.3 is empty, not checked.
ldconfig: File /usr/lib/libdns_sd.so is empty, not checked.
ldconfig: File /usr/lib/libavahi-gobject.so.0.0.4 is empty, not checked.
ldconfig: File /usr/lib/libavahi-glib.so.1.0.2 is empty, not checked.
ldconfig: File /usr/lib/libatk-1.0.so.0.21209.1 is empty, not checked.
ldconfig: File /usr/lib/libxml2.so.2 is empty, not checked.
ldconfig: File /usr/lib/libavahi-core.so.7 is empty, not checked.
ldconfig: File /usr/lib/libavahi-qt4.so is empty, not checked.
ldconfig: File /usr/lib/libavahi-ui-gtk3.so.0 is empty, not checked.
ldconfig: File /usr/lib/libhowl.so is empty, not checked.
ldconfig: File /usr/lib/libavahi-common.so is empty, not checked.
ldconfig: File /usr/lib/libdaemon.so.0 is empty, not checked.
ldconfig: File /usr/lib/libavahi-glib.so.1 is empty, not checked.
ldconfig: File /usr/lib/libdaemon.so.0.5.0 is empty, not checked.
ldconfig: File /usr/lib/libavahi-client.so.3 is empty, not checked.
ldconfig: File /usr/lib/libavahi-common.so.3 is empty, not checked.
ldconfig: File /usr/lib/libdaemon.so is empty, not checked.
ldconfig: File /usr/lib/libavahi-ui-gtk3.so.0.1.4 is empty, not checked.
ldconfig: File /usr/lib/libavahi-gobject.so is empty, not checked.
ldconfig: File /usr/lib/libdns_sd.so.1 is empty, not checked.
ldconfig: File /usr/lib/libavahi-gobject.so.0 is empty, not checked.
ldconfig: File /usr/lib/libavahi-core.so is empty, not checked.
ldconfig: File /usr/lib/libhowl.so.0.0.0 is empty, not checked.
ldconfig: File /usr/lib/libavahi-ui.so is empty, not checked.
ldconfig: File /usr/lib/libatk-1.0.so.0 is empty, not checked.

Last edited by phoenixRO (2014-05-23 20:37:48)

Offline

#9 2014-05-23 21:11:42

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: ArchLinux as a VirtualBox guest -- Xorg freezes

Something is not right, because the files should not be empty or missing.  Also, how are you dealing with the conflicts? Are you just removing them by hand?
Have you ever installed anything without using Pacman?  For example, have you used make install, or un-tarred an archive by hand outside of your home directory?

Why don't you do a quick check with pacman -Qk for missing files.  Try sudo pacman -Qk | grep -v ' 0 missing'


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#10 2014-05-23 21:20:18

phoenixRO
Member
Registered: 2011-09-15
Posts: 21

Re: ArchLinux as a VirtualBox guest -- Xorg freezes

So I tried to install avahi again, since it looked weird, and got a "package corrupted" (signature error? didn't copy the actual error, sorry!). Now I grew tired of removing files manually, so I started to "pacman -S --force". I *know* this is bad practice, but I was going to replace those files anyway.

I installed some other packages, and it went ok. I also installed yaourt via makepkg + pacman -U and that also went ok. It looks like I don't have any other errors; I've also run the last command you mentioned and nothing was printed. Is there a pacman trick to check integrity of all the installed package files? Also, if the pacman -S used to fail, why didn't it report an error? Also, why didn't pacman check package integrity first, and then try to install files all around the filesystem.

Heh, quite a lot of questions there. :-)

Edit: I'm not asking the questions in an offensive way. They are just rhetorical questions, since something went wrong with my pacman.

Last edited by phoenixRO (2014-05-23 21:23:19)

Offline

#11 2014-05-28 20:11:30

silverhammermba
Wiki Maintainer
Registered: 2011-04-14
Posts: 156

Re: ArchLinux as a VirtualBox guest -- Xorg freezes

Well I'm certainly impressed with how you're pushing through these issues somehow without resolving them first. I probably would have stopped at "pacman is installing empty files without reporting errors". You really don't want to be monkeying around manually with pacman-installed files - that's going to come back and bite you over and over again every time you try to upgrade your system. If you want to install things manually, do it in /usr/local where you won't step on pacman's toes.

I should mention that I haven't touched any pacman config file.

This concerns me, since at the very least you should choose a sensible mirror before you start installing packages. Honestly, with a fresh vbox install like yours I would probably redownload the ISO and double check the checksum before starting from scratch. You shouldn't be having this many problems to begin with.

Offline

#12 2014-05-29 11:12:38

phoenixRO
Member
Registered: 2011-09-15
Posts: 21

Re: ArchLinux as a VirtualBox guest -- Xorg freezes

silverhammermba wrote:

Well I'm certainly impressed with how you're pushing through these issues somehow without resolving them first. I probably would have stopped at "pacman is installing empty files without reporting errors".

Well, .. fair enough. However, I was just trying to setup a programming environment for a small project, not a box that I would use daily.

I should mention that I haven't touched any pacman config file.

This concerns me, since at the very least you should choose a sensible mirror before you start installing packages.

Of course, I did edit the config file for that. What I meant was that I did not touch the config file for anything other than what is mentioned in the beginner's guide. Pardon me for not being clear.

Honestly, with a fresh vbox install like yours I would probably redownload the ISO and double check the checksum before starting from scratch. You shouldn't be having this many problems to begin with.

Yes, I should do that next time I set up a vbox. Thanks!

Offline

Board footer

Powered by FluxBB