libvirt: xen: Use of vfb in HVM definitions causes xenbus errors

Bug #973529 reported by Stefan Bader
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Fix Released
Low
Stefan Bader

Bug Description

When libvirt talks to xend to create or modify an HVM instance, it will use a vfb section to define graphics (for xend versions >= 4). However this is wrong and doing so will also create a vkbd device which is causing the following error messages in the domU:

[ 126.544061] 180s...175s...170s...165s...160s...155s...150s...145s...140s...135s...130s...125s...120s...115s...110s...105s...100s...95s...90s...85s...80s...75s...70s...65s...60s...55s...50s...45s...40s...35s...30s...25s...20s...15s...10s...5s...0s...
XENBUS: Timeout connecting to device: device/vkbd/0 (local state 3, remote state 1)

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libvirt0 (not installed)
ProcVersionSignature: Ubuntu 3.2.0-20.33-generic 3.2.12
Uname: Linux 3.2.0-20-generic x86_64
ApportVersion: 1.95-0ubuntu1
Architecture: amd64
Date: Wed Apr 4 18:11:03 2012
ProcEnviron:
 LANGUAGE=en_US:
 TERM=xterm
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: libvirt
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Stefan Bader (smb) wrote :

The following changes will prevent the vkbd device from being created (or it will be removed when updating the instance configuration). Right now, waiting on some upstream feedback. Depending on that outcome, I would proceed and try to submit this upstream.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Hi Stefan,

to be clear, would you like this to be rolled into our package while you try to get it upstream? Or should that also await feedback?

Revision history for this message
Stefan Bader (smb) wrote :

On on hand some upstream feedback would be nice, even for the Ubuntu package. On the other side this only affects creation and modification of HVM instances via libvirt. Which I was able to verify and it is working. So missing feedback should not prevent us from using / applying it. The main worry would be whether this change works / is correct with newer versions of Xen as well (which is not really an issue for the Precise package).
So I think it should be safe to upload the package. It is not install critical and could be done with the updates. But then there are those that won't pull in any of those and still complain if things don't work. The effect is not critical either. Just about a 5 minute delay until the xenbus startup fails. And when shutting down during that time, there is additional errors. So I just think, if we can do better, why not.

Revision history for this message
Stefan Bader (smb) wrote :

To be more clear: yes...

Revision history for this message
Stefan Bader (smb) wrote :

Hm hold back, just saw a reply to my question and it sounds like from the Xen side the preferred way may be to change the kernel in a way that avoids the delays.

Revision history for this message
Stefan Bader (smb) wrote :

Ok, it seems I just was too confusing when I tried to explain the problem.

"So the argument is that ATM libvirt uses a vfb config line with HVM guests and that is wrong. I agree with you there, the vfb config line is for PV guests only and should be removed from any HVM guests configurations."

I will work on an upstreamable version of that, but we can go ahead and roll the attached change into our package. (upstream code changed code wise, so the patch won't apply there).

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

This bug was fixed in the package libvirt - 0.9.8-2ubuntu16

---------------
libvirt (0.9.8-2ubuntu16) precise; urgency=low

  [ Serge Hallyn ]
  * Apply patches from Josh Durgin <email address hidden> to make
    attaching rbd volumes and taking snapshots of them work.
    - ubuntu/9022-qemu-unescape-HMP-commands-before-converting-them-to.patch
    - ubuntu/9023-qemu-change-rbd-auth_supported-separation-character-.patch
    - ubuntu/9024-qemu-allow-snapshotting-of-sheepdog-and-rbd-disks.patch
    - ubuntu/9025-qemu-change-rbd-auth_supported-separation-character-.patch

  [ Stefan Bader ]
  * Do not use vfb sections in HVM graphics definitions (side-
    effect will create a vkbd device as well which causes error
    messages in the HVM guest). (LP: #973529)
 -- Serge Hallyn <email address hidden> Thu, 05 Apr 2012 11:43:15 -0500

Changed in libvirt (Ubuntu):
status: In Progress → 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.