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

491457
From 0ebcba77cba8f01d511e13428d627f16c0635701 Mon Sep 17 00:00:00 2001
4ebc84
From: "Richard W.M. Jones" <rjones@redhat.com>
4ebc84
Date: Tue, 30 Sep 2014 10:50:27 +0100
4ebc84
Subject: [PATCH] RHEL 7: v2v: Disable the --qemu-boot option (RHBZ#1147313).
4ebc84
4ebc84
This cannot work because there is no Gtk or SDL output mode
4ebc84
in RHEL 7's qemu-kvm.
4ebc84
4ebc84
In addition you will have to edit the -display option in the
4ebc84
qemu script.
4ebc84
---
4ebc84
 v2v/cmdline.ml                |  3 ++-
4ebc84
 v2v/virt-v2v-output-local.pod |  6 ++----
4ebc84
 v2v/virt-v2v.pod              | 13 -------------
4ebc84
 3 files changed, 4 insertions(+), 18 deletions(-)
4ebc84
4ebc84
diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml
4ebc84
index 46f6910d0..aa89428c5 100644
4ebc84
--- a/v2v/cmdline.ml
4ebc84
+++ b/v2v/cmdline.ml
4ebc84
@@ -240,7 +240,6 @@ let parse_cmdline () =
4ebc84
                                     s_"Estimate size of source and stop";
4ebc84
     [ L"print-source" ], Getopt.Set print_source,
4ebc84
                                     s_"Print source and stop";
4ebc84
-    [ L"qemu-boot" ], Getopt.Set qemu_boot, s_"Boot in qemu (-o qemu only)";
4ebc84
     [ L"root" ],     Getopt.String ("ask|... ", set_root_choice),
4ebc84
                                     s_"How to choose root filesystem";
4ebc84
     [ L"vddk-config" ], Getopt.String ("filename", set_input_option_compat "vddk-config"),
4ebc84
@@ -588,6 +587,8 @@ read the man page virt-v2v(1).
4ebc84
         | Some d when not (is_directory d) ->
4ebc84
            error (f_"-os %s: output directory does not exist or is not a directory") d
4ebc84
         | Some d -> d in
4ebc84
+      if qemu_boot then
4ebc84
+        error (f_"-o qemu: the --qemu-boot option cannot be used in RHEL");
4ebc84
       Output_qemu.output_qemu os qemu_boot,
4ebc84
       output_format, output_alloc
4ebc84
 
4ebc84
diff --git a/v2v/virt-v2v-output-local.pod b/v2v/virt-v2v-output-local.pod
4ebc84
index 7427b1ed7..455d51fba 100644
4ebc84
--- a/v2v/virt-v2v-output-local.pod
4ebc84
+++ b/v2v/virt-v2v-output-local.pod
4ebc84
@@ -9,7 +9,7 @@ or libvirt
4ebc84
 
4ebc84
  virt-v2v [-i* options] -o local -os DIRECTORY
4ebc84
 
4ebc84
- virt-v2v [-i* options] -o qemu -os DIRECTORY [--qemu-boot]
4ebc84
+ virt-v2v [-i* options] -o qemu -os DIRECTORY
4ebc84
 
4ebc84
  virt-v2v [-i* options] -o null
4ebc84
 
4ebc84
@@ -47,12 +47,10 @@ where C<NAME> is the guest name.
4ebc84
 
4ebc84
 =item B<-o qemu -os> C<DIRECTORY>
4ebc84
 
4ebc84
-=item B<-o qemu -os> C<DIRECTORY> B<--qemu-boot>
4ebc84
-
4ebc84
 This converts the guest to files in C<DIRECTORY>.  Unlike I<-o local>
4ebc84
 above, a shell script is created which contains the raw qemu command
4ebc84
 you would need to boot the guest.  However the shell script is not
4ebc84
-run, I<unless> you also add the I<--qemu-boot> option.
4ebc84
+run.
4ebc84
 
4ebc84
 =item B<-o null>
4ebc84
 
4ebc84
diff --git a/v2v/virt-v2v.pod b/v2v/virt-v2v.pod
4ebc84
index cf9464834..0e9627829 100644
4ebc84
--- a/v2v/virt-v2v.pod
4ebc84
+++ b/v2v/virt-v2v.pod
4ebc84
@@ -142,11 +142,6 @@ Since F<guest-domain.xml> contains the path(s) to the guest disk
4ebc84
 image(s) you do not need to specify the name of the disk image on the
4ebc84
 command line.
4ebc84
 
4ebc84
-To convert a local disk image and immediately boot it in local
4ebc84
-qemu, do:
4ebc84
-
4ebc84
- virt-v2v -i disk disk.img -o qemu -os /var/tmp --qemu-boot
4ebc84
-
4ebc84
 =head1 OPTIONS
4ebc84
 
4ebc84
 =over 4
4ebc84
@@ -480,9 +475,6 @@ This is similar to I<-o local>, except that a shell script is written
4ebc84
 which you can use to boot the guest in qemu.  The converted disks and
4ebc84
 shell script are written to the directory specified by I<-os>.
4ebc84
 
4ebc84
-When using this output mode, you can also specify the I<--qemu-boot>
4ebc84
-option which boots the guest under qemu immediately.
4ebc84
-
4ebc84
 =item B<-o> B<rhev>
4ebc84
 
4ebc84
 This is the same as I<-o rhv>.
4ebc84
@@ -758,11 +750,6 @@ Print information about the source guest and stop.  This option is
4ebc84
 useful when you are setting up network and bridge maps.
4ebc84
 See L</Networks and bridges>.
4ebc84
 
4ebc84
-=item B<--qemu-boot>
4ebc84
-
4ebc84
-When using I<-o qemu> only, this boots the guest immediately after
4ebc84
-virt-v2v finishes.
4ebc84
-
4ebc84
 =item B<-q>
4ebc84
 
4ebc84
 =item B<--quiet>
4ebc84
-- 
4ebc84
2.21.0
4ebc84