mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0005-RHEL-7-v2v-Select-correct-qemu-binary-for-o-qemu-mod.patch

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