LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This 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


Reply
  Search this Thread
Old 07-11-2019, 10:50 PM   #1
GAVollink
Member
 
Registered: Apr 2002
Location: Bronx, NY
Distribution: Ubuntu
Posts: 371

Rep: Reputation: 34
QEMU/KVM - X11 won't start - Ubuntu 18.04 both host and guest


Guest X11 will start fine when running live-boot, but will not start from installed image.

I'm running Ubuntu 18.04.2 with QEMU 2.11.1 (the Ubuntu package).
I'm trying to run a virtualized Ubuntu 18.04.2 with the following command line:

Code:
qemu-system-x86_64 -drive file=/Groups/Virtual_Machines/java-desktop.img,index=0,format=raw -cdrom /Groups/Virtual_Machines/OS-ISO/ubuntu-18.04.2-desktop-amd64.iso -name JavaDev-VM -enable-kvm -smp 4 -m 8G -monitor stdio -k en-us -boot c
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.
 
Old 07-11-2019, 11:36 PM   #2
GAVollink
Member
 
Registered: Apr 2002
Location: Bronx, NY
Distribution: Ubuntu
Posts: 371

Original Poster
Rep: Reputation: 34
The working, cdboot seems to be enabling a module called vbe

(II) Loading /usr/lib/xorg/modules/libvbe.so

The non-working, does not get that far. Both fail trying to use "fbdev", but only the cdrom run then loads VBE and tries that instead.

It feels like the X11.0.log files are too large to share here.

-rw-r--r-- 1 gvollink gvollink 142126 Jul 12 00:27 cd-Xorg.0.log
-rw-r--r-- 1 gvollink gvollink 7933 Jul 12 00:26 fail-Xorg.0.log

But, EE from the working one...

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.
 
Old 07-11-2019, 11:46 PM   #3
GAVollink
Member
 
Registered: Apr 2002
Location: Bronx, NY
Distribution: Ubuntu
Posts: 371

Original Poster
Rep: Reputation: 34
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.
 
Old 07-12-2019, 12:52 AM   #4
GAVollink
Member
 
Registered: Apr 2002
Location: Bronx, NY
Distribution: Ubuntu
Posts: 371

Original Poster
Rep: Reputation: 34
I created a service and script to remove this on boot. Systemd style.
 
  


Reply

Tags
qemu kvm, ubuntu 18.04, x11



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel-based Virtual Machine (KVM): Switching from KVM guest to host (e.g. Linux Mint) & maximize guest screen fanoflq Linux - Newbie 2 07-13-2016 06:10 PM
[SOLVED] "No KVM, No qemu-kvm" Available error while trying to install KVM on CentOS 6.3 sriramdas Linux - Virtualization and Cloud 5 01-01-2013 10:46 AM
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 02:05 PM
LXer: Attempt of qemu-kvm-0.14 patching via Gerd’s Hoffmann “spice/qxl: locking fix for qemu-kvm” on LXer Syndicated Linux News 0 03-14-2011 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 07:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration