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