qemu-keymaps lacks en_us. REGRESSION: VMs do not boot out of Virtual Machine Manager any more

Bug #1157066 reported by Till Kamppeter on 2013-03-19
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Ubuntu
High
Riku Voipio
qemu (Ubuntu)
High
Unassigned
qemu-linaro (Ubuntu)
Undecided
Unassigned

Bug Description

I have updated from Quantal to Raring. Under Quantal I have set up several virtual machines using the Virtual Machine Manager and qemu/kvm. While under Quantal the machines always worked perfectly. After the update to Raring I cannot boot them any more. When I click the geen Play button to boot the selected machine I get a pop-up error message:

"Error starting domain: Unable to read from monitor: Connection reset by peer"

Clicking on "Details" gives me a Python traceback:

----------
Error starting domain: Unable to read from monitor: Connection reset by peer

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 96, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 117, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1092, in startup
    self._backend.create()
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 681, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: Unable to read from monitor: Connection reset by peer
----------

Attached is my file ~/.virt-manager/virt-manager.log

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: qemu (not installed)
ProcVersionSignature: Ubuntu 3.8.0-13.22-generic 3.8.3
Uname: Linux 3.8.0-13-generic x86_64
ApportVersion: 2.9.1-0ubuntu1
Architecture: amd64
Date: Tue Mar 19 10:01:00 2013
InstallationDate: Installed on 2012-07-27 (235 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120724.2)
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: qemu
UpgradeStatus: No upgrade log present (probably fresh install)

Till Kamppeter (till-kamppeter) wrote :
Serge Hallyn (serge-hallyn) wrote :

Thanks for reporting this bug.

Could you please attach the xml definition for one of the domains which fails to start?

Log into the server which actually hosts the VMs and do

    virsh list --all
    virsh dumpxml <vm-name>
    sudo sed -i '/log_level/d' /etc/libvirt/libvirtd.conf
    echo 'log_level = 1' | sudo tee -a /etc/libvirt/libvirtd.conf
    sudo stop libvirtd
    sudo start libvirtd
    virsh start <vm-name>

Then attach /var/log/libvirt/libvirtd.log and /var/log/libvirt/qemu/<vmname>.log as attachments to this bug.

Thanks again.

Changed in libvirt (Ubuntu):
status: New → Incomplete
Changed in qemu (Ubuntu):
status: New → Incomplete
Changed in libvirt (Ubuntu):
importance: Undecided → High
Till Kamppeter (till-kamppeter) wrote :

I have executed the commands now and attach the requested files. Note that the commands to restart the daemon were

sudo stop libvirt-bin
sudo start libvirt-bin

for me.

Till Kamppeter (till-kamppeter) wrote :
Till Kamppeter (till-kamppeter) wrote :
Till Kamppeter (till-kamppeter) wrote :
Serge Hallyn (serge-hallyn) wrote :

Thanks for that info. It looks like you don't have qemu-keymaps installed. Could you show the result of

dpkg -l | grep qemu
apt-cache show qemu-keymaps
ls -l /usr/share/qemu/keymaps

The qemu-system-x86 package depends on qemu-common which depends on qemu-keymaps, so they certainly *should* be installed.

Till Kamppeter (till-kamppeter) wrote :
Download full text (4.7 KiB)

qemu-keymaps is installed but the file is missing:

----------
till@till:~$ dpkg -l | grep qemu
ii ipxe-qemu 1.0.0+git-4.d6b0b76-0ubuntu2 all Virtual package to support use of kvm-ipxe with qemu
ii kvm 1:84+dfsg-0ubuntu16+1.2.0+noroms+0ubuntu2.12.10.3 amd64 dummy transitional package from kvm to qemu-kvm
ii qemu-keymaps 1.4.0-2013.03-0ubuntu1~linaro1 all QEMU keyboard maps
ii qemu-kvm 1.4.0+dfsg-1expubuntu4 amd64 QEMU Full virtualization on x86 hardware (transitional package)
ii qemu-system-common 1.4.0+dfsg-1expubuntu4 amd64 QEMU full system emulation binaries (common files)
ii qemu-system-x86 1.4.0+dfsg-1expubuntu4 amd64 QEMU full system emulation binaries (x86)
ii qemu-user-static 1.4.0-2013.03-0ubuntu1~linaro1 amd64 QEMU user mode emulation binaries (static version)
ii qemu-utils 1.4.0+dfsg-1expubuntu4 amd64 QEMU utilities
till@till:~$ apt-cache show qemu-keymaps
Package: qemu-keymaps
Source: qemu-linaro
Priority: optional
Section: misc
Installed-Size: 133
Maintainer: Ubuntu Developers <email address hidden>
Architecture: all
Version: 1.4.0-2013.03-0ubuntu1~linaro1
Replaces: qemu (<< 0.11.0-2), qemu-system (<< 0.12.4+dfsg-4)
Breaks: qemu (<< 0.11.0-2), qemu-system (<< 0.12.4+dfsg-4)
Filename: pool/main/q/qemu-linaro/qemu-keymaps_1.4.0-2013.03-0ubuntu1~linaro1_all.deb
Size: 27166
MD5sum: 1a87355493fa9e4506faf83b68dc19f1
SHA1: 45d640cafad89b62ceb1addf6336d4c11541998a
Description-en: QEMU keyboard maps
 QEMU is a fast processor emulator: currently the package supports
 ARM, CRIS, i386, M68k (ColdFire), MicroBlaze, MIPS, PowerPC, SH4,
 SPARC and x86-64 emulation. By using dynamic translation it achieves
 reasonable speed while being easy to port on new host CPUs.
 .
 This package provides keyboard maps to be used by the qemu-system
 package or QEMU derivatives.
