|
|
5c13d3 |
From 0ebcba77cba8f01d511e13428d627f16c0635701 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 |
---
|
|
|
a034fe |
v2v/cmdline.ml | 3 ++-
|
|
|
a034fe |
v2v/virt-v2v-output-local.pod | 6 ++----
|
|
|
a034fe |
v2v/virt-v2v.pod | 13 -------------
|
|
|
a034fe |
3 files changed, 4 insertions(+), 18 deletions(-)
|
|
|
0d20ef |
|
|
|
0d20ef |
diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml
|
|
|
a034fe |
index 46f6910d0..aa89428c5 100644
|
|
|
0d20ef |
--- a/v2v/cmdline.ml
|
|
|
0d20ef |
+++ b/v2v/cmdline.ml
|
|
|
a034fe |
@@ -240,7 +240,6 @@ let parse_cmdline () =
|
|
|
a034fe |
s_"Estimate size of source and stop";
|
|
|
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";
|
|
|
a034fe |
[ L"vddk-config" ], Getopt.String ("filename", set_input_option_compat "vddk-config"),
|
|
|
a034fe |
@@ -588,6 +587,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 |
|
|
|
a034fe |
diff --git a/v2v/virt-v2v-output-local.pod b/v2v/virt-v2v-output-local.pod
|
|
|
a034fe |
index 7427b1ed7..455d51fba 100644
|
|
|
a034fe |
--- a/v2v/virt-v2v-output-local.pod
|
|
|
a034fe |
+++ b/v2v/virt-v2v-output-local.pod
|
|
|
a034fe |
@@ -9,7 +9,7 @@ or libvirt
|
|
|
a034fe |
|
|
|
a034fe |
virt-v2v [-i* options] -o local -os DIRECTORY
|
|
|
a034fe |
|
|
|
a034fe |
- virt-v2v [-i* options] -o qemu -os DIRECTORY [--qemu-boot]
|
|
|
a034fe |
+ virt-v2v [-i* options] -o qemu -os DIRECTORY
|
|
|
a034fe |
|
|
|
a034fe |
virt-v2v [-i* options] -o null
|
|
|
a034fe |
|
|
|
a034fe |
@@ -47,12 +47,10 @@ where C<NAME> is the guest name.
|
|
|
a034fe |
|
|
|
a034fe |
=item B<-o qemu -os> C<DIRECTORY>
|
|
|
a034fe |
|
|
|
a034fe |
-=item B<-o qemu -os> C<DIRECTORY> B<--qemu-boot>
|
|
|
a034fe |
-
|
|
|
a034fe |
This converts the guest to files in C<DIRECTORY>. Unlike I<-o local>
|
|
|
a034fe |
above, a shell script is created which contains the raw qemu command
|
|
|
a034fe |
you would need to boot the guest. However the shell script is not
|
|
|
a034fe |
-run, I<unless> you also add the I<--qemu-boot> option.
|
|
|
a034fe |
+run.
|
|
|
a034fe |
|
|
|
a034fe |
=item B<-o null>
|
|
|
a034fe |
|
|
|
0d20ef |
diff --git a/v2v/virt-v2v.pod b/v2v/virt-v2v.pod
|
|
|
a034fe |
index cf9464834..0e9627829 100644
|
|
|
0d20ef |
--- a/v2v/virt-v2v.pod
|
|
|
0d20ef |
+++ b/v2v/virt-v2v.pod
|
|
|
a034fe |
@@ -142,11 +142,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 |
-
|
|
|
a034fe |
=head1 OPTIONS
|
|
|
0d20ef |
|
|
|
a034fe |
=over 4
|
|
|
a034fe |
@@ -480,9 +475,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>.
|
|
|
a034fe |
@@ -758,11 +750,6 @@ Print information about the source guest and stop. This option is
|
|
|
0d20ef |
useful when you are setting up network and bridge maps.
|
|
|
a034fe |
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 |
--
|
|
|
a034fe |
2.21.0
|
|
|
0d20ef |
|