[SOLVED] snapshot create failed: TASK ERROR: VM 100 qmp command 'savevm-start' failed - State blocked by non-migratable device '0000:00:10.0/vfio-pci'

fcymk2

Active Member
Sep 7, 2019
27
3
43
40
when I create a snapshot for my guest, failed. cmd: Snapshots --> take snapshot.
my guest disk is /mnt/data/images/100/vm-100-disk-0.qcow2
use backup --> mode snapshot work fine.

log:
Formatting '/mnt/data/images/100/vm-100-state-test.raw', fmt=raw size=2671771648
VM 100 qmp command 'savevm-end' failed - VM snapshot not started
snapshot create failed: starting cleanup
TASK ERROR: VM 100 qmp command 'savevm-start' failed - State blocked by non-migratable device '0000:00:10.0/vfio-pci'
 
did you passthrough a pci device?
if yes, you cannot snapshot such a vm with memory, since there is (currently) no way to snapshot the internal state of the device (which would be needed to rollback to that point without crashing the vm)
 
did you passthrough a pci device?
if yes, you cannot snapshot such a vm with memory, since there is (currently) no way to snapshot the internal state of the device (which would be needed to rollback to that point without crashing the vm)
yes, I have some passthrough network interface card.

If I create a snapshot without ram, it can snapshot, is there any problem?
Or I must use backup instead of snapshots?
 
If I create a snapshot without ram, it can snapshot, is there any problem?
this is still a normal snapshot, but without the memory state, so if you rollback the vm is still off... (like you would have pulled the plug on the vm)
if you enable the 'qemu-guest-agent' it can be configured (inside the guest) to prepare the filesystem to be in a consistent state

Or I must use backup instead of snapshots?
i would recommend making backups either way, snapshots are not backups
 
this is still a normal snapshot, but without the memory state, so if you rollback the vm is still off... (like you would have pulled the plug on the vm)
if you enable the 'qemu-guest-agent' it can be configured (inside the guest) to prepare the filesystem to be in a consistent state


i would recommend making backups either way, snapshots are not backups
thanks for your suggestion