This forum has been archived. All content is frozen. Please use KDE Discuss instead.

black screen with blinking cursor in qemu VM

Tags: None
(comma "," separated)
mwohli
Registered Member
Posts
5
Karma
0
Hello nice people ;D

Trying to get kde build from source in a QEMU VM (using gnome-boxes or virt-manager).
VM works fine before I installed kdesrc-build stuff.

After installing the dependencies https://community.kde.org/Guidelines_an ... pendencies
and running kdesrc-build as none root user (with install location ~/kde) and a reboot, the VM no longer starts into a GUI and stops at a blank screen with a blinking _ cursor.
I can still access the lower virtual consoles.

This happend in the developer edition and with the user edition of KDE-neon.

I cannot see any errors in the systemd journal or dmesg, /var/log/sddm.log, /var/log/Xorg.0.log.
If I sudo startx the desktop starts, but no inputs are possible (system seems to hang completely).

I appreciate any ideas how to find any error information or how to solve this.
Thank You! :)


PS: trying to test a potential fix for this bug Bug #372555 (for libinput), without affecting the running system.
NoNameNoBlame
Karma
0
Step-by-Step Testing:

1)
Boot into non-graphical mode (No 'sddm'):

Kernel-option in GrubEntry's 'linux'-line:

systemd.unit=multi-user.target

2)
X Window System still working? Test:

xinit /usr/bin/xterm -- /usr/lib/xorg/Xorg

3)
If YES, then start one of Your newly compiled KDE-executables
manually from xterm's command line, and examine the result.
mwohli
Registered Member
Posts
5
Karma
0
Thx for the response :)

If I run the xinit as user I get:
Code: Select all
Fatal server error:
(EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)


If I run it with sudo, the xterm shows up, but there are also no inputs possible (system seems to hang completely).

Xorg.0.log:
Code: Select all
[    77.288] X Protocol Version 11, Revision 0
[    77.289] Build Operating System: Linux 4.4.0-45-generic x86_64 Ubuntu
[    77.289] Current Operating System: Linux martin-neon-vm 4.8.0-41-generic #44~16.04.1-Ubuntu SMP Fri Mar 3 17:11:16 UTC 2017 x86_64
[    77.289] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.8.0-41-generic root=UUID=c9d5c3a2-e9ee-48fe-93a3-a15de89ed161 ro quiet splash systemd.unit=multi-user.target
[    77.290] Build Date: 02 November 2016  10:06:10PM
[    77.290] xorg-server 2:1.18.4-0ubuntu0.2 (For technical support please see http://www.ubuntu.com/support)
[    77.290] Current version of pixman: 0.33.6
[    77.291]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[    77.291] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    77.292] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Mar 14 10:35:10 2017
[    77.293] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    77.294] (==) No Layout section.  Using the first Screen section.
[    77.294] (==) No screen section available. Using defaults.
[    77.294] (**) |-->Screen "Default Screen Section" (0)
[    77.294] (**) |   |-->Monitor "<default monitor>"
[    77.294] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[    77.294] (==) Automatically adding devices
[    77.294] (==) Automatically enabling devices
[    77.294] (==) Automatically adding GPU devices
[    77.295] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    77.306] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    77.306]    Entry deleted from font path.
[    77.306] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    77.306]    Entry deleted from font path.
[    77.306] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    77.306]    Entry deleted from font path.
[    77.306] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    77.306]    Entry deleted from font path.
[    77.306] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    77.306]    Entry deleted from font path.
[    77.306] (==) FontPath set to:
   /usr/share/fonts/X11/misc,
   /usr/share/fonts/X11/Type1,
   built-ins
[    77.306] (==) ModulePath set to "/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[    77.306] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[    77.306] (II) Loader magic: 0x55da5d58bdc0
[    77.306] (II) Module ABI versions:
[    77.306]    X.Org ANSI C Emulation: 0.4
[    77.306]    X.Org Video Driver: 20.0
[    77.306]    X.Org XInput driver : 22.1
[    77.306]    X.Org Server Extension : 9.0
[    77.307] (--) using VT number 2

