XCP

Cannot Resume Guest VM

Bug #1170816 reported by Adam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
XCP
New
Undecided
Unassigned

Bug Description

XCP is unable to resume a suspended guest VM. The error being returned is:

[20130419T17:42:13.536Z|debug|adam|2537 UNIX /var/lib/xcp/xapi|VM.resume R:4e7291bec1d9|xenguesthelper] xc: error: Invalid QEMU magic: 0x1a00000a: Internal error\nxc: error: error buffering image tail: Internal error\n
[20130419T17:42:13.603Z|error|adam|2537 UNIX /var/lib/xcp/xapi|VM.resume R:4e7291bec1d9|xenguesthelper] Received: xc_domain_restore 1 error buffering image tail\"

I went into the source code of the Xen hypervisor and found where the error is occurring. Inside of the libxc xc_domain_restore.c file there is a check of the suspended image tail. The code is expecting to see the string "QEVM" but instead it is seeing 0x1a00000a. I then opened the suspended image file into a hex editor and saw that the string "QEVM" was 1 byte after 0x1a00000a (a total offset being +5 bytes from where it was expected to be). I tried removing the 5 extra bytes prior to the "QEVM" string but doing so caused a new error when resuming the image: End_of_file.

Inside the VM, I have the current version of XenTools installed (xs-tools.iso 6.1). I have combed through the XCP and XenServer documentation PDF's and haven't found an answer. Googling the exact error I'm getting does not retrieve any meaningful results.

It seems to me like a package version mismatch somewhere. My hunch is that the VM's suspended image is being saved with a different image format version than the resume function expects. I am using the packages in the main repos and not using quantal-backports or ppa's.

== Specs ==
Dom0: Ubuntu 12.10 64bit
Guest: Windows XP SP3 32bit
Line that causes the error: xen-hypervisor-4.1-amd64/tools/libxc/xc_domain_restore.c : 384.
Xen: 4.1.3-3ubuntu1.3 (from apt-get install xen-hypervisor-4.1-amd64)
XCP: 1.3.2-11ubuntu1 (from apt-get install xcp-xapi)

== How to reproduce ==
Install vanilla xcp-xapi
Create VM with Windows XP SP3 template
Install Windows XP SP3
Install XenTools 6.1 in VM
Suspend VM via: xe vm-suspend vm=$VM
Resume VM via: xe vm-resume vm=$VM

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.