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

90a56e
From 9185b9edc455e72ae44abc98b98aaef79b0a7a69 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
---
90a56e
 v2v/qemu_command.ml | 2 +-
0d20ef
 1 file changed, 1 insertion(+), 1 deletion(-)
0d20ef
90a56e
diff --git a/v2v/qemu_command.ml b/v2v/qemu_command.ml
46ce2f
index ccdda8ad4..19757e007 100644
90a56e
--- a/v2v/qemu_command.ml
90a56e
+++ b/v2v/qemu_command.ml
90a56e
@@ -32,7 +32,7 @@ and arg =
90a56e
   | Commas of string * string list
e76f14
 
90a56e
 let create ?(arch = "x86_64") () =
90a56e
-  { cmd = "qemu-system-" ^ arch; args = [] }
90a56e
+  { cmd = "/usr/libexec/qemu-kvm"; args = [] }
90a56e
 
90a56e
 let flag t k =
90a56e
   assert (String.is_prefix k "-");
0d20ef
-- 
46ce2f
2.13.4
0d20ef