mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-03 00:50:51 +00:00
use machine version in vga default type selection
If we get an VM machine older than 2.9 we use the old selection expression for the VGA type. This allows to live migrate VMs to PVE 5.0 from beta 1 and PVE 4.4 again. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
8aca16542e
commit
a2a5cd64ab
@ -2925,7 +2925,11 @@ sub config_to_command {
|
||||
$vga = 'qxl' if $qxlnum;
|
||||
|
||||
if (!$vga) {
|
||||
$vga = (!$winversion || $winversion >= 6) ? 'std' : 'cirrus';
|
||||
if (qemu_machine_feature_enabled($machine_type, $kvmver, 2, 9)) {
|
||||
$vga = (!$winversion || $winversion >= 6) ? 'std' : 'cirrus';
|
||||
} else {
|
||||
$vga = ($winversion >= 6) ? 'std' : 'cirrus';
|
||||
}
|
||||
}
|
||||
|
||||
# enable absolute mouse coordinates (needed by vnc)
|
||||
|
Loading…
Reference in New Issue
Block a user