migration: handle replication: remove outdated and inaccurate check for QEMU version

In Proxmox VE 8, the oldest supported QEMU version is 8.0, so a
check for version 4.2 is not required anymore. The check was also
wrong, because it checked the installed version and not the currently
running one.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fiona Ebner 2024-05-28 10:50:03 +02:00 committed by Fabian Grünbichler
parent e30435dc72
commit d0fb8f8239

View File

@ -544,12 +544,6 @@ sub handle_replication {
if $self->{opts}->{remote}; if $self->{opts}->{remote};
if ($self->{running}) { if ($self->{running}) {
my $version = PVE::QemuServer::kvm_user_version();
if (!min_version($version, 4, 2)) {
die "can't live migrate VM with replicated volumes, pve-qemu to old (< 4.2)!\n"
}
my @live_replicatable_volumes = $self->filter_local_volumes('online', 1); my @live_replicatable_volumes = $self->filter_local_volumes('online', 1);
foreach my $volid (@live_replicatable_volumes) { foreach my $volid (@live_replicatable_volumes) {
my $drive = $local_volumes->{$volid}->{drivename}; my $drive = $local_volumes->{$volid}->{drivename};