mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-02 23:16:05 +00:00
Ignore version checks when using QEMU -rc releases
Upstream marks these as having a micro-version of >=90, unfortunately the machine versions are bumped earlier so testing them is made unnecessarily difficult, since the version checking code would abort on migrations etc... Signed-off-by: Stefan Reiter <s.reiter@proxmox.com> [ Thomas: do so refactor ] Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
da75afe5c0
commit
b516c84871
@ -2973,13 +2973,15 @@ sub config_to_command {
|
||||
|
||||
$machine_version =~ m/(\d+)\.(\d+)/;
|
||||
my ($machine_major, $machine_minor) = ($1, $2);
|
||||
die "Installed QEMU version '$kvmver' is too old to run machine type '$machine_type', please upgrade node '$nodename'\n"
|
||||
if !PVE::QemuServer::min_version($kvmver, $machine_major, $machine_minor);
|
||||
|
||||
if (!PVE::QemuServer::Machine::can_run_pve_machine_version($machine_version, $kvmver)) {
|
||||
if ($kvmver =~ m/^\d+\.\d+\.(\d+)/ && $1 >= 90) {
|
||||
warn "warning: Installed QEMU version ($kvmver) is a release candidate, ignoring version checks\n";
|
||||
} elsif (!min_version($kvmver, $machine_major, $machine_minor)) {
|
||||
die "Installed QEMU version '$kvmver' is too old to run machine type '$machine_type', please upgrade node '$nodename'\n"
|
||||
} elsif (!PVE::QemuServer::Machine::can_run_pve_machine_version($machine_version, $kvmver)) {
|
||||
my $max_pve_version = PVE::QemuServer::Machine::get_pve_version($machine_version);
|
||||
die "Installed qemu-server (max feature level for $machine_major.$machine_minor is pve$max_pve_version)"
|
||||
. " is too old to run machine type '$machine_type', please upgrade node '$nodename'\n";
|
||||
." is too old to run machine type '$machine_type', please upgrade node '$nodename'\n";
|
||||
}
|
||||
|
||||
# if a specific +pve version is required for a feature, use $version_guard
|
||||
|
Loading…
Reference in New Issue
Block a user