mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

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

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