]> git.proxmox.com Git - qemu-server.git/blobdiff - PVE/QemuConfig.pm
snapshot: set migration caps before savevm-start
[qemu-server.git] / PVE / QemuConfig.pm
index c58ff19f89c3aa91082c6322358381f27afb0ade..7ee88761bb458e8713aa4b344e6aff4d5d283bdd 100644 (file)
@@ -281,6 +281,7 @@ sub __snapshot_create_vol_snapshots_hook {
                PVE::Storage::activate_volumes($storecfg, [$snap->{vmstate}]);
                my $state_storage_id = PVE::Storage::parse_volume_id($snap->{vmstate});
 
+               PVE::QemuServer::set_migration_caps($vmid, 1);
                mon_cmd($vmid, "savevm-start", statefile => $path);
                print "saving VM state and RAM using storage '$state_storage_id'\n";
                my $render_state = sub {