Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 513342

Summary: app-emulation/virtualbox-4.2.24 - starting guest OS in virtualbox quietly crashes X
Product: Gentoo Linux Reporter: EncryptedPhreak <encryptedphreak>
Component: Current packagesAssignee: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Status: RESOLVED OBSOLETE    
Severity: normal CC: bkohler, encryptedphreak, patrick
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Xorg.0.log.old
Latest dmesg
lsmod output prior to running VBox
Xorg.0.log.old
Latest Xorg.0.log

Description EncryptedPhreak 2014-06-15 12:40:46 UTC
Hi Guys,

I followed all the steps here:  http://wiki.gentoo.org/wiki/VirtualBox

However, whenever I try to launch ANY Guest OS (Debian, Windows, xubuntu, etc) under VirtualBox, within 2 seconds, I presented with my KDE user login screen, despite being logged in already.

When I attempt to (re)enter my <USER> password, I am immediately (re)returned to my KDE user login screen.  If I try to open another TTY (ctrl-alt-f2), I see and endless stream of messages, and cannot login.

There is no apparent workable escape from this trap other than to shutdown.

Below is what I know, if you need me to look elsewhere, just tell me where to find the information you need.

emerge -s virtualbox
Searching...    
[ Results for search key : virtualbox ]
[ Applications found : 8 ]

*  app-emulation/phpvirtualbox [ Masked ]
      Latest version available: 4.3.0
      Latest version installed: [ Not Installed ]
      Size of files: 4,132 kB
      Homepage:      https://sourceforge.net/projects/phpvirtualbox/
      Description:   Web-based administration for VirtualBox in PHP
      License:       GPL-2

*  app-emulation/virtualbox
      Latest version available: 4.2.24
      Latest version installed: 4.2.24
      Size of files: 75,265 kB
      Homepage:      http://www.virtualbox.org/
      Description:   Family of powerful x86 virtualization products for enterprise as well as home use
      License:       GPL-2

*  app-emulation/virtualbox-additions
      Latest version available: 4.2.24
      Latest version installed: 4.2.24
      Size of files: 58,360 kB
      Homepage:      http://www.virtualbox.org/
      Description:   CD image containing guest additions for VirtualBox
      License:       GPL-2+ LGPL-2.1+ MIT SGI-B-2.0 CDDL

*  app-emulation/virtualbox-bin [ Masked ]
      Latest version available: 4.3.12.93733
      Latest version installed: [ Not Installed ]
      Size of files: 99,675 kB
      Homepage:      http://www.virtualbox.org/
      Description:   Family of powerful x86 virtualization products for enterprise as well as home use
      License:       GPL-2 PUEL

*  app-emulation/virtualbox-extpack-oracle
      Latest version available: 4.2.24
      Latest version installed: 4.2.24
      Size of files: 12,114 kB
      Homepage:      http://www.virtualbox.org/
      Description:   PUEL extensions for VirtualBox
      License:       PUEL

*  app-emulation/virtualbox-guest-additions
      Latest version available: 4.2.24
      Latest version installed: [ Not Installed ]
      Size of files: 75,261 kB
      Homepage:      http://www.virtualbox.org/
      Description:   VirtualBox kernel modules and user-space tools for Gentoo guests
      License:       GPL-2

*  app-emulation/virtualbox-modules
      Latest version available: 4.2.24
      Latest version installed: 4.2.24
      Size of files: 482 kB
      Homepage:      http://www.virtualbox.org/
      Description:   Kernel Modules for Virtualbox
      License:       GPL-2

*  x11-drivers/xf86-video-virtualbox
      Latest version available: 4.2.24
      Latest version installed: [ Not Installed ]
      Size of files: 75,261 kB
      Homepage:      http://www.virtualbox.org/
      Description:   VirtualBox video driver
      License:       GPL-2


emerge --info
Portage 2.2.8-r1 (hardened/linux/amd64, gcc-4.7.3, glibc-2.17, 3.13.10-hardened x86_64)
=================================================================
System uname: Linux-3.13.10-hardened-x86_64-Intel-R-_Core-TM-_i5-3210M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     8034908 total,   2301756 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of tree: Mon, 09 Jun 2014 03:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.cz.gentoo.org/gentoo-portage"
USE="X acl additions alsa amd64 berkdb bindist bzip2 cdr cli consolekit cracklib crypt cryptsetup cxx dbus dri dvd extensions gdbm gtkspell hardened iconv ipv6 justify kde lua lvm mmx modules multilib ncurses nls nptl opengl openmp pam pax_kernel pcre policykit qt3support qt4 readline session spell sse sse2 ssl tcpd truetype udev udisks unicode urandom xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

