2023-01-20 10:46:04 +00:00
|
|
|
|
From 5264e777d8cec0a5537c0a05eb855a1421fb7d0b Mon Sep 17 00:00:00 2001
|
2021-05-07 12:41:15 +00:00
|
|
|
|
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
|
|
|
Date: Tue, 30 Sep 2014 10:50:27 +0100
|
2021-11-16 13:37:34 +00:00
|
|
|
|
Subject: [PATCH] RHEL: v2v: Disable the --qemu-boot / -oo qemu-boot option
|
2021-06-30 11:00:38 +00:00
|
|
|
|
(RHBZ#1147313).
|
2021-05-07 12:41:15 +00:00
|
|
|
|
|
|
|
|
|
This cannot work because there is no Gtk or SDL output mode
|
|
|
|
|
in RHEL's qemu-kvm.
|
|
|
|
|
|
|
|
|
|
In addition you will have to edit the -display option in the
|
|
|
|
|
qemu script.
|
|
|
|
|
---
|
|
|
|
|
docs/virt-v2v-output-local.pod | 6 ++----
|
2021-11-16 13:37:34 +00:00
|
|
|
|
docs/virt-v2v.pod | 12 ------------
|
2021-12-03 17:34:43 +00:00
|
|
|
|
output/output_qemu.ml | 3 +++
|
2021-12-02 10:46:00 +00:00
|
|
|
|
v2v/v2v.ml | 2 --
|
2021-11-16 13:37:34 +00:00
|
|
|
|
4 files changed, 5 insertions(+), 18 deletions(-)
|
2021-05-07 12:41:15 +00:00
|
|
|
|
|
|
|
|
|
diff --git a/docs/virt-v2v-output-local.pod b/docs/virt-v2v-output-local.pod
|
2022-04-12 11:17:50 +00:00
|
|
|
|
index d2a1c270..0be37f5e 100644
|
2021-05-07 12:41:15 +00:00
|
|
|
|
--- a/docs/virt-v2v-output-local.pod
|
|
|
|
|
+++ b/docs/virt-v2v-output-local.pod
|
|
|
|
|
@@ -9,7 +9,7 @@ or libvirt
|
|
|
|
|
|
|
|
|
|
virt-v2v [-i* options] -o local -os DIRECTORY
|
|
|
|
|
|
|
|
|
|
- virt-v2v [-i* options] -o qemu -os DIRECTORY [--qemu-boot]
|
|
|
|
|
+ virt-v2v [-i* options] -o qemu -os DIRECTORY
|
|
|
|
|
|
2022-04-12 11:17:50 +00:00
|
|
|
|
virt-v2v [-i* options] -o null
|
|
|
|
|
|
|
|
|
|
@@ -47,12 +47,10 @@ where C<NAME> is the guest name.
|
2021-05-07 12:41:15 +00:00
|
|
|
|
|
|
|
|
|
=item B<-o qemu -os> C<DIRECTORY>
|
|
|
|
|
|
|
|
|
|
-=item B<-o qemu -os> C<DIRECTORY> B<--qemu-boot>
|
|
|
|
|
-
|
|
|
|
|
This converts the guest to files in C<DIRECTORY>. Unlike I<-o local>
|
|
|
|
|
above, a shell script is created which contains the raw qemu command
|
|
|
|
|
you would need to boot the guest. However the shell script is not
|
|
|
|
|
-run, I<unless> you also add the I<--qemu-boot> option.
|
|
|
|
|
+run.
|
|
|
|
|
|
2022-04-12 11:17:50 +00:00
|
|
|
|
=item B<-o null>
|
2021-05-07 12:41:15 +00:00
|
|
|
|
|
|
|
|
|
diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod
|
2023-01-10 15:23:53 +00:00
|
|
|
|
index b458607d..246408e7 100644
|
2021-05-07 12:41:15 +00:00
|
|
|
|
--- a/docs/virt-v2v.pod
|
|
|
|
|
+++ b/docs/virt-v2v.pod
|
2023-01-10 15:23:53 +00:00
|
|
|
|
@@ -144,11 +144,6 @@ Since F<guest-domain.xml> contains the path(s) to the guest disk
|
2021-05-07 12:41:15 +00:00
|
|
|
|
image(s) you do not need to specify the name of the disk image on the
|
|
|
|
|
command line.
|
|
|
|
|
|
|
|
|
|
-To convert a local disk image and immediately boot it in local
|
|
|
|
|
-qemu, do:
|
|
|
|
|
-
|
2021-11-16 13:37:34 +00:00
|
|
|
|
- virt-v2v -i disk disk.img -o qemu -os /var/tmp -oo qemu-boot
|
2021-05-07 12:41:15 +00:00
|
|
|
|
-
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
|
|
|
|
|
=over 4
|
2023-01-10 15:23:53 +00:00
|
|
|
|
@@ -507,9 +502,6 @@ This is similar to I<-o local>, except that a shell script is written
|
2021-05-07 12:41:15 +00:00
|
|
|
|
which you can use to boot the guest in qemu. The converted disks and
|
|
|
|
|
shell script are written to the directory specified by I<-os>.
|
|
|
|
|
|
2021-11-16 13:37:34 +00:00
|
|
|
|
-When using this output mode, you can also specify the I<-oo qemu-boot>
|
2021-05-07 12:41:15 +00:00
|
|
|
|
-option which boots the guest under qemu immediately.
|
|
|
|
|
-
|
|
|
|
|
=item B<-o> B<rhev>
|
|
|
|
|
|
|
|
|
|
This is the same as I<-o rhv>.
|
2023-01-10 15:23:53 +00:00
|
|
|
|
@@ -763,10 +755,6 @@ Print information about the source guest and stop. This option is
|
2021-05-07 12:41:15 +00:00
|
|
|
|
useful when you are setting up network and bridge maps.
|
|
|
|
|
See L</Networks and bridges>.
|
|
|
|
|
|
|
|
|
|
-=item B<--qemu-boot>
|
|
|
|
|
-
|
2021-11-16 13:37:34 +00:00
|
|
|
|
-This is the same as I<-oo qemu-boot>.
|
2021-05-07 12:41:15 +00:00
|
|
|
|
-
|
|
|
|
|
=item B<-q>
|
|
|
|
|
|
|
|
|
|
=item B<--quiet>
|
2021-12-03 17:34:43 +00:00
|
|
|
|
diff --git a/output/output_qemu.ml b/output/output_qemu.ml
|
2023-01-20 10:46:04 +00:00
|
|
|
|
index 3a57a009..4be9b650 100644
|
2021-12-03 17:34:43 +00:00
|
|
|
|
--- a/output/output_qemu.ml
|
|
|
|
|
+++ b/output/output_qemu.ml
|
2023-01-10 15:23:53 +00:00
|
|
|
|
@@ -65,6 +65,9 @@ module QEMU = struct
|
|
|
|
|
let compressed = !compressed
|
|
|
|
|
and qemu_boot = !qemu_boot in
|
2021-12-02 10:46:00 +00:00
|
|
|
|
|
2022-02-14 17:02:53 +00:00
|
|
|
|
+ if qemu_boot then
|
|
|
|
|
+ error (f_"-o qemu: the -oo qemu-boot option cannot be used in RHEL");
|
2021-12-02 10:46:00 +00:00
|
|
|
|
+
|
2022-02-14 17:02:53 +00:00
|
|
|
|
(* -os must be set to a directory. *)
|
|
|
|
|
let output_storage =
|
|
|
|
|
match options.output_storage with
|
2021-12-02 10:46:00 +00:00
|
|
|
|
diff --git a/v2v/v2v.ml b/v2v/v2v.ml
|
2023-01-20 10:46:04 +00:00
|
|
|
|
index 1e8d03ef..754f2833 100644
|
2021-12-02 10:46:00 +00:00
|
|
|
|
--- a/v2v/v2v.ml
|
|
|
|
|
+++ b/v2v/v2v.ml
|
2023-01-20 10:46:04 +00:00
|
|
|
|
@@ -272,8 +272,6 @@ let rec main () =
|
2021-12-02 10:46:00 +00:00
|
|
|
|
s_"Same as ‘-ip filename’";
|
|
|
|
|
[ L"print-source" ], Getopt.Set print_source,
|
|
|
|
|
s_"Print source and stop";
|
|
|
|
|
- [ L"qemu-boot" ], Getopt.Unit (fun () -> set_output_option_compat "qemu-boot" ""),
|
|
|
|
|
- s_"Boot in qemu (-o qemu only)";
|
|
|
|
|
[ L"root" ], Getopt.String ("ask|... ", set_root_choice),
|
|
|
|
|
s_"How to choose root filesystem";
|
|
|
|
|
[ L"vddk-config" ], Getopt.String ("filename", set_input_option_compat "vddk-config"),
|