Bug 747657

Summary: Cannot restore saved domain
Product: [Fedora] Fedora Reporter: Nicolas Corrarello <ncorrare>
Component: libvirtAssignee: Fedora Virtualization Maintainers <virt-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 16CC: berrange, clalancette, crobinso, dougsland, itamar, jforbes, laine, sergio.pasra, veillard, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-24 15:27:29 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Nicolas Corrarello 2011-10-20 12:13:02 EDT
Description of problem:
After shutting down my laptop, libvirt saved the state of a VM. When trying to start it, it get the following

Error restoring domain: operation failed: failed to read qemu header

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 44, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1050, in startup
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 510, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: operation failed: failed to read qemu header

Since there is no way to manually remove that saved state, the virtual machine is rendered unusable.

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

How reproducible:

Steps to Reproduce:
1. Start a virtual machine
2. Power off host / power on host
3. Try to start virtual machien
Actual results:
Error message

Expected results:
Virtual Machine running

Additional info:
Comment 1 Laine Stump 2011-10-20 15:10:36 EDT
(In reply to comment #0)

> Since there is no way to manually remove that saved state, the virtual machine
> is rendered unusable.

This doesn't solve the basic problem, but there *is* a way to remove the saved state:

   virsh managedsave-remove $guestname

will get rid of it.
Comment 2 Nicolas Corrarello 2011-10-24 15:26:22 EDT
fixed in 




Fedora Bugzappers volunteer triage team