grepping for Virtual returns only:

grep Virtual dmesg
[    1.026138] Bluetooth: Virtual HCI driver ver 1.4

Reproducible: Always
Comment 1 Alex Xu (Hello71) 2014-06-15 13:00:17 UTC
Please DO not RANDOMLY capitalize WORDS, THANK you.

as a first step, please try using a currently-supported gentoo-sources, preferably the latest stable.

if that does not work, please attach the output of dmesg (if unavailable, try ssh or /var/log/messages) and /var/log/Xorg.0.log (if unavailable, try Xorg.0.log.old).
Comment 2 Alex Xu (Hello71) 2014-06-15 13:00:59 UTC
this is almost certainly not a KDE bug.
Comment 3 EncryptedPhreak 2014-06-15 14:07:44 UTC
(In reply to Alex Xu (Hello71) from comment #2)
> this is almost certainly not a KDE bug.

Alex,

I GET (non-random) your capitalization point.  As can be seen above, I use hardened-sources, which afaik, is currently supported.  I never claimed this is a KDE bug.  I only filed it this way because I have never seen another app return me to the KDE <user> login screen...and I think the KDE devs should be aware of this, despite not (potentially) being involved.

In fact, in every other instance, KDE works well for me using Gentoo Hardened.
Comment 4 Alex Xu (Hello71) 2014-06-15 14:09:57 UTC
my apologies for the kernel misidentification.

please try upgrading to the latest hardened-sources kernel or if that is not feasible, attach the requested logs.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-06-15 14:10:31 UTC
/var/log/X*.log.old should tell you why and how X crashed. If not, then dmesg would probably give a clue.
Comment 6 EncryptedPhreak 2014-06-15 15:20:59 UTC
Created attachment 378946 [details]
Xorg.0.log.old
Comment 7 EncryptedPhreak 2014-06-15 15:36:45 UTC
grepping around only shows:

grep Virtual Xorg.0.log.old
[   145.691] (--) NOUVEAU(G0): Virtual size is 1024x768 (pitch 0)
grep Virtual Xorg.0.log
[    79.686] (--) NOUVEAU(G0): Virtual size is 1024x768 (pitch 0)
grep virtual Xorg.0.log.old 
grep Virtual dmesg 
[    1.026138] Bluetooth: Virtual HCI driver ver 1.4

I cannot attach /var/log/dmesg here (perhaps too large)?

If you need me to search elsewhere, or for different terms, just let me know.

Thanks
Comment 8 Alex Xu (Hello71) 2014-06-15 16:07:59 UTC
/me defers to jer
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2014-06-16 20:44:50 UTC
(In reply to EncryptedPhreak from comment #7)
> I cannot attach /var/log/dmesg here (perhaps too large)?

Usually because of insufficient permissions and because web browsers fail to tell you that in advance. For example, on a randomly chosen system here, it's marked 0640 and owned by root:root. Please make a copy as root and try to attach it again.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2014-06-16 20:45:58 UTC
Comment on attachment 378946 [details]
Xorg.0.log.old

All that output suggests that the X server crashed without even getting to write anything about it. I.e. very little.
Comment 11 EncryptedPhreak 2014-06-17 05:52:56 UTC
Created attachment 379102 [details]
Latest dmesg
Comment 12 EncryptedPhreak 2014-06-17 05:57:59 UTC
Created attachment 379104 [details]
lsmod output prior to running VBox
Comment 13 EncryptedPhreak 2014-06-17 06:00:00 UTC
Created attachment 379106 [details]
Xorg.0.log.old
Comment 14 EncryptedPhreak 2014-06-17 06:01:41 UTC
Created attachment 379108 [details]
Latest Xorg.0.log
Comment 15 EncryptedPhreak 2014-06-17 06:07:12 UTC
Hi Jeroen,

Thank you for explaining the dmesg attachment issue.

Knowing that launching an OS from within VirtualBox would crash my X, I intentionally did so, and then rebooted.

Hopefully, either the attached dmesg or the Xorg.0.log files have captured the error, and will provide the needed clue(s).

I have also attached the output of lsmod just prior to attempting to run VBox.

Of course, if you need me look elsewhere, just let me know.
Comment 16 Ben Kohler gentoo-dev 2017-08-31 18:22:49 UTC
Please reopen if this is still a problem on current versions