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

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