cfg2cmd: require at least QEMU binary version 4.0

The minimum supported version for a Proxmox VE 8 node is QEMU 8.0.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Reviewed-by: Daniel Kral <d.kral@proxmox.com>
Tested-by: Daniel Kral <d.kral@proxmox.com>
This commit is contained in:
Fiona Ebner 2024-07-23 17:25:42 +02:00 committed by Thomas Lamprecht
parent 83f18ac089
commit 2263b8548d
2 changed files with 4 additions and 4 deletions

View File

@ -3614,9 +3614,9 @@ sub config_to_command {
my $kvm_binary = get_command_for_arch($arch);
my $kvmver = kvm_user_version($kvm_binary);
if (!$kvmver || $kvmver !~ m/^(\d+)\.(\d+)/ || $1 < 3) {
if (!$kvmver || $kvmver !~ m/^(\d+)\.(\d+)/ || $1 < 4) {
$kvmver //= "undefined";
die "Detected old QEMU binary ('$kvmver', at least 3.0 is required)\n";
die "Detected old QEMU binary ('$kvmver', at least 4.0 is required)\n";
}
my $add_pve_version = min_version($kvmver, 4, 1);

View File

@ -1,4 +1,4 @@
# TEST: Test QEMU version detection and expect fail on old version
# QEMU_VERSION: 2.12.1
# EXPECT_ERROR: Detected old QEMU binary ('2.12.1', at least 3.0 is required)
# QEMU_VERSION: 3.0.1
# EXPECT_ERROR: Detected old QEMU binary ('3.0.1', at least 4.0 is required)
smbios1: uuid=7b10d7af-b932-4c66-b2c3-3996152ec465