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

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