From 763506706337513cb53928a18dda7285eb10bdb5 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Thu, 6 Dec 2018 10:17:25 +0100 Subject: [PATCH] fix #1267: move args to the end of qemu commandline there is nothing that should be really affected by this, but even then, this option is only for experts and people using this should know what they are doing Signed-off-by: Dominik Csapak --- PVE/QemuServer.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 1e9dec61..94824bd4 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3883,12 +3883,6 @@ sub config_to_command { } } - # add custom args - if ($conf->{args}) { - my $aa = PVE::Tools::split_args($conf->{args}); - push @$cmd, @$aa; - } - push @$cmd, @$devices; push @$cmd, '-rtc', join(',', @$rtcFlags) if scalar(@$rtcFlags); @@ -3897,6 +3891,12 @@ sub config_to_command { push @$cmd, '-global', join(',', @$globalFlags) if scalar(@$globalFlags); + # add custom args + if ($conf->{args}) { + my $aa = PVE::Tools::split_args($conf->{args}); + push @$cmd, @$aa; + } + return wantarray ? ($cmd, $vollist, $spice_port) : $cmd; }