Original-Maintainer: Debian QEMU Team <email address hidden>

Package: qemu-keymaps
Priority: optional
Section: misc
Installed-Size: 160
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Debian QEMU Team <email address hidden>
Architecture: all
Source: qemu
Version: 1.4.0+dfsg-1expubuntu4
Replaces: qemu-common (<< 1.2.0.dfsg-1), qemu-system (<< 0.12.4+dfsg-4)
Breaks: qemu-common (<< 1.2.0.dfsg-1), qemu-system (<< 0.12.4+dfsg-4)
Filename: pool/main/q/qemu/qemu-keymaps_1.4.0+dfsg-1expubuntu4_all.deb
Size: 23886
MD5sum: 1b9f3fb0e34e594edb35b9e06957cc71
SHA1: ef19c02f30220bb563319ef8d37fc165e96a5f55
SHA256: 6ffd875d3d5595a5fcdf30001c44609587186c8d2c49eebbe323c5ad3278663a
Description-en: QEMU keyboard maps
 QEMU is a fast processor emulator: currently the package supports
 ARM, CR...

Read more...

Till Kamppeter (till-kamppeter) wrote :

till@till:~$ dpkg -L qemu-keymaps
/.
/usr
/usr/share
/usr/share/qemu-linaro
/usr/share/qemu-linaro/qemu
/usr/share/qemu-linaro/qemu/keymaps
/usr/share/qemu-linaro/qemu/keymaps/da
/usr/share/qemu-linaro/qemu/keymaps/lt
/usr/share/qemu-linaro/qemu/keymaps/tr
/usr/share/qemu-linaro/qemu/keymaps/hr
/usr/share/qemu-linaro/qemu/keymaps/de
/usr/share/qemu-linaro/qemu/keymaps/fr-be
/usr/share/qemu-linaro/qemu/keymaps/hu
/usr/share/qemu-linaro/qemu/keymaps/nl-be
/usr/share/qemu-linaro/qemu/keymaps/nl
/usr/share/qemu-linaro/qemu/keymaps/th
/usr/share/qemu-linaro/qemu/keymaps/ja
/usr/share/qemu-linaro/qemu/keymaps/es
/usr/share/qemu-linaro/qemu/keymaps/ru
/usr/share/qemu-linaro/qemu/keymaps/en-us
/usr/share/qemu-linaro/qemu/keymaps/pt-br
/usr/share/qemu-linaro/qemu/keymaps/pl
/usr/share/qemu-linaro/qemu/keymaps/mk
/usr/share/qemu-linaro/qemu/keymaps/fr
/usr/share/qemu-linaro/qemu/keymaps/sv
/usr/share/qemu-linaro/qemu/keymaps/en-gb
/usr/share/qemu-linaro/qemu/keymaps/pt
/usr/share/qemu-linaro/qemu/keymaps/modifiers
/usr/share/qemu-linaro/qemu/keymaps/et
/usr/share/qemu-linaro/qemu/keymaps/bepo
/usr/share/qemu-linaro/qemu/keymaps/lv
/usr/share/qemu-linaro/qemu/keymaps/fi
/usr/share/qemu-linaro/qemu/keymaps/it
/usr/share/qemu-linaro/qemu/keymaps/common
/usr/share/qemu-linaro/qemu/keymaps/ar
/usr/share/qemu-linaro/qemu/keymaps/fo
/usr/share/qemu-linaro/qemu/keymaps/fr-ch
/usr/share/qemu-linaro/qemu/keymaps/fr-ca
/usr/share/qemu-linaro/qemu/keymaps/is
/usr/share/qemu-linaro/qemu/keymaps/no
/usr/share/qemu-linaro/qemu/keymaps/de-ch
/usr/share/qemu-linaro/qemu/keymaps/sl
/usr/share/doc
/usr/share/doc/qemu-keymaps
/usr/share/doc/qemu-keymaps/changelog.Debian.gz
/usr/share/doc/qemu-keymaps/copyright
till@till:~$

