Blame SOURCES/0100-RHEL-7-v2v-Select-correct-qemu-binary-for-o-qemu-mod.patch

ffd6ed
From 04f1f9879843e6e3005cfe13805856621aca6bcd Mon Sep 17 00:00:00 2001
0d20ef
From: "Richard W.M. Jones" <rjones@redhat.com>
0d20ef
Date: Sun, 28 Sep 2014 19:14:43 +0100
0d20ef
Subject: [PATCH] RHEL 7: v2v: Select correct qemu binary for -o qemu mode
0d20ef
 (RHBZ#1147313).
0d20ef
0d20ef
RHEL 7 does not have qemu-system-x86_64 (etc), and in addition the
0d20ef
qemu binary is located in /usr/libexec.  Encode the path to this
0d20ef
binary directly in the script.
0d20ef
0d20ef
Note that we don't support people running qemu directly like this.
0d20ef
It's just for quick testing of converted VMs, and to help us with
0d20ef
support cases.
0d20ef
---
0d20ef
 v2v/output_qemu.ml | 2 +-
0d20ef
 1 file changed, 1 insertion(+), 1 deletion(-)
0d20ef
0d20ef
diff --git a/v2v/output_qemu.ml b/v2v/output_qemu.ml
0d20ef
index 75644c2..9c17121 100644
0d20ef
--- a/v2v/output_qemu.ml
0d20ef
+++ b/v2v/output_qemu.ml
0d20ef
@@ -48,7 +48,7 @@ object
0d20ef
     let nl = " \\\n\t" in
0d20ef
     fpf "#!/bin/sh -\n";
0d20ef
     fpf "\n";
0d20ef
-    fpf "qemu-system-%s" guestcaps.gcaps_arch;
0d20ef
+    fpf "/usr/libexec/qemu-kvm";
0d20ef
     fpf "%s-no-user-config -nodefaults" nl;
0d20ef
     fpf "%s-name %s" nl (quote source.s_name);
0d20ef
     fpf "%s-machine accel=kvm:tcg" nl;
0d20ef
-- 
0d20ef
1.8.3.1
0d20ef