Bug 523916

Summary: Restoration does not work in 0.7.1
Product: [Community] Virtualization Tools Reporter: Daniel B <dani-rh>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: crobinso, dani-rh, thomas.sjolshagen, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-10-15 16:08:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Log file of the guest when the restoration fails
none
XML definition of the guest
none
Libvirt daemon log in debug mode while saving and trying to restore the guest none

Description Daniel B 2009-09-17 07:48:57 UTC
Created attachment 361440 [details]
Log file of the guest when the restoration fails

Description of problem:

I'm having a problem with the latest libvirt (0.7.1). Restoration of a saved state doesn't seems to work.
I use the gzip compression, but have also tried other compressed format without success.
I also run my guests as root, as there's another problem with the saved file when running unprivileged.

I first run a virsh save command (my guest is called "xp"):

[root@virt ~] LANG=C_ALL virsh save xp /tmp/xp.state
Domain xp saved to /tmp/xp.state

The saved file seems correct:
ll -h /tmp/xp.state
rw------- 1 root root 36M sep 17 09:30 /tmp/xp.state

Then, I try to restore my guest from this file:

[root@virt ~] LANG=C_ALL virsh restore /tmp/xp.state
error: Failed to restore domain from /tmp/xp.state
error: internal error Timed out while reading monitor startup output

You'll find attached to this bug the XML definition of the guest, the log file /var/log/libvirt/qemu/xp.log when the restoration fails and the log of libvirt daemon in debug mode


Version-Release number of selected component (if applicable):

I'm running CentOS 5.3 x86_64 fully updated.

libvirt 0.7.1, recompiled from the srpm (http://libvirt.org/sources/libvirt-0.7.1-1.fc11.src.rpm) with the following argument:

rpmbuild --rebuild --without xen --without xen-proxy --without lxc --without vbox --without esx --without phyp --without one --without avahi --without openvz --without uml --without storage-mpath libvirt-0.7.1-1.fc11.src.rpm


qemu-kvm-0.10.6-1
kmod-kvm-2.6.30.1-2.el5
(from lfarkas repository)

How reproducible:
Always, I wasn't able to restore a guest from a saved state in 0.7.1

Steps to Reproduce:
1. save a guest state to a file using virsh save guest /file
2. try to restore the guest from the file using virsh restore /file
3.
  
Actual results:
The guest stay stoped

Expected results:
Guest restored

Additional info:
I have set Selinux to permissive, to be sure the problem is not related to it

Comment 1 Daniel B 2009-09-17 07:49:38 UTC
Created attachment 361442 [details]
XML definition of the guest

Comment 2 Daniel B 2009-09-17 07:50:26 UTC
Created attachment 361443 [details]
Libvirt daemon log in debug mode while saving and trying to restore the guest

Comment 3 Daniel B 2009-10-15 16:08:51 UTC
This bugs seems corrected in libvirt 0.7.2 (I think it's this fix:
http://libvirt.org/git/?p=libvirt.git;a=commit;h=74b379cbd5ba9f472a3a2d5710e497966b1a3a37).