New upstream stable branch version 2.0.0
New virt-v2v-in-place and release notes man pages. Remove the RHEL (downstream) patches which are out of date.
This commit is contained in:
parent
1dc352f4e4
commit
ba3ddbc065
|
@ -1,33 +0,0 @@
|
||||||
From f417ca536219b151284a5a0e28698bfa19a5c160 Mon Sep 17 00:00:00 2001
|
|
||||||
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
||||||
Date: Sun, 28 Sep 2014 19:14:43 +0100
|
|
||||||
Subject: [PATCH 1/8] RHEL: v2v: Select correct qemu binary for -o qemu mode
|
|
||||||
(RHBZ#1147313).
|
|
||||||
|
|
||||||
RHEL does not have qemu-system-x86_64 (etc), and in addition the
|
|
||||||
qemu binary is located in /usr/libexec. Encode the path to this
|
|
||||||
binary directly in the script.
|
|
||||||
|
|
||||||
Note that we don't support people running qemu directly like this.
|
|
||||||
It's just for quick testing of converted VMs, and to help us with
|
|
||||||
support cases.
|
|
||||||
---
|
|
||||||
output/output.ml | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/output/output.ml b/output/output.ml
|
|
||||||
index 9c2d8853..92b03525 100644
|
|
||||||
--- a/output/output.ml
|
|
||||||
+++ b/output/output.ml
|
|
||||||
@@ -1413,7 +1413,7 @@ and qemu_finalize dir source inspect target_meta
|
|
||||||
* module deals with shell and qemu comma quoting.
|
|
||||||
*)
|
|
||||||
let cmd = Qemuopts.create () in
|
|
||||||
- Qemuopts.set_binary_by_arch cmd (Some guestcaps.gcaps_arch);
|
|
||||||
+ Qemuopts.set_binary cmd "/usr/libexec/qemu-kvm";
|
|
||||||
|
|
||||||
let flag = Qemuopts.flag cmd
|
|
||||||
and arg = Qemuopts.arg cmd
|
|
||||||
--
|
|
||||||
2.31.1
|
|
||||||
|
|
|
@ -1,112 +0,0 @@
|
||||||
From 00490feb06496ad4bf22dbc5493a7cf186476e9f Mon Sep 17 00:00:00 2001
|
|
||||||
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
||||||
Date: Tue, 30 Sep 2014 10:50:27 +0100
|
|
||||||
Subject: [PATCH 2/8] RHEL: v2v: Disable the --qemu-boot / -oo qemu-boot option
|
|
||||||
(RHBZ#1147313).
|
|
||||||
|
|
||||||
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 ++----
|
|
||||||
docs/virt-v2v.pod | 12 ------------
|
|
||||||
output/output.ml | 3 +++
|
|
||||||
v2v/v2v.ml | 2 --
|
|
||||||
4 files changed, 5 insertions(+), 18 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/docs/virt-v2v-output-local.pod b/docs/virt-v2v-output-local.pod
|
|
||||||
index a5f155cb..3a2e6238 100644
|
|
||||||
--- 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
|
|
||||||
|
|
||||||
virt-v2v [-i* options] -o json -os DIRECTORY
|
|
||||||
[-oo json-disks-pattern=PATTERN]
|
|
||||||
@@ -50,12 +50,10 @@ where C<NAME> is the guest name.
|
|
||||||
|
|
||||||
=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.
|
|
||||||
|
|
||||||
=item B<-o json -os> C<DIRECTORY>
|
|
||||||
|
|
||||||
diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod
|
|
||||||
index b25d678d..0a47b611 100644
|
|
||||||
--- a/docs/virt-v2v.pod
|
|
||||||
+++ b/docs/virt-v2v.pod
|
|
||||||
@@ -141,11 +141,6 @@ Since F<guest-domain.xml> contains the path(s) to the guest disk
|
|
||||||
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:
|
|
||||||
-
|
|
||||||
- virt-v2v -i disk disk.img -o qemu -os /var/tmp -oo qemu-boot
|
|
||||||
-
|
|
||||||
=head1 OPTIONS
|
|
||||||
|
|
||||||
=over 4
|
|
||||||
@@ -511,9 +506,6 @@ This is similar to I<-o local>, except that a shell script is written
|
|
||||||
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>.
|
|
||||||
|
|
||||||
-When using this output mode, you can also specify the I<-oo qemu-boot>
|
|
||||||
-option which boots the guest under qemu immediately.
|
|
||||||
-
|
|
||||||
=item B<-o> B<rhev>
|
|
||||||
|
|
||||||
This is the same as I<-o rhv>.
|
|
||||||
@@ -769,10 +761,6 @@ Print information about the source guest and stop. This option is
|
|
||||||
useful when you are setting up network and bridge maps.
|
|
||||||
See L</Networks and bridges>.
|
|
||||||
|
|
||||||
-=item B<--qemu-boot>
|
|
||||||
-
|
|
||||||
-This is the same as I<-oo qemu-boot>.
|
|
||||||
-
|
|
||||||
=item B<-q>
|
|
||||||
|
|
||||||
=item B<--quiet>
|
|
||||||
diff --git a/output/output.ml b/output/output.ml
|
|
||||||
index 92b03525..1414a521 100644
|
|
||||||
--- a/output/output.ml
|
|
||||||
+++ b/output/output.ml
|
|
||||||
@@ -1346,6 +1346,9 @@ and qemu_parse_options cmdline =
|
|
||||||
) cmdline.output_options;
|
|
||||||
let qemu_boot = !qemu_boot in
|
|
||||||
|
|
||||||
+ if qemu_boot then
|
|
||||||
+ error (f_"-o qemu: the -oo qemu-boot option cannot be used in RHEL");
|
|
||||||
+
|
|
||||||
(* -os must be set to a directory. *)
|
|
||||||
let output_storage =
|
|
||||||
match cmdline.output_storage with
|
|
||||||
diff --git a/v2v/v2v.ml b/v2v/v2v.ml
|
|
||||||
index a88e0509..1104295c 100644
|
|
||||||
--- a/v2v/v2v.ml
|
|
||||||
+++ b/v2v/v2v.ml
|
|
||||||
@@ -218,8 +218,6 @@ let rec main () =
|
|
||||||
s_"Same as ‘-ip filename’";
|
|
||||||
[ L"print-source" ], Getopt.Set print_source,
|
|
||||||
s_"Print source and stop";
|
|
||||||
- [ L"qemu-boot" ], Getopt.Unit (fun () -> add_o_option "-oo" "qemu-boot"),
|
|
||||||
- s_"Boot in qemu (-o qemu only)";
|
|
||||||
[ L"root" ], Getopt.String ("ask|... ", add_conv_option "--root"),
|
|
||||||
s_"How to choose root filesystem";
|
|
||||||
[ L"vddk-config" ], Getopt.String ("filename", set_input_option_compat "vddk-config"),
|
|
||||||
--
|
|
||||||
2.31.1
|
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
From 539e158e5dffdb0324a89b2a059b44ae51d2cc29 Mon Sep 17 00:00:00 2001
|
|
||||||
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
||||||
Date: Fri, 24 Apr 2015 09:45:41 -0400
|
|
||||||
Subject: [PATCH 3/8] RHEL: Fix list of supported sound cards to match RHEL
|
|
||||||
qemu (RHBZ#1176493).
|
|
||||||
|
|
||||||
---
|
|
||||||
lib/utils.ml | 5 +++--
|
|
||||||
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/lib/utils.ml b/lib/utils.ml
|
|
||||||
index 1eac3f3f..a478fc33 100644
|
|
||||||
--- a/lib/utils.ml
|
|
||||||
+++ b/lib/utils.ml
|
|
||||||
@@ -59,13 +59,14 @@ let kvm_arch = function
|
|
||||||
(* Does qemu support the given sound card? *)
|
|
||||||
let qemu_supports_sound_card = function
|
|
||||||
| Types.AC97
|
|
||||||
- | Types.ES1370
|
|
||||||
| Types.ICH6
|
|
||||||
| Types.ICH9
|
|
||||||
| Types.PCSpeaker
|
|
||||||
+ -> true
|
|
||||||
+ | Types.ES1370
|
|
||||||
| Types.SB16
|
|
||||||
| Types.USBAudio
|
|
||||||
- -> true
|
|
||||||
+ -> false
|
|
||||||
|
|
||||||
(* Find the UEFI firmware. *)
|
|
||||||
let find_uefi_firmware guest_arch =
|
|
||||||
--
|
|
||||||
2.31.1
|
|
||||||
|
|
|
@ -1,104 +0,0 @@
|
||||||
From b4bab3eda2afabadcbf2e07501eab2049d1a3133 Mon Sep 17 00:00:00 2001
|
|
||||||
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
||||||
Date: Sun, 30 Aug 2015 03:21:57 -0400
|
|
||||||
Subject: [PATCH 4/8] RHEL: Fixes for libguestfs-winsupport.
|
|
||||||
|
|
||||||
In tests we cannot use guestfish for arbitrary Windows edits.
|
|
||||||
In virt-v2v helpers we must set the program name to virt-v2v.
|
|
||||||
---
|
|
||||||
convert/convert.ml | 1 +
|
|
||||||
convert/windows_virtio.ml | 1 +
|
|
||||||
test-data/phony-guests/make-windows-img.sh | 1 +
|
|
||||||
tests/test-v2v-virtio-win-iso.sh | 8 +++++++-
|
|
||||||
tests/test-v2v-windows-conversion.sh | 8 +++++++-
|
|
||||||
5 files changed, 17 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/convert/convert.ml b/convert/convert.ml
|
|
||||||
index 07c7aee9..a4b0c60e 100644
|
|
||||||
--- a/convert/convert.ml
|
|
||||||
+++ b/convert/convert.ml
|
|
||||||
@@ -190,6 +190,7 @@ helper-v2v-convert V2VDIR
|
|
||||||
|
|
||||||
message (f_"Opening the source");
|
|
||||||
let g = open_guestfs ~identifier:"v2v" () in
|
|
||||||
+ g#set_program "virt-v2v";
|
|
||||||
g#set_memsize (g#get_memsize () * 2);
|
|
||||||
(* Setting the number of vCPUs allows parallel mkinitrd, but make
|
|
||||||
* sure this is not too large because each vCPU consumes guest RAM.
|
|
||||||
diff --git a/convert/windows_virtio.ml b/convert/windows_virtio.ml
|
|
||||||
index f843dae2..6623d03d 100644
|
|
||||||
--- a/convert/windows_virtio.ml
|
|
||||||
+++ b/convert/windows_virtio.ml
|
|
||||||
@@ -356,6 +356,7 @@ and copy_from_virtio_win g inspect srcdir destdir filter missing =
|
|
||||||
let g2 =
|
|
||||||
try
|
|
||||||
let g2 = open_guestfs ~identifier:"virtio_win" () in
|
|
||||||
+ g#set_program "virt-v2v";
|
|
||||||
g2#add_drive_opts virtio_win ~readonly:true;
|
|
||||||
g2#launch ();
|
|
||||||
g2
|
|
||||||
diff --git a/test-data/phony-guests/make-windows-img.sh b/test-data/phony-guests/make-windows-img.sh
|
|
||||||
index 30908a91..73cf5144 100755
|
|
||||||
--- a/test-data/phony-guests/make-windows-img.sh
|
|
||||||
+++ b/test-data/phony-guests/make-windows-img.sh
|
|
||||||
@@ -37,6 +37,7 @@ fi
|
|
||||||
|
|
||||||
# Create a disk image.
|
|
||||||
guestfish <<EOF
|
|
||||||
+set-program virt-testing
|
|
||||||
sparse windows.img-t 512M
|
|
||||||
run
|
|
||||||
|
|
||||||
diff --git a/tests/test-v2v-virtio-win-iso.sh b/tests/test-v2v-virtio-win-iso.sh
|
|
||||||
index 69f6f414..b9b806fb 100755
|
|
||||||
--- a/tests/test-v2v-virtio-win-iso.sh
|
|
||||||
+++ b/tests/test-v2v-virtio-win-iso.sh
|
|
||||||
@@ -82,6 +82,12 @@ mktest ()
|
|
||||||
:> "$script"
|
|
||||||
:> "$expected"
|
|
||||||
|
|
||||||
+cat >> "$script" <<EOF
|
|
||||||
+ set-program virt-testing
|
|
||||||
+ run
|
|
||||||
+ mount /dev/sda2 /
|
|
||||||
+EOF
|
|
||||||
+
|
|
||||||
firstboot_dir="/Program Files/Guestfs/Firstboot"
|
|
||||||
mktest "is-dir \"$firstboot_dir\"" true
|
|
||||||
mktest "is-file \"$firstboot_dir/firstboot.bat\"" true
|
|
||||||
@@ -94,5 +100,5 @@ for drv in netkvm vioscsi viostor; do
|
|
||||||
done
|
|
||||||
done
|
|
||||||
|
|
||||||
-guestfish --ro -a "$d/windows-sda" -i < "$script" > "$response"
|
|
||||||
+guestfish --ro -a "$d/windows-sda" < "$script" > "$response"
|
|
||||||
diff -u "$expected" "$response"
|
|
||||||
diff --git a/tests/test-v2v-windows-conversion.sh b/tests/test-v2v-windows-conversion.sh
|
|
||||||
index aeab9a48..4b422c5b 100755
|
|
||||||
--- a/tests/test-v2v-windows-conversion.sh
|
|
||||||
+++ b/tests/test-v2v-windows-conversion.sh
|
|
||||||
@@ -76,6 +76,12 @@ mktest ()
|
|
||||||
:> "$script"
|
|
||||||
:> "$expected"
|
|
||||||
|
|
||||||
+cat >> "$script" <<EOF
|
|
||||||
+ set-program virt-testing
|
|
||||||
+ run
|
|
||||||
+ mount /dev/sda2 /
|
|
||||||
+EOF
|
|
||||||
+
|
|
||||||
firstboot_dir="/Program Files/Guestfs/Firstboot"
|
|
||||||
mktest "is-dir \"$firstboot_dir\"" true
|
|
||||||
mktest "is-file \"$firstboot_dir/firstboot.bat\"" true
|
|
||||||
@@ -88,7 +94,7 @@ for drv in netkvm qxl vioscsi viostor; do
|
|
||||||
done
|
|
||||||
done
|
|
||||||
|
|
||||||
-guestfish --ro -a "$d/windows-sda" -i < "$script" > "$response"
|
|
||||||
+guestfish --ro -a "$d/windows-sda" < "$script" > "$response"
|
|
||||||
diff -u "$expected" "$response"
|
|
||||||
|
|
||||||
# We also update the Registry several times, for firstboot, and (ONLY
|
|
||||||
--
|
|
||||||
2.31.1
|
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
From 4022a90a8974147000fb5053d7596066db1b82b9 Mon Sep 17 00:00:00 2001
|
|
||||||
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
||||||
Date: Thu, 2 Mar 2017 14:21:37 +0100
|
|
||||||
Subject: [PATCH 5/8] RHEL: v2v: -i disk: force VNC as display (RHBZ#1372671)
|
|
||||||
|
|
||||||
The SDL output mode is not supported in RHEL's qemu-kvm.
|
|
||||||
---
|
|
||||||
input/input.ml | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/input/input.ml b/input/input.ml
|
|
||||||
index a8416eaf..9175a531 100644
|
|
||||||
--- a/input/input.ml
|
|
||||||
+++ b/input/input.ml
|
|
||||||
@@ -270,7 +270,7 @@ and disk_source cmdline args =
|
|
||||||
s_features = [ "acpi"; "apic"; "pae" ];
|
|
||||||
s_firmware = UnknownFirmware; (* causes virt-v2v to autodetect *)
|
|
||||||
s_display =
|
|
||||||
- Some { s_display_type = Window; s_keymap = None; s_password = None;
|
|
||||||
+ Some { s_display_type = VNC; s_keymap = None; s_password = None;
|
|
||||||
s_listen = LNoListen; s_port = None };
|
|
||||||
s_video = None;
|
|
||||||
s_sound = None;
|
|
||||||
--
|
|
||||||
2.31.1
|
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
From 7f77cb4a56eb8dcd26db9e81e0fb2f41777129c3 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Pino Toscano <ptoscano@redhat.com>
|
|
||||||
Date: Wed, 8 Mar 2017 11:03:40 +0100
|
|
||||||
Subject: [PATCH 6/8] RHEL: v2v: do not mention SUSE Xen hosts (RHBZ#1430203)
|
|
||||||
|
|
||||||
They are not supported in RHEL.
|
|
||||||
---
|
|
||||||
docs/virt-v2v-input-xen.pod | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/docs/virt-v2v-input-xen.pod b/docs/virt-v2v-input-xen.pod
|
|
||||||
index cd3210bf..e9f336a9 100644
|
|
||||||
--- a/docs/virt-v2v-input-xen.pod
|
|
||||||
+++ b/docs/virt-v2v-input-xen.pod
|
|
||||||
@@ -12,7 +12,7 @@ virt-v2v-input-xen - Using virt-v2v to convert guests from Xen
|
|
||||||
=head1 DESCRIPTION
|
|
||||||
|
|
||||||
This page documents how to use L<virt-v2v(1)> to convert guests from
|
|
||||||
-RHEL 5 Xen, or SLES and OpenSUSE Xen hosts.
|
|
||||||
+RHEL 5 Xen hosts.
|
|
||||||
|
|
||||||
=head1 INPUT FROM XEN
|
|
||||||
|
|
||||||
--
|
|
||||||
2.31.1
|
|
||||||
|
|
|
@ -1,127 +0,0 @@
|
||||||
From a4db166d7a5c480c765ee74340463db800533c73 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Pino Toscano <ptoscano@redhat.com>
|
|
||||||
Date: Tue, 26 Mar 2019 09:42:25 +0100
|
|
||||||
Subject: [PATCH 7/8] RHEL: point to KB for supported v2v hypervisors/guests
|
|
||||||
|
|
||||||
---
|
|
||||||
docs/virt-v2v-support.pod | 104 ++------------------------------------
|
|
||||||
1 file changed, 4 insertions(+), 100 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/docs/virt-v2v-support.pod b/docs/virt-v2v-support.pod
|
|
||||||
index 9815f51f..1ffc0f9d 100644
|
|
||||||
--- a/docs/virt-v2v-support.pod
|
|
||||||
+++ b/docs/virt-v2v-support.pod
|
|
||||||
@@ -8,106 +8,10 @@ systems and guests in virt-v2v
|
|
||||||
This page documents which foreign hypervisors, virtualization
|
|
||||||
management systems and guest types that L<virt-v2v(1)> can support.
|
|
||||||
|
|
||||||
-Note this page applies to upstream virt-v2v from
|
|
||||||
-L<http://libguestfs.org> and in downstream distributions of virt-v2v
|
|
||||||
-sometimes features are intentionally removed, or are present but not
|
|
||||||
-supported.
|
|
||||||
-
|
|
||||||
-=head2 Hypervisors (Input)
|
|
||||||
-
|
|
||||||
-=over 4
|
|
||||||
-
|
|
||||||
-=item VMware ESXi
|
|
||||||
-
|
|
||||||
-Must be managed by VMware vCenter E<ge> 5.0 unless VDDK is available.
|
|
||||||
-
|
|
||||||
-=item OVA exported from VMware
|
|
||||||
-
|
|
||||||
-OVAs from other hypervisors will not work.
|
|
||||||
-
|
|
||||||
-=item VMX from VMware
|
|
||||||
-
|
|
||||||
-VMX files generated by other hypervisors will not work.
|
|
||||||
-
|
|
||||||
-=item RHEL 5 Xen
|
|
||||||
-
|
|
||||||
-=item SUSE Xen
|
|
||||||
-
|
|
||||||
-=item Citrix Xen
|
|
||||||
-
|
|
||||||
-Citrix Xen has not been recently tested.
|
|
||||||
-
|
|
||||||
-=item Hyper-V
|
|
||||||
-
|
|
||||||
-Not recently tested. Requires that you export the disk or use
|
|
||||||
-L<virt-p2v(1)> on Hyper-V.
|
|
||||||
-
|
|
||||||
-=item Direct from disk images
|
|
||||||
-
|
|
||||||
-Only disk images exported from supported hypervisors, and using
|
|
||||||
-container formats supported by qemu.
|
|
||||||
-
|
|
||||||
-=item Physical machines
|
|
||||||
-
|
|
||||||
-Using the L<virt-p2v(1)> tool.
|
|
||||||
-
|
|
||||||
-=back
|
|
||||||
-
|
|
||||||
-=head2 Hypervisors (Output)
|
|
||||||
-
|
|
||||||
-QEMU and KVM only.
|
|
||||||
-
|
|
||||||
-=head2 Virtualization management systems (Output)
|
|
||||||
-
|
|
||||||
-=over 4
|
|
||||||
-
|
|
||||||
-=item OpenStack
|
|
||||||
-
|
|
||||||
-=item Red Hat Virtualization (RHV) 4.1 and up
|
|
||||||
-
|
|
||||||
-=item Local libvirt
|
|
||||||
-
|
|
||||||
-And hence L<virsh(1)>, L<virt-manager(1)>, and similar tools.
|
|
||||||
-
|
|
||||||
-=item Local disk
|
|
||||||
-
|
|
||||||
-=back
|
|
||||||
-
|
|
||||||
-=head2 Guests
|
|
||||||
-
|
|
||||||
-=over 4
|
|
||||||
-
|
|
||||||
-=item Red Hat Enterprise Linux 3, 4, 5, 6, 7
|
|
||||||
-
|
|
||||||
-=item CentOS 3, 4, 5, 6, 7
|
|
||||||
-
|
|
||||||
-=item Scientific Linux 3, 4, 5, 6, 7
|
|
||||||
-
|
|
||||||
-=item Oracle Linux
|
|
||||||
-
|
|
||||||
-=item Fedora
|
|
||||||
-
|
|
||||||
-=item SLES 10 and up
|
|
||||||
-
|
|
||||||
-=item OpenSUSE 10 and up
|
|
||||||
-
|
|
||||||
-=item ALT Linux 9 and up
|
|
||||||
-
|
|
||||||
-=item Debian 6 and up
|
|
||||||
-
|
|
||||||
-=item Ubuntu 10.04, 12.04, 14.04, 16.04, and up
|
|
||||||
-
|
|
||||||
-=item Windows XP to Windows 10 / Windows Server 2016
|
|
||||||
-
|
|
||||||
-We use Windows internal version numbers, see
|
|
||||||
-L<https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions>
|
|
||||||
-
|
|
||||||
-Currently NT 5.2 to NT 6.3 are supported.
|
|
||||||
-
|
|
||||||
-See L</WINDOWS> below for additional notes on converting Windows
|
|
||||||
-guests.
|
|
||||||
-
|
|
||||||
-=back
|
|
||||||
+For more information on supported hypervisors, and guest types in
|
|
||||||
+RHEL, please consult the following Knowledgebase article on these
|
|
||||||
+Red Hat Customer Portal:
|
|
||||||
+L<https://access.redhat.com/articles/1351473>.
|
|
||||||
|
|
||||||
=head2 Guest firmware
|
|
||||||
|
|
||||||
--
|
|
||||||
2.31.1
|
|
||||||
|
|
|
@ -1,176 +0,0 @@
|
||||||
From f801f4a34f9b136e2cb5af3b936948f1ecb88154 Mon Sep 17 00:00:00 2001
|
|
||||||
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
||||||
Date: Wed, 30 Jun 2021 11:15:52 +0100
|
|
||||||
Subject: [PATCH 8/8] RHEL 9: Disable -o glance
|
|
||||||
|
|
||||||
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1977539
|
|
||||||
---
|
|
||||||
docs/virt-v2v-output-openstack.pod | 56 ++----------------------------
|
|
||||||
docs/virt-v2v.pod | 20 -----------
|
|
||||||
output/output.ml | 3 +-
|
|
||||||
tests/test-v2v-o-glance.sh | 3 ++
|
|
||||||
4 files changed, 7 insertions(+), 75 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/docs/virt-v2v-output-openstack.pod b/docs/virt-v2v-output-openstack.pod
|
|
||||||
index f5a3abad..1ab356e8 100644
|
|
||||||
--- a/docs/virt-v2v-output-openstack.pod
|
|
||||||
+++ b/docs/virt-v2v-output-openstack.pod
|
|
||||||
@@ -10,13 +10,10 @@ virt-v2v-output-openstack - Using virt-v2v to convert guests to OpenStack
|
|
||||||
[-oo verify-server-certificate=false]
|
|
||||||
[-oo os-username=admin] [-oo os-*=*]
|
|
||||||
|
|
||||||
- virt-v2v [-i* options] -o glance
|
|
||||||
-
|
|
||||||
=head1 DESCRIPTION
|
|
||||||
|
|
||||||
This page documents how to use L<virt-v2v(1)> to convert guests to run
|
|
||||||
-on OpenStack. There are two output modes you can select, but only
|
|
||||||
-I<-o openstack> should be used normally.
|
|
||||||
+on OpenStack.
|
|
||||||
|
|
||||||
=over 4
|
|
||||||
|
|
||||||
@@ -27,15 +24,6 @@ Full description: L</OUTPUT TO OPENSTACK>
|
|
||||||
This is the modern method for uploading to OpenStack via the REST API.
|
|
||||||
Guests can be directly converted into Cinder volumes.
|
|
||||||
|
|
||||||
-=item B<-o glance>
|
|
||||||
-
|
|
||||||
-Full description: L</OUTPUT TO GLANCE>
|
|
||||||
-
|
|
||||||
-This is the old method for uploading to Glance. Unfortunately Glance
|
|
||||||
-is not well suited to storing converted guests (since virt-v2v deals
|
|
||||||
-with "pets" not templated "cattle"), so this method is not recommended
|
|
||||||
-unless you really know what you are doing.
|
|
||||||
-
|
|
||||||
=back
|
|
||||||
|
|
||||||
=head1 OUTPUT TO OPENSTACK
|
|
||||||
@@ -170,50 +158,10 @@ no Cinder volume type is used.
|
|
||||||
The following options are B<not> supported with OpenStack: I<-oa>,
|
|
||||||
I<-of>.
|
|
||||||
|
|
||||||
-=head1 OUTPUT TO GLANCE
|
|
||||||
-
|
|
||||||
-Note this is a legacy option. In most cases you should use
|
|
||||||
-L</OUTPUT TO OPENSTACK> instead.
|
|
||||||
-
|
|
||||||
-To output to OpenStack Glance, use the I<-o glance> option.
|
|
||||||
-
|
|
||||||
-This runs the L<glance(1)> CLI program which must be installed on the
|
|
||||||
-virt-v2v conversion host. For authentication to work, you will need
|
|
||||||
-to set C<OS_*> environment variables.
|
|
||||||
-
|
|
||||||
-Normally there is a file called C<overcloudrc> or C<keystonerc_admin>
|
|
||||||
-which you can simply C<source> to set everything up.
|
|
||||||
-
|
|
||||||
-Virt-v2v adds metadata for the guest to Glance, describing such things
|
|
||||||
-as the guest operating system and what drivers it requires. The
|
|
||||||
-command C<glance image-show> will display the metadata as "Property"
|
|
||||||
-fields such as C<os_type> and C<hw_disk_bus>.
|
|
||||||
-
|
|
||||||
-=head2 Glance and sparseness
|
|
||||||
-
|
|
||||||
-Glance image upload doesn't appear to correctly handle sparseness.
|
|
||||||
-For this reason, using qcow2 will be faster and use less space on the
|
|
||||||
-Glance server. Use the virt-v2v S<I<-of qcow2>> option.
|
|
||||||
-
|
|
||||||
-=head2 Glance and multiple disks
|
|
||||||
-
|
|
||||||
-If the guest has a single disk, then the name of the disk in Glance
|
|
||||||
-will be the name of the guest. You can control this using the I<-on>
|
|
||||||
-option.
|
|
||||||
-
|
|
||||||
-Glance doesn't have a concept of associating multiple disks with a
|
|
||||||
-single guest, and Nova doesn't allow you to boot a guest from multiple
|
|
||||||
-Glance disks either. If the guest has multiple disks, then the first
|
|
||||||
-(assumed to be the system disk) will have the name of the guest, and
|
|
||||||
-the second and subsequent data disks will be called
|
|
||||||
-C<I<guestname>-disk2>, C<I<guestname>-disk3> etc. It may be best to
|
|
||||||
-leave the system disk in Glance, and import the data disks to Cinder.
|
|
||||||
-
|
|
||||||
=head1 SEE ALSO
|
|
||||||
|
|
||||||
L<virt-v2v(1)>,
|
|
||||||
-L<https://docs.openstack.org/python-openstackclient/latest/cli/man/openstack.html>,
|
|
||||||
-L<glance(1)>.
|
|
||||||
+L<https://docs.openstack.org/python-openstackclient/latest/cli/man/openstack.html>.
|
|
||||||
|
|
||||||
=head1 AUTHOR
|
|
||||||
|
|
||||||
diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod
|
|
||||||
index 0a47b611..c70bfef5 100644
|
|
||||||
--- a/docs/virt-v2v.pod
|
|
||||||
+++ b/docs/virt-v2v.pod
|
|
||||||
@@ -432,14 +432,6 @@ See L</Networks and bridges> below.
|
|
||||||
|
|
||||||
This is the same as I<-o local>.
|
|
||||||
|
|
||||||
-=item B<-o> B<glance>
|
|
||||||
-
|
|
||||||
-This is a legacy option. You should probably use I<-o openstack>
|
|
||||||
-instead.
|
|
||||||
-
|
|
||||||
-Set the output method to OpenStack Glance. In this mode the converted
|
|
||||||
-guest is uploaded to Glance. See L<virt-v2v-output-openstack(1)>.
|
|
||||||
-
|
|
||||||
=item B<-o> B<json>
|
|
||||||
|
|
||||||
Set the output method to I<json>.
|
|
||||||
@@ -1163,11 +1155,6 @@ and output methods may use disk space, as outlined in the table below.
|
|
||||||
This temporarily places a full copy of the uncompressed source disks
|
|
||||||
in C<$VIRT_V2V_TMPDIR> (or F</var/tmp>).
|
|
||||||
|
|
||||||
-=item I<-o glance>
|
|
||||||
-
|
|
||||||
-This temporarily places a full copy of the output disks in
|
|
||||||
-C<$VIRT_V2V_TMPDIR> (or F</var/tmp>).
|
|
||||||
-
|
|
||||||
=item I<-o local>
|
|
||||||
|
|
||||||
=item I<-o qemu>
|
|
||||||
@@ -1352,13 +1339,6 @@ instance.
|
|
||||||
Because of how Cinder volumes are presented as F</dev> block devices,
|
|
||||||
using I<-o openstack> normally requires that virt-v2v is run as root.
|
|
||||||
|
|
||||||
-=item Writing to Glance
|
|
||||||
-
|
|
||||||
-This does I<not> need root (in fact it probably won’t work), but may
|
|
||||||
-require either a special user and/or for you to source a script that
|
|
||||||
-sets authentication environment variables. Consult the Glance
|
|
||||||
-documentation.
|
|
||||||
-
|
|
||||||
=item Writing to block devices
|
|
||||||
|
|
||||||
This normally requires root. See the next section.
|
|
||||||
diff --git a/output/output.ml b/output/output.ml
|
|
||||||
index 1414a521..69768ff1 100644
|
|
||||||
--- a/output/output.ml
|
|
||||||
+++ b/output/output.ml
|
|
||||||
@@ -75,7 +75,8 @@ let rec main () =
|
|
||||||
error (f_"%s option used more than once on the command line") "-om";
|
|
||||||
match mode with
|
|
||||||
| "disk" -> output_mode := Some `Disk
|
|
||||||
- | "glance" -> output_mode := Some `Glance
|
|
||||||
+ | "glance" ->
|
|
||||||
+ error(f_"-o glance option has been removed from RHEL 9")
|
|
||||||
| "json" -> output_mode := Some `Json
|
|
||||||
| "libvirt" -> output_mode := Some `Libvirt
|
|
||||||
| "null" -> output_mode := Some `Null
|
|
||||||
diff --git a/tests/test-v2v-o-glance.sh b/tests/test-v2v-o-glance.sh
|
|
||||||
index c0db9115..074b5e16 100755
|
|
||||||
--- a/tests/test-v2v-o-glance.sh
|
|
||||||
+++ b/tests/test-v2v-o-glance.sh
|
|
||||||
@@ -20,6 +20,9 @@
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
+# Feature is disabled in RHEL 9.
|
|
||||||
+exit 77
|
|
||||||
+
|
|
||||||
source ./functions.sh
|
|
||||||
set -e
|
|
||||||
set -x
|
|
||||||
--
|
|
||||||
2.31.1
|
|
||||||
|
|
4
sources
4
sources
|
@ -1,2 +1,2 @@
|
||||||
SHA512 (virt-v2v-1.45.99.tar.gz) = 46fd087e584fee94a95f229ef860220201f75b85cf4cb4137349cc64e447094d5c1db192121095779f99a997336aa547ba7d2aed2d1778e381cd003a8ab83327
|
SHA512 (virt-v2v-2.0.0.tar.gz) = 0ccf9e9141a0166f969383f9e103ffa11fa2ce00a5fbf4ada6c4480b888886a5a149b33d905f0f1947edaec14d16dd89a15ef53dd0cc042b29d473235430f5de
|
||||||
SHA512 (virt-v2v-1.45.99.tar.gz.sig) = d34ca220bc2161357ddf32ccb46117fdbcb98347384e284027a02e67c2ebe9851b1e5deb3e59607d84916bb689dd5e053462d862aff3a813021493fd33f1f1b9
|
SHA512 (virt-v2v-2.0.0.tar.gz.sig) = e1c7e308043951c2aab59d288daa8cfd0da4794f566811b2bab6e138ea511f337e10ab2118973f08df1b29406e1bf12d09591805dd21621a6350b628715a9b99
|
||||||
|
|
|
@ -11,11 +11,11 @@
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# The source directory.
|
# The source directory.
|
||||||
%global source_directory 1.45-development
|
%global source_directory 2.0-stable
|
||||||
|
|
||||||
Name: virt-v2v
|
Name: virt-v2v
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 1.45.99
|
Version: 2.0.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Convert a virtual machine to run on KVM
|
Summary: Convert a virtual machine to run on KVM
|
||||||
|
|
||||||
|
@ -49,18 +49,6 @@ ExcludeArch: %{ix86}
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Downstream (RHEL-only) patches.
|
|
||||||
%if 0%{?rhel}
|
|
||||||
Patch9001: 0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch
|
|
||||||
Patch9002: 0002-RHEL-v2v-Disable-the-qemu-boot-oo-qemu-boot-option-R.patch
|
|
||||||
Patch9003: 0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch
|
|
||||||
Patch9004: 0004-RHEL-Fixes-for-libguestfs-winsupport.patch
|
|
||||||
Patch9005: 0005-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch
|
|
||||||
Patch9006: 0006-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch
|
|
||||||
Patch9007: 0007-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch
|
|
||||||
Patch9008: 0008-RHEL-9-Disable-o-glance.patch
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{patches_touch_autotools}
|
%if 0%{patches_touch_autotools}
|
||||||
BuildRequires: autoconf, automake, libtool
|
BuildRequires: autoconf, automake, libtool
|
||||||
%endif
|
%endif
|
||||||
|
@ -279,10 +267,12 @@ popd
|
||||||
%{_mandir}/man1/virt-v2v-hacking.1*
|
%{_mandir}/man1/virt-v2v-hacking.1*
|
||||||
%{_mandir}/man1/virt-v2v-input-vmware.1*
|
%{_mandir}/man1/virt-v2v-input-vmware.1*
|
||||||
%{_mandir}/man1/virt-v2v-input-xen.1*
|
%{_mandir}/man1/virt-v2v-input-xen.1*
|
||||||
|
%{_mandir}/man1/virt-v2v-in-place.1*
|
||||||
%{_mandir}/man1/virt-v2v-output-local.1*
|
%{_mandir}/man1/virt-v2v-output-local.1*
|
||||||
%{_mandir}/man1/virt-v2v-output-openstack.1*
|
%{_mandir}/man1/virt-v2v-output-openstack.1*
|
||||||
%{_mandir}/man1/virt-v2v-output-rhv.1*
|
%{_mandir}/man1/virt-v2v-output-rhv.1*
|
||||||
%{_mandir}/man1/virt-v2v-release-notes-1.42.1*
|
%{_mandir}/man1/virt-v2v-release-notes-1.42.1*
|
||||||
|
%{_mandir}/man1/virt-v2v-release-notes-2.0.1*
|
||||||
%{_mandir}/man1/virt-v2v-support.1*
|
%{_mandir}/man1/virt-v2v-support.1*
|
||||||
%{_datadir}/virt-tools
|
%{_datadir}/virt-tools
|
||||||
|
|
||||||
|
@ -303,6 +293,11 @@ popd
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 14 2022 Richard W.M. Jones <rjones@redhat.com> - 1:2.0.0-1
|
||||||
|
- New upstream stable branch version 2.0.0
|
||||||
|
- New virt-v2v-in-place and release notes man pages.
|
||||||
|
- Remove the RHEL (downstream) patches which are out of date.
|
||||||
|
|
||||||
* Tue Feb 15 2022 Richard W.M. Jones <rjones@redhat.com> - 1:1.45.99-1
|
* Tue Feb 15 2022 Richard W.M. Jones <rjones@redhat.com> - 1:1.45.99-1
|
||||||
- New upstream development version 1.45.99 (preview of 2.0)
|
- New upstream development version 1.45.99 (preview of 2.0)
|
||||||
- Requires nbdkit-blocksize-filter.
|
- Requires nbdkit-blocksize-filter.
|
||||||
|
|
Loading…
Reference in New Issue