Blame SOURCES/0014-RHEL-8-v2v-Select-correct-qemu-binary-for-o-qemu-mod.patch

7ed5e3
From 9331544f2456f1aef7299920d0c84dff4e47d132 Mon Sep 17 00:00:00 2001
7ed5e3
From: "Richard W.M. Jones" <rjones@redhat.com>
7ed5e3
Date: Sun, 28 Sep 2014 19:14:43 +0100
7ed5e3
Subject: [PATCH] RHEL 8: v2v: Select correct qemu binary for -o qemu mode
7ed5e3
 (RHBZ#1147313).
7ed5e3
7ed5e3
RHEL 8 does not have qemu-system-x86_64 (etc), and in addition the
7ed5e3
qemu binary is located in /usr/libexec.  Encode the path to this
7ed5e3
binary directly in the script.
7ed5e3
7ed5e3
Note that we don't support people running qemu directly like this.
7ed5e3
It's just for quick testing of converted VMs, and to help us with
7ed5e3
support cases.
7ed5e3
---
7ed5e3
 v2v/output_qemu.ml | 2 +-
7ed5e3
 1 file changed, 1 insertion(+), 1 deletion(-)
7ed5e3
7ed5e3
diff --git a/v2v/output_qemu.ml b/v2v/output_qemu.ml
7ed5e3
index be3a3c5e..85d08265 100644
7ed5e3
--- a/v2v/output_qemu.ml
7ed5e3
+++ b/v2v/output_qemu.ml
7ed5e3
@@ -81,7 +81,7 @@ object
7ed5e3
      * module deals with shell and qemu comma quoting.
7ed5e3
      *)
7ed5e3
     let cmd = Qemuopts.create () in
7ed5e3
-    Qemuopts.set_binary_by_arch cmd (Some guestcaps.gcaps_arch);
7ed5e3
+    Qemuopts.set_binary cmd "/usr/libexec/qemu-kvm";
7ed5e3
 
7ed5e3
     let flag = Qemuopts.flag cmd
7ed5e3
     and arg = Qemuopts.arg cmd
7ed5e3
-- 
7ed5e3
2.18.4
7ed5e3