mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-01 15:18:29 +00:00
close #2263: die on live migration with local cloudinit disk
Live migration with a local cloudinit disk was never intended to work. It did however work to an extent that the migration completed but the disk on the source node could not be deleted. Now die if a live migration is started with a local cloudinit disk. With the GUI changes live migration is already disabled as it recognizes the cloudinit disk as a local resource. Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
This commit is contained in:
parent
cd98c4675b
commit
9860fe4ef9
@ -458,6 +458,7 @@ sub sync_disks {
|
||||
if ($self->{running} && $ref eq 'config') {
|
||||
push @{$self->{online_local_volumes}}, $volid;
|
||||
} elsif ($ref eq 'generated') {
|
||||
die "can't live migrate VM with local cloudinit disk. use a shared storage instead\n" if $self->{running};
|
||||
# skip all generated volumes but queue them for deletion in phase3_cleanup
|
||||
push @{$self->{volumes}}, $volid;
|
||||
next;
|
||||
|
Loading…
Reference in New Issue
Block a user