]> git.proxmox.com Git - qemu-server.git/commitdiff
cfg2cmd: replace deprecated no-acpi option with acpi=off machine flag
authorFiona Ebner <f.ebner@proxmox.com>
Mon, 3 Apr 2023 12:09:43 +0000 (14:09 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 7 Jun 2023 15:35:41 +0000 (17:35 +0200)
like the deprecation message printed by QEMU suggests.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer.pm

index 97c589c1089a7b3beb01d3ab668ce5b48a4ab866..a62670dd236d5a29113a1f095c9d93428b109f49 100644 (file)
@@ -3848,7 +3848,7 @@ sub config_to_command {
 
     push @$cmd, '-boot', "menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg";
 
-    push @$cmd, '-no-acpi' if defined($conf->{acpi}) && $conf->{acpi} == 0;
+    push $machineFlags->@*, 'acpi=off' if defined($conf->{acpi}) && $conf->{acpi} == 0;
 
     push @$cmd, '-no-reboot' if  defined($conf->{reboot}) && $conf->{reboot} == 0;