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 <t.lampre...@proxmox.com>
---

fixes #2734

 src/PVE/HA/Resources/PVEVM.pm | 1 +
 1 file changed, 1 insertion(+)

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,
     };
-- 
2.20.1


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to