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

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