[    77.307] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    77.308] (II) xfree86: Adding drm device (/dev/dri/card0)
[    77.314] (--) PCI:*(0:0:2:0) 1b36:0100:1af4:1100 rev 4, Mem @ 0xf4000000/67108864, 0xf8000000/67108864, 0xfc050000/8192, I/O @ 0x0000c640/32, BIOS @ 0x????????/131072
[    77.314] (II) LoadModule: "glx"
[    77.319] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    77.327] (II) Module glx: vendor="X.Org Foundation"
[    77.327]    compiled for 1.18.4, module version = 1.0.0
[    77.327]    ABI class: X.Org Server Extension, version 9.0
[    77.327] (==) AIGLX enabled
[    77.327] (==) Matched qxl as autoconfigured driver 0
[    77.327] (==) Matched qxl as autoconfigured driver 1
[    77.327] (==) Matched modesetting as autoconfigured driver 2
[    77.327] (==) Matched fbdev as autoconfigured driver 3
[    77.327] (==) Matched vesa as autoconfigured driver 4
[    77.327] (==) Assigned the driver to the xf86ConfigLayout
[    77.327] (II) LoadModule: "qxl"
[    77.328] (WW) Warning, couldn't open module qxl
[    77.328] (II) UnloadModule: "qxl"
[    77.328] (II) Unloading qxl
[    77.328] (EE) Failed to load module "qxl" (module does not exist, 0)
[    77.328] (II) LoadModule: "modesetting"
[    77.328] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    77.328] (II) Module modesetting: vendor="X.Org Foundation"
[    77.328]    compiled for 1.18.4, module version = 1.18.4
[    77.328]    Module class: X.Org Video Driver
[    77.328]    ABI class: X.Org Video Driver, version 20.0
[    77.328] (II) LoadModule: "fbdev"
[    77.329] (WW) Warning, couldn't open module fbdev
[    77.329] (II) UnloadModule: "fbdev"
[    77.329] (II) Unloading fbdev
[    77.329] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    77.329] (II) LoadModule: "vesa"
[    77.329] (WW) Warning, couldn't open module vesa
[    77.329] (II) UnloadModule: "vesa"
[    77.329] (II) Unloading vesa
[    77.329] (EE) Failed to load module "vesa" (module does not exist, 0)
[    77.329] (==) Matched qxl as autoconfigured driver 0
[    77.329] (==) Matched qxl as autoconfigured driver 1
[    77.329] (==) Matched modesetting as autoconfigured driver 2
[    77.329] (==) Matched fbdev as autoconfigured driver 3
[    77.329] (==) Matched vesa as autoconfigured driver 4
[    77.329] (==) Assigned the driver to the xf86ConfigLayout
[    77.329] (II) LoadModule: "qxl"
[    77.329] (WW) Warning, couldn't open module qxl
[    77.329] (II) UnloadModule: "qxl"
[    77.329] (II) Unloading qxl
[    77.329] (EE) Failed to load module "qxl" (module does not exist, 0)
[    77.329] (II) LoadModule: "modesetting"
[    77.329] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    77.329] (II) Module modesetting: vendor="X.Org Foundation"
[    77.329]    compiled for 1.18.4, module version = 1.18.4
[    77.329]    Module class: X.Org Video Driver
[    77.329]    ABI class: X.Org Video Driver, version 20.0
[    77.329] (II) UnloadModule: "modesetting"
[    77.329] (II) Unloading modesetting
[    77.329] (II) Failed to load module "modesetting" (already loaded, 0)
[    77.329] (II) LoadModule: "fbdev"
[    77.329] (WW) Warning, couldn't open module fbdev
[    77.329] (II) UnloadModule: "fbdev"
[    77.329] (II) Unloading fbdev
[    77.329] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    77.329] (II) LoadModule: "vesa"
[    77.329] (WW) Warning, couldn't open module vesa
[    77.329] (II) UnloadModule: "vesa"
[    77.329] (II) Unloading vesa
[    77.329] (EE) Failed to load module "vesa" (module does not exist, 0)
[    77.329] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    77.331] (II) modeset(0): using drv /dev/dri/card0
[    77.331] (WW) Falling back to old probe method for modesetting
[    77.331] (II) modeset(0): Creating default Display subsection in Screen section
   "Default Screen Section" for depth/fbbpp 24/32
