[SOLVED] QEMU/KVM - X11 won't start - Ubuntu 18.04 both host and guest
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
At which point, the GDM tries to start in a fast loop until it finally gives up, then (after about 2 minutes) I can Alt-2 -> Alt 6 and login command line. Exact same command line, I can end with -boot once=d and it will boot from the CD image, and I have no problems with X11. I can find no configuration differences between the running cd image and the no-X installed image (I've done recursive diffs on /etc/X11 and /usr/share/X11). startx also does not work.
cd-Xorg.0.log:[ 53.550] (EE) open /dev/dri/card0: No such file or directory
cd-Xorg.0.log:[ 53.550] (EE) open /dev/dri/card0: No such file or directory
cd-Xorg.0.log:[ 53.551] (EE) open /dev/fb0: No such file or directory
cd-Xorg.0.log:[ 53.552] (EE) open /dev/fb0: No such file or directory
cd-Xorg.0.log:[ 53.553] (EE) Screen 0 deleted because of no matching config section.
cd-Xorg.0.log:[ 53.553] (EE) Screen 0 deleted because of no matching config section.
and, EE from the failed one...
fail-Xorg.0.log:[ 88.340] (EE) open /dev/dri/card0: No such file or directory
fail-Xorg.0.log:[ 88.340] (EE) open /dev/dri/card0: No such file or directory
fail-Xorg.0.log:[ 88.341] (EE) Screen 0 deleted because of no matching config section.
fail-Xorg.0.log:[ 88.342] (EE) FBDEV(0): FBIOPUT_VSCREENINFO succeeded but modified mode
fail-Xorg.0.log:[ 88.342] (EE) FBDEV(0): mode initialization failed
fail-Xorg.0.log:[ 88.342] (EE)
fail-Xorg.0.log:[ 88.342] (EE) AddScreen/ScreenInit failed for driver 0
fail-Xorg.0.log:[ 88.342] (EE)
fail-Xorg.0.log:[ 88.342] (EE)
fail-Xorg.0.log:[ 88.342] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
fail-Xorg.0.log:[ 88.342] (EE)
fail-Xorg.0.log:[ 88.345] (EE) Server terminated with error (1). Closing log file.
The boot of the cdrom image does NOT have a /dev/fb0, but the installed boot does. Does the failure to find an fb0 lead to the cdrom to try the vbe module that ends up working? I don't think deleting the /dev/fb0 will work, but I think I'll try that next.
Disappointingly, deleting /dev/fb0 actually works, but the boot sequence recreates it, which is quite inconvenient.
So, boot.
Alt-F2 several times, until it shows up, but is blinking while GDM/gdm3 tries to initialize over and over again.
Wait about 2 minutes until the blinking stops (and GDM is simply given up).
Login text mode on VT2
$ sudo rm /dev/fb0
$ sudo systemctl restart gdm
GUI screen shows up.
----
This is a resolution, but... not a very satisfactory one.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.