Bug #4051

Restore on suspend gives "image magic is incorrect" Error

Added by Rachel Chen over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:10/13/2015
Priority:NormalDue date:
Assignee:Jaime Melis% Done:

0%

Category:Documentation
Target version:Release 4.14.2
Resolution: Pull request:
Affected Versions:OpenNebula 4.14

Description

Running Ubuntu 15.04, kernel 3.19.0-15-generic. When trying to restore the VM from suspended state, libvirtd gives error:
libvirtd1021: operation failed: image magic is incorrect

History

#1 Updated by Rachel Chen over 5 years ago

More info:

root@concertato:~# qemu-system-x86_64 --version
QEMU emulator version 2.2.0 (Debian 1:2.2+dfsg-5expubuntu9.5), Copyright (c) 2003-2008 Fabrice Bellard

root@concertato:~# libvirtd --version
libvirtd (libvirt) 1.2.12

root@concertato:~# qemu-img --version
qemu-img version 2.2.0, Copyright (c) 2004-2008 Fabrice Bellard

Results:

1. Using "file" command and I figured that the template from Marketplace is on QCOW v2, and I think that's what causing the magic block invalid. Using qemu-img to convert the template to compact=1.1(QCOW v3) solves the "image magic is incorrect" error.
2. However it introduces another error when using QCOW v3 to suspend/restore. libvirtd crashed with segfault when trying to "restore" for some reason. "checkpoint" is there however "checkpoint.xml" is empty. Therefore changing the "restore" in the KVM driver to NOT generate a XML solved the problem.

Please look into this issue.

#2 Updated by Rachel Chen over 5 years ago

Using these options in modprobe solved the libvirtd crashing issue:

options kvm_intel nested=0
options kvm_intel emulate_invalid_guest_state=0
options kvm ignore_msrs=1

I think my CPU is too restrictive on mem access...

#3 Updated by Ruben S. Montero over 5 years ago

  • Category set to Documentation
  • Status changed from Pending to New
  • Target version set to Release 4.14.2

Great, Thanks for letting us known :) I'm moving this issue to documentation to see if we can add a note for KVM configuration.

#4 Updated by Tino Vázquez over 5 years ago

  • Assignee set to Jaime Melis

#5 Updated by Jaime Melis over 5 years ago

  • Status changed from New to Closed

Also available in: Atom PDF