Bug 1049259

Summary: cannot migrate if SATA controller is present
Product: Red Hat Enterprise Linux 7 Reporter: Dalibor Pospíšil <dapospis>
Component: qemu-kvmAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: acathrow, juzhang, pkrempa, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-07 10:16:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dalibor Pospíšil 2014-01-07 09:51:56 UTC
Description of problem:
Cannot do managedsave if SATA controller is present neither using virt-manager nor virsh.

Version-Release number of selected component (if applicable):
kernel-3.10.0-64.el7.x86_64
qemu-kvm-1.5.3-30.el7.x86_64
libvirt-1.1.1-16.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
0. using virt-manager
1. create VM (by default with IDE)
2. try to save VM's state (just to make sure it works)
3. change disk bus to SATA
4. start VM and try to save VM's state

Actual results:
Error saving domain: internal error: unable to execute QEMU command 'migrate': State blocked by non-migratable device '0000:00:07.0/ich9_ahci'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 100, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/engine.py", line 833, in _save_callback
    newvm.save(file_to_save, meter=meter)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1257, in save
    self._backend.managedSave(0)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 890, in managedSave
    if ret == -1: raise libvirtError ('virDomainManagedSave() failed', dom=self)
libvirtError: internal error: unable to execute QEMU command 'migrate': State blocked by non-migratable device '0000:00:07.0/ich9_ahci'


Expected results:
VM's state is saved

Comment 1 Peter Krempa 2014-01-07 10:09:57 UTC
Libvirt uses migration to a file to save the state of a domain. The message comes from qemu that doesn't allow the migration. Reassigning.

Comment 3 Peter Krempa 2014-01-07 10:16:45 UTC

*** This bug has been marked as a duplicate of bug 901631 ***