mirror of
git://git.proxmox.com/git/pve-ha-manager.git
synced 2025-08-26 05:49:21 +03:00
fix # 2241: VM resource: allow migration with local device, when not running
qemu-server ignores the flag if the VM runs, so just set it to true hardcoded. People have identical hosts with same HW and want to be able to relocate VMs in such cases, so allow it here - qemu knows to complain if it cannot work, as nothing bad happens then (VM stays just were it is) we can only win, so do it. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -96,6 +96,10 @@ sub migrate {
|
||||
my $params = {
|
||||
node => $nodename,
|
||||
vmid => $id,
|
||||
# bug #2241 forces is for local resource only, people can ensure that
|
||||
# different host have the same hardware, so this can be fine, and qemu
|
||||
# knows when not, so can only win here
|
||||
force => 1,
|
||||
target => $target,
|
||||
online => $online,
|
||||
};
|
||||
|
Reference in New Issue
Block a user