mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0006-RHEL-7-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch

97ae69
From 49da490111d1d1ef839c914da2bce9a234d22dcf Mon Sep 17 00:00:00 2001
0d20ef
From: "Richard W.M. Jones" <rjones@redhat.com>
0d20ef
Date: Tue, 30 Sep 2014 10:50:27 +0100
0d20ef
Subject: [PATCH] RHEL 7: v2v: Disable the --qemu-boot option (RHBZ#1147313).
0d20ef
0d20ef
This cannot work because there is no Gtk or SDL output mode
0d20ef
in RHEL 7's qemu-kvm.
0d20ef
0d20ef
In addition you will have to edit the -display option in the
0d20ef
qemu script.
0d20ef
---
e76f14
 v2v/cmdline.ml   |  3 ++-
0d20ef
 v2v/virt-v2v.pod | 13 -------------
e76f14
 2 files changed, 2 insertions(+), 14 deletions(-)
0d20ef
0d20ef
diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml
97ae69
index d88d0a579..d6f99fa00 100644
0d20ef
--- a/v2v/cmdline.ml
0d20ef
+++ b/v2v/cmdline.ml
97ae69
@@ -220,7 +220,6 @@ let parse_cmdline () =
97ae69
                                     s_"Use password from file";
97ae69
     [ L"print-source" ], Getopt.Set print_source,
97ae69
                                     s_"Print source and stop";
97ae69
-    [ L"qemu-boot" ], Getopt.Set qemu_boot, s_"Boot in qemu (-o qemu only)";
97ae69
     [ L"root" ],     Getopt.String ("ask|... ", set_root_choice),
97ae69
                                     s_"How to choose root filesystem";
97ae69
     [ L"vddk-config" ], Getopt.String ("filename", set_string_option_once "--vddk-config" vddk_config),
97ae69
@@ -507,6 +506,8 @@ read the man page virt-v2v(1).
e76f14
         | Some d when not (is_directory d) ->
e76f14
            error (f_"-os %s: output directory does not exist or is not a directory") d
e76f14
         | Some d -> d in
0d20ef
+      if qemu_boot then
0d20ef
+        error (f_"-o qemu: the --qemu-boot option cannot be used in RHEL");
90a56e
       Output_qemu.output_qemu os qemu_boot,
90a56e
       output_format, output_alloc
0d20ef
 
0d20ef
diff --git a/v2v/virt-v2v.pod b/v2v/virt-v2v.pod
97ae69
index 484e14747..1c06502ec 100644
0d20ef
--- a/v2v/virt-v2v.pod
0d20ef
+++ b/v2v/virt-v2v.pod
97ae69
@@ -114,11 +114,6 @@ Since F<guest-domain.xml> contains the path(s) to the guest disk
0d20ef
 image(s) you do not need to specify the name of the disk image on the
0d20ef
 command line.
0d20ef
 
0d20ef
-To convert a local disk image and immediately boot it in local
0d20ef
-qemu, do:
0d20ef
-
0d20ef
- virt-v2v -i disk disk.img -o qemu -os /var/tmp --qemu-boot
0d20ef
-
97ae69
 =head1 INPUT AND OUTPUT MODES
0d20ef
 
97ae69
                           ┌────────────┐  ┌─────────▶ -o null
97ae69
@@ -517,9 +512,6 @@ This is similar to I<-o local>, except that a shell script is written
0d20ef
 which you can use to boot the guest in qemu.  The converted disks and
0d20ef
 shell script are written to the directory specified by I<-os>.
0d20ef
 
0d20ef
-When using this output mode, you can also specify the I<--qemu-boot>
0d20ef
-option which boots the guest under qemu immediately.
0d20ef
-
90a56e
 =item B<-o> B<rhev>
0d20ef
 
90a56e
 This is the same as I<-o rhv>.
97ae69
@@ -609,11 +601,6 @@ Print information about the source guest and stop.  This option is
0d20ef
 useful when you are setting up network and bridge maps.
0d20ef
 See L</NETWORKS AND BRIDGES>.
0d20ef
 
0d20ef
-=item B<--qemu-boot>
0d20ef
-
0d20ef
-When using I<-o qemu> only, this boots the guest immediately after
0d20ef
-virt-v2v finishes.
0d20ef
-
0d20ef
 =item B<-q>
0d20ef
 
0d20ef
 =item B<--quiet>
0d20ef
-- 
97ae69
2.17.1
0d20ef