virt-manager. restore windows vm-> Unknown savevm section type 5

Bug #1472500 reported by Nigel Jones
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qemu (Ubuntu)
Expired
Medium
Unassigned

Bug Description

When running a windows vm under kvm, save-ing, and then restore-ing, the restore fails with

Error restoring domain: internal error: process exited while connecting to monitor: Unknown savevm section type 5
2015-07-08T07:18:09.422722Z qemu-system-x86_64: load of migration failed: Invalid argument

Sw versions:

i ipxe-qemu 1.0.0+git-20141004.86285d1-1ubuntu3 all PXE boot firmware - ROM images for qemu
ii qemu-kvm 1:2.2+dfsg-5expubuntu9.2 amd64 QEMU Full virtualization
ii qemu-system-common 1:2.2+dfsg-5expubuntu9.2 amd64 QEMU full system emulation binaries (common files)
ii qemu-system-x86 1:2.2+dfsg-5expubuntu9.2 amd64 QEMU full system emulation binaries (x86)
ii qemu-utils 1:2.2+dfsg-5expubuntu9.2 amd64 QEMU utilities
jonesn@jonesn-ThinkPad-W530:~$
jonesn@jonesn-ThinkPad-W530:~$ dpkg -l | grep libvirt
ii gir1.2-libvirt-glib-1.0 0.1.9-4 amd64 libvirt glib mainloop integration
ii libvirt-bin 1.2.12-0ubuntu13 amd64 programs for the libvirt library
ii libvirt-glib-1.0-0 0.1.9-4 amd64 libvirt glib mainloop integration
ii libvirt0 1.2.12-0ubuntu13 amd64 library for interfacing with different virtualization systems
ii python-libvirt 1.2.12-0ubuntu1 amd64 libvirt Python bindings
jonesn@jonesn-ThinkPad-W530:~$
onesn@jonesn-ThinkPad-W530:~$ dpkg -l | grep virt-manager
ii virt-manager 1:1.0.1-5ubuntu1 all desktop application for managing virtual machines

It may be this bug in qemu 2.2
http://thread.gmane.org/gmane.comp.emulators.qemu/319527/focus=319653

I've not seen a later package in the ubuntu repos, though happy to test if one exists. I may build qemu seperately as a test

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: virt-manager 1:1.0.1-5ubuntu1
ProcVersionSignature: Ubuntu 3.19.0-22.22-generic 3.19.8-ckt1
Uname: Linux 3.19.0-22-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
CurrentDesktop: KDE
Date: Wed Jul 8 08:19:03 2015
ExecutablePath: /usr/share/virt-manager/virt-manager
InstallationDate: Installed on 2015-06-12 (25 days ago)
InstallationMedia: It
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: virt-manager
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Nigel Jones (nigel-7) wrote :
Revision history for this message
Nigel Jones (nigel-7) wrote :

Updated package to qemu after testing against the packages in https://launchpad.net/ubuntu/+source/qemu (2.3 debs). With these installed this bug does not occur. Note that I did remove USB controller/redirector and changed spice->vnc in order to get the vm to start since these 2.3 packages as of 8 July 2015 appear not to support spice or usb

affects: virt-manager (Ubuntu) → qemu (Ubuntu)
Revision history for this message
Nigel Jones (nigel-7) wrote :

qemu 2.3.1 appears to fix this, though see https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1472571 for the new problem (unrelated) it causes. There is also no supported fix for 15.04

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

The thread in the initial description pointed to a fix for a certain emulated realtime clock. Might be that setting up Windows guests tweaks the base hardware. So I picked that and build a 15.04 set of qemu packages with that applied. The packages can be found at: http://people.canonical.com/~smb/lp1472500/
Can you check whether that helps in your case? Btw, you only need to download and install those debs which you already got. Or download them all into an empty directory and then install with "sudo dpkg -iO *.deb" which automatically skips any packages which are not installed.

For reference the applied patch is:
commit bb426311901776b95b021cece831b69dce4ef5ee
  fix mc146818rtc wrong subsection name to avoid vmstate_subsection_load() fail
  during incoming migration or loadvm.

Changed in qemu (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
assignee: nobody → Stefan Bader (smb)
Stefan Bader (smb)
Changed in qemu (Ubuntu):
status: Triaged → Incomplete
Stefan Bader (smb)
Changed in qemu (Ubuntu):
assignee: Stefan Bader (smb) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for qemu (Ubuntu) because there has been no activity for 60 days.]

Changed in qemu (Ubuntu):
status: Incomplete → Expired
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.