x not starting in kvm with std vga

Bug #338219 reported by KBios
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xorg-server (Ubuntu)
Fix Released
Medium
KBios

Bug Description

This happens with kubuntu jaunty desktop cd, at least with kvm-83 and kvm-84. If kvm is started with the "-vga std" parameter (which is needed for better graphics), xorg doesn't start. In /etc/X11/xorg.conf the Driver line is incorrectly set to "cirrus". Setting it to "vesa" solves the problem. This bug prevents a casual user from using kvm at all. I'm assigning this bug to xserver-xorg since the 20xconfig script in casper-bottom calls "casper-reconfigure /root xserver-xorg"

Revision history for this message
KBios (kbios) wrote :

Here is my xorg.0.log

Revision history for this message
KBios (kbios) wrote :

Update: another solution is simply to delete xorg.conf, but you'll get only 800x600.

Revision history for this message
Bryce Harrington (bryce) wrote :

probably an incorrect pci id. You need to attach lspci -vvnn output for these kinds of bugs. Make sure you read http://wiki.ubuntu.com/X/Reporting to learn how to report X bugs properly. Also see http://wiki.ubuntu.com/X/Troubleshooting.

[ 0.354226] (--) PCI:*(0@0:2:0) Technical Corp. unknown chipset (0x1111) rev 0, Mem @ 0xe0000000/16777216

Revision history for this message
KBios (kbios) wrote :

Ups, sorry for that.
Here is the result of lspci -vvnn.
Also, when kvm is started this way, usplash doesn't work. May it be related to this bug?
Thanks

Revision history for this message
KBios (kbios) wrote :

Today I tried qemu 0.10.1 (which has kvm support), as the changelog reported "kvm vga: fix screen corruption with Ubuntu installations (Glauber Costa)". However, it has exactly the same problems as kvm userspace. I tried running lspci and the result is the same as in my previous post.

Bryce Harrington (bryce)
Changed in xorg-server (Ubuntu):
status: New → Confirmed
Revision history for this message
KBios (kbios) wrote :

After diving deeply into X manainer scripts and other stuff, I found the problem. The livecd uses /usr/bin/dexconf to generate xorg.conf. If you look at line 191, you'll see

QEMU_KVM=$(grep "QEMU Virtual CPU" /proc/cpuinfo || true)
if [ -n "$QEMU_KVM" ]; then
    DEVICE_DRIVER="cirrus"
fi

So the script blindly uses the cirrus driver if it is started under qemu/kvm. I think it is not so difficult to fix it, and will post a patch if I can write one.

Revision history for this message
KBios (kbios) wrote :

Ok, here's my patch. It is as simple as possible, and may not be the best possible solution.

Revision history for this message
KBios (kbios) wrote :

Patch written

Changed in xorg-server:
assignee: nobody → kbios
Bryce Harrington (bryce)
affects: xorg-server (Ubuntu) → xorg (Ubuntu)
Changed in xorg (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks, looks good. Uploaded.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xorg - 1:7.4~5ubuntu18

---------------
xorg (1:7.4~5ubuntu18) jaunty; urgency=low

  * local/dexconf: Don't use cirrus on kvm (Technical Corp. Device 1111)
    (LP: #338219)

 -- Bryce Harrington <email address hidden> Fri, 03 Apr 2009 00:35:49 -0700

Changed in xorg (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
pakraticus (pakraticus) wrote :

Hi,
I'm seeing this breakage with xserver-xorg 1:7.4~5ubuntu18
I'm not seeing this breakage with xserver-xorg 1:7.4~ubuntu16

Attached is the lspci output from the VM with ubuntu 9.04 beta installed.

Revision history for this message
Bryce Harrington (bryce) wrote :

Reopening bug; this fix needs redone now that we're no longer using dexconf to generate default xorg.conf's. It needs reimplemented into the xserver itself.

Changed in xorg (Ubuntu):
status: Fix Released → Triaged
Revision history for this message
Bryce Harrington (bryce) wrote :

This bug was fixed in the package xorg-server - 2:1.6.3-1ubuntu4

---------------
xorg-server (2:1.6.3-1ubuntu4) karmic; urgency=low

  * Add 184_virtual_devices_autodetect.patch: Automatic driver detection
    for vbox and kvm for non-cirrus devices.
    (LP: #338219, #348497)

 -- Bryce Harrington <email address hidden> Mon, 24 Aug 2009 14:58:22 -0700

affects: xorg (Ubuntu) → xorg-server (Ubuntu)
Changed in xorg-server (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.