[    77.331] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[    77.331] (==) modeset(0): RGB weight 888
[    77.331] (==) modeset(0): Default visual is TrueColor
[    77.331] (II) Loading sub module "glamoregl"
[    77.331] (II) LoadModule: "glamoregl"
[    77.331] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    77.377] (II) Module glamoregl: vendor="X.Org Foundation"
[    77.377]    compiled for 1.18.4, module version = 1.0.0
[    77.377]    ABI class: X.Org ANSI C Emulation, version 0.4
[    77.377] (II) glamor: OpenGL accelerated X.org driver based.
[    77.572] (II) glamor: EGL version 1.4 (DRI2):
[    77.572] EGL_MESA_drm_image required.
[    77.573] (EE) modeset(0): glamor initialization failed
[    77.573] (II) modeset(0): ShadowFB: preferred NO, enabled NO
[    77.573] (II) modeset(0): Output Virtual-1 has no monitor section
[    77.573] (II) modeset(0): Output Virtual-2 has no monitor section
[    77.573] (II) modeset(0): Output Virtual-3 has no monitor section
[    77.573] (II) modeset(0): Output Virtual-4 has no monitor section
[    77.573] (II) modeset(0): EDID for output Virtual-1
[    77.573] (II) modeset(0): Printing probed modes for output Virtual-1
[    77.573] (II) modeset(0): Modeline "1024x768"x59.9   63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync (47.8 kHz P)
[    77.573] (II) modeset(0): Modeline "1920x1200"x59.9  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync (74.6 kHz)
[    77.573] (II) modeset(0): Modeline "1920x1080"x60.0  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync (67.2 kHz)
[    77.573] (II) modeset(0): Modeline "1600x1200"x59.9  161.00  1600 1712 1880 2160  1200 1203 1207 1245 -hsync +vsync (74.5 kHz)
[    77.573] (II) modeset(0): Modeline "1680x1050"x60.0  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz)
[    77.573] (II) modeset(0): Modeline "1400x1050"x60.0  121.75  1400 1488 1632 1864  1050 1053 1057 1089 -hsync +vsync (65.3 kHz)
[    77.573] (II) modeset(0): Modeline "1280x1024"x59.9  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync (63.7 kHz)
[    77.573] (II) modeset(0): Modeline "1440x900"x59.9  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync (55.9 kHz)
[    77.573] (II) modeset(0): Modeline "1280x960"x59.9  101.25  1280 1360 1488 1696  960 963 967 996 -hsync +vsync (59.7 kHz)
[    77.573] (II) modeset(0): Modeline "1280x854"x59.9   89.25  1280 1352 1480 1680  854 857 867 887 -hsync +vsync (53.1 kHz)
[    77.573] (II) modeset(0): Modeline "1280x800"x59.8   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync (49.7 kHz)
[    77.573] (II) modeset(0): Modeline "1280x720"x59.9   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync (44.8 kHz)
[    77.573] (II) modeset(0): Modeline "1152x768"x59.8   71.75  1152 1216 1328 1504  768 771 781 798 -hsync +vsync (47.7 kHz)
[    77.573] (II) modeset(0): Modeline "800x600"x59.9   38.25  800 832 912 1024  600 603 607 624 -hsync +vsync (37.4 kHz)
[    77.573] (II) modeset(0): Modeline "848x480"x59.7   31.50  848 872 952 1056  480 483 493 500 -hsync +vsync (29.8 kHz)
[    77.573] (II) modeset(0): Modeline "720x480"x59.7   26.75  720 744 808 896  480 483 493 500 -hsync +vsync (29.9 kHz)
[    77.574] (II) modeset(0): Modeline "640x480"x59.4   23.75  640 664 720 800  480 483 487 500 -hsync +vsync (29.7 kHz)
[    77.574] (II) modeset(0): EDID for output Virtual-2
[    77.574] (II) modeset(0): EDID for output Virtual-3
[    77.574] (II) modeset(0): EDID for output Virtual-4
[    77.574] (II) modeset(0): Output Virtual-1 connected
[    77.574] (II) modeset(0): Output Virtual-2 disconnected
[    77.574] (II) modeset(0): Output Virtual-3 disconnected
[    77.574] (II) modeset(0): Output Virtual-4 disconnected
[    77.574] (II) modeset(0): Using exact sizes for initial modes
[    77.574] (II) modeset(0): Output Virtual-1 using initial mode 1024x768 +0+0
[    77.574] (II) modeset(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[    77.574] (==) modeset(0): DPI set to (96, 96)
[    77.574] (II) Loading sub module "fb"
[    77.574] (II) LoadModule: "fb"
[    77.574] (II) Loading /usr/lib/xorg/modules/libfb.so
[    77.575] (II) Module fb: vendor="X.Org Foundation"
[    77.575]    compiled for 1.18.4, module version = 1.0.0
[    77.575]    ABI class: X.Org ANSI C Emulation, version 0.4
[    77.575] (==) Depth 24 pixmap format is 32 bpp
[    77.578] (==) modeset(0): Backing store enabled
[    77.578] (==) modeset(0): Silken mouse enabled
[    77.579] (II) modeset(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[    77.579] (==) modeset(0): DPMS enabled
[    77.588] (--) RandR disabled
[    77.594] (II) SELinux: Disabled on system
[    77.596] (II) AIGLX: Screen 0 is not DRI2 capable
[    77.596] (EE) AIGLX: reverting to software rendering
[    77.643] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[    77.644] (II) AIGLX: Loaded and initialized swrast
[    77.646] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    77.655] (II) modeset(0): Damage tracking initialized
[    77.655] (II) modeset(0): Setting screen physical size to 270 x 203
[    77.735] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[    77.736] (II) No input driver specified, ignoring this device.
[    77.736] (II) This device may have been added with another device file.
[    77.736] (II) config/udev: Adding input device QEMU QEMU USB Tablet (/dev/input/event4)
[    77.736] (II) No input driver specified, ignoring this device.
[    77.736] (II) This device may have been added with another device file.
[    77.736] (II) config/udev: Adding input device QEMU QEMU USB Tablet (/dev/input/js0)
[    77.736] (II) No input driver specified, ignoring this device.
[    77.736] (II) This device may have been added with another device file.
[    77.736] (II) config/udev: Adding input device QEMU QEMU USB Tablet (/dev/input/mouse2)
[    77.736] (II) No input driver specified, ignoring this device.
[    77.736] (II) This device may have been added with another device file.
[    77.737] (II) config/udev: Adding input device QEMU QEMU USB Mouse (/dev/input/event5)
[    77.737] (II) No input driver specified, ignoring this device.
[    77.737] (II) This device may have been added with another device file.
[    77.737] (II) config/udev: Adding input device QEMU QEMU USB Mouse (/dev/input/mouse3)
[    77.737] (II) No input driver specified, ignoring this device.
[    77.737] (II) This device may have been added with another device file.
[    77.737] (II) config/udev: Adding input device QEMU QEMU USB Keyboard (/dev/input/event6)
[    77.737] (II) No input driver specified, ignoring this device.
[    77.737] (II) This device may have been added with another device file.
[    77.737] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event1)
[    77.737] (II) No input driver specified, ignoring this device.
[    77.737] (II) This device may have been added with another device file.
[    77.737] (II) config/udev: Adding input device VirtualPS/2 VMware VMMouse (/dev/input/event3)
[    77.737] (II) No input driver specified, ignoring this device.
[    77.737] (II) This device may have been added with another device file.
[    77.738] (II) config/udev: Adding input device VirtualPS/2 VMware VMMouse (/dev/input/mouse1)
[    77.738] (II) No input driver specified, ignoring this device.
[    77.738] (II) This device may have been added with another device file.
[    77.738] (II) config/udev: Adding input device VirtualPS/2 VMware VMMouse (/dev/input/event2)
[    77.738] (II) No input driver specified, ignoring this device.
[    77.738] (II) This device may have been added with another device file.
[    77.738] (II) config/udev: Adding input device VirtualPS/2 VMware VMMouse (/dev/input/mouse0)
[    77.738] (II) No input driver specified, ignoring this device.
[    77.738] (II) This device may have been added with another device file.
[   117.302] (II) Server terminated successfully (0). Closing log file.


Edit: I enabled the serial console and can still access the system via the text console after X is started. So the system does not hang, but X seems to capture all inputs (including CTRL+ALT+F1) but not doing anything with them.
NoNameNoBlame
Karma
0
If You have a visible and movable mouse-cursor,
then You have to position it within the xterm window.

Only then the command line will take keyboard input.


Or dont't You have any mouse at all?
mwohli
Registered Member
Posts
5
Karma
0
no cursor and not even e.g. CTRL+ALT+F1 working
NoNameNoBlame
Karma
0
Before starting 'X', try

Test Your mouse under pure Linux (Move mouse, end with Control-c):
$ sudo cat /dev/input/mouse0
[sudo] password for su0:
(�8��8��8��8��8��8��((�(�(�(�(�( ▒▒�▒�▒▒▒�▒�▒�▒�▒�▒�▒�^C

Also, try /dev/input/mice.

Normally, X detects Linux-mouse automatically.

Maybe, You have some Guest-OS extensions installed.
Maybe, they have to be started manually.

Sometimes called 'mouse/keyboard integration'

For example, with Virtual Box You would have:
VBoxClient
VBoxService

or similar.

Or, with Qemu, you have to choose a driver using command-line option.

Or, within a graphical mouse-settings interface of Your VirtualMachine Manager.

Check keyboard, likewise.
mwohli
Registered Member
Posts
5
Karma
0
well ... no, not getting anything from the mouse this way, but I don't know if the mouse input is passed in to the VM before X is running (keyboard works before that). The spice-vdagentd is running.

I guess I'll try to install the build dependencies one by one, and see if I can find the package that breaks it.

Thanks for your help.


Edit: problem occurs after installing xserver-xorg-dev package from the list here (suprise, suprise :D).
I will update this post when I have time to investigate further, but would appreciate infos, if this is a known issue.
mwohli
Registered Member
Posts
5
Karma
0
The problem was that I installed xserver-xorg-dev which removes a bunch of stuff because it is in conflict with the enablement stack that is installed by default.

The correct package to install in this case is:
Code: Select all
sudo apt-get install xserver-xorg-dev-hwe-16.04


I did not try to resurrect the broken system however, but started from an older snapshot.
(additional steps would probably be required to fix this in a system that has been broken by installing the wrong package)

Thanks for the help.
Marking this as solved and will try to update the wiki page somehow to mention this problem.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]