Red Hat Bugzilla – Bug 1001709
RAM Snapshot restore fails when guest usb is set to disabled or legacy
Last modified: 2013-09-30 10:11:02 EDT
Description of problem:
Restoring a snapshot with RAM fails if the guest instance configured with usb disabled (the default) or usb legacy.
Version-Release number of selected component (if applicable):
Tested with F19 AIO install w/ oVirt 3.3RC, with guests running F19 and CentOS 6.4.
Steps to Reproduce:
1. Create a VM in oVirt (usb will be set to disabled by default)
2. Start VM and take live snapshot, with "Save Memory" checked
3. Turn off VM, preview snapshot, start VM
VM won't start.
VM starts, restores state from snapshot.
I can run those steps 1-3 above, after switching to "native" usb, and it works as expected. "legacy" usb gives same results as disabled usb.
This appears to be the relevant log chunk from vdsm.log:
Thread-101353::ERROR::2013-08-26 15:28:58,806::vm::2062::vm.Vm::(_startUnderlyingVm) vmId=`da8cfa29-f8b8-4876-a1ae-13db996635b2`::The vm start process failed
Traceback (most recent call last):
File "/usr/share/vdsm/vm.py", line 2022, in _startUnderlyingVm
File "/usr/share/vdsm/vm.py", line 2890, in _run
self._connection.restoreFlags(fname, srcDomXML, 0)
File "/usr/lib64/python2.7/site-packages/vdsm/libvirtconnection.py", line 76, in wrapper
ret = f(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3346, in restoreFlags
if ret == -1: raise libvirtError ('virDomainRestoreFlags() failed', conn=self)
libvirtError: unsupported configuration: Target controller type ide does not match source usb
Thread-101353::DEBUG::2013-08-26 15:28:58,812::vm::2448::vm.Vm::(setDownStatus) vmId=`da8cfa29-f8b8-4876-a1ae-13db996635b2`::Changed state to Down: unsupported configuration: Target controller type ide does not match source usb
I couldn't reproduce it on rhel, and it takes me some time to be able to check it on fedora.
In the meantime, can you please check on that specific environment where the bug is reproduced, whether the suspend & restore from suspension operations work for those VMs that could not restore snapshot with memory (with disabled/legacy usb support) ?
fixed by the solution for bz 1008340
verified with libvirt-18.104.22.168-2.fc19