[pve-devel] [PATCH] use /usr/bin/kvm_wrapper.pl if it exists instead of kvm

Stefan Priebe s.priebe at profihost.ag
Wed Apr 1 11:26:47 CEST 2015


Signed-off-by: Stefan Priebe <s.priebe at profihost.ag>
---
 PVE/QemuServer.pm |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 2720540..2db1f3b 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -2652,7 +2652,11 @@ sub config_to_command {
     my $q35 = machine_type_is_q35($conf);
     my $hotplug_features = parse_hotplug_features(defined($conf->{hotplug}) ? $conf->{hotplug} : '1');
 
-    push @$cmd, '/usr/bin/kvm';
+    if (-x "/usr/bin/kvm_wrapper.pl") {
+	push @$cmd, '/usr/bin/kvm_wrapper.pl';
+    } else {
+	push @$cmd, '/usr/bin/kvm';
+    }
 
     push @$cmd, '-id', $vmid;
 
-- 
1.7.10.4



More information about the pve-devel mailing list