From: Thomas Lamprecht Date: Thu, 14 May 2020 08:15:59 +0000 (+0200) Subject: vm resource: add "with-local-disks" for replicated migrate X-Git-Url: https://git.proxmox.com/?p=pve-ha-manager.git;a=commitdiff_plain;h=77e25aeafc07fad3f7e81ff134a364572e9255f0 vm resource: add "with-local-disks" for replicated migrate We do not need passing a target storage as the identity mapping prefers replicated storage for a replicated disks already, and other cases do not make sense anyway as they wouldn't work for HA recovery.. We probably want to check the "really only replicated OK migrations" in the respective API code paths for the "ha" RPC environment case, though. Signed-off-by: Thomas Lamprecht --- diff --git a/src/PVE/HA/Resources/PVEVM.pm b/src/PVE/HA/Resources/PVEVM.pm index 2e1698f..58c83e0 100644 --- a/src/PVE/HA/Resources/PVEVM.pm +++ b/src/PVE/HA/Resources/PVEVM.pm @@ -108,6 +108,7 @@ sub migrate { # different host have the same hardware, so this can be fine, and qemu # knows when not, so can only win here force => 1, + 'with-local-disks' => 1, target => $target, online => $online, };