Blame SOURCES/0080-RHEL-8-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch

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