5c13d3
From 90a972c95251c6ae47a33c4d3703fcbdfbb910f7 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
---
97ae69
 v2v/output_qemu.ml | 2 +-
0d20ef
 1 file changed, 1 insertion(+), 1 deletion(-)
0d20ef
97ae69
diff --git a/v2v/output_qemu.ml b/v2v/output_qemu.ml
a034fe
index 1f6798aaf..8665d7b5c 100644
97ae69
--- a/v2v/output_qemu.ml
97ae69
+++ b/v2v/output_qemu.ml
a034fe
@@ -81,7 +81,7 @@ object
97ae69
      * module deals with shell and qemu comma quoting.
97ae69
      *)
97ae69
     let cmd = Qemuopts.create () in
97ae69
-    Qemuopts.set_binary_by_arch cmd (Some guestcaps.gcaps_arch);
97ae69
+    Qemuopts.set_binary cmd "/usr/libexec/qemu-kvm";
e76f14
 
97ae69
     let flag = Qemuopts.flag cmd
97ae69
     and arg = Qemuopts.arg cmd
0d20ef
-- 
a034fe
2.21.0
0d20ef