Serge Hallyn (serge-hallyn) wrote :

Thanks. The problem stems from having qemu-keymaps installed from the linaro ppa. I'd made sure that the new qemu-keymaps package woudl replace the old qemu-linaro (from universe) qemu-keymaps package, but the ppa was never addressed.

the solution to this may simply be to remove qemu-keymaps frmo the linaro package, but I'm not sure.

no longer affects: libvirt (Ubuntu)
Changed in qemu (Ubuntu):
status: Incomplete → Confirmed
Serge Hallyn (serge-hallyn) wrote :

Of course, qemu-keymaps coming from linaro may not be a problem if it would include the en_us map :)

could you please include your /etc/apt/sources.list.d/* files? I'd like to look at the source to determine who to talk to about the missing file. Unfortunately there is no way to file a bug against a package in a ppa (that I know of).

summary: - REGRESSION: VMs do not boot out of Virtual Machine Manager any more
+ qemu-keymaps lacks en_us. REGRESSION: VMs do not boot out of Virtual
+ Machine Manager any more

till@till:~$ apt-cache policy qemu-keymaps
qemu-keymaps:
  Installed: 1.4.0-2013.03-0ubuntu1~linaro1
  Candidate: 1.4.0-2013.03-0ubuntu1~linaro1
  Version table:
 *** 1.4.0-2013.03-0ubuntu1~linaro1 0
        500 http://ppa.launchpad.net/linaro-maintainers/tools/ubuntu/ quantal/main amd64 Packages
        100 /var/lib/dpkg/status
     1.4.0+dfsg-1expubuntu4 0
        500 http://archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
     1.2.0-2012.09-0ubuntu1~linaro1 0
        500 http://ppa.launchpad.net/linaro-maintainers/tools/ubuntu/ quantal/main amd64 Packages
till@till:~$

I have a file

/etc/apt/sources.list.d/linaro-maintainers-tools-quantal.list

containing

deb http://ppa.launchpad.net/linaro-maintainers/tools/ubuntu quantal main
deb-src http://ppa.launchpad.net/linaro-maintainers/tools/ubuntu quantal main

The machine is an x86_64 PC, no ARM.

Fathi Boudra (fboudra) on 2013-03-19
Changed in linaro-ubuntu:
milestone: none → 13.03
Peter Maydell (pmaydell) wrote :

> Of course, qemu-keymaps coming from linaro may not be a problem if it would include the en_us map :)

It does include en_us, it's just putting all the keymaps in a different directory to the one qemu is looking for (/qemu-linaro/ vs /qemu/)

The Linaro package is the problem, I did

sudo rm /etc/apt/sources.list.d/linaro-maintainers-tools-quantal.list
sudo apt-get update
sudo dpkg -P --force-depends qemu-keymaps
sudo apt-get install -f

and after that I could use my virtual machines again.

> It does include en_us, it's just putting all the keymaps in a different
> directory to the one qemu is looking for (/qemu-linaro/ vs /qemu/)

Oh, yes, I'm sorry - I had looked through the dpkg -L output, and just
missed it!

So the alternative to dropping qemu-keymaps from the linaro package
would be for the linaro package to at least add a symlink.

Fathi Boudra (fboudra) on 2013-03-29
Changed in linaro-ubuntu:
milestone: 13.03 → 13.04
Fathi Boudra (fboudra) on 2013-04-26
Changed in linaro-ubuntu:
milestone: 13.04 → 13.05
Fathi Boudra (fboudra) on 2013-05-31
Changed in linaro-ubuntu:
milestone: 13.05 → 13.06
Fathi Boudra (fboudra) on 2013-06-13
Changed in linaro-ubuntu:
assignee: nobody → Riku Voipio (riku-voipio)
status: New → Fix Committed
importance: Undecided → High
Fathi Boudra (fboudra) on 2013-06-28
Changed in linaro-ubuntu:
status: Fix Committed → Fix Released
Serge Hallyn (serge-hallyn) wrote :

Should this be marked invalid or fix-released for the Ubuntu qemu and qemu-linaro tasks?

Changed in qemu (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers