Displaying 20 results from an estimated 58 matches for "ov_source".
2015 Oct 20
1
[PATCH v3 03/13] v2v: factor out populating targets list
...display errors to the user before doing too much
- * work.
- *)
- message (f_"Initializing the target %s") output#as_options;
- let targets =
- List.map (
- fun ov ->
- (* What output format should we use? *)
- let format =
- match output_format, ov.ov_source.s_format with
- | Some format, _ -> format (* -of overrides everything *)
- | None, Some format -> format (* same as backing format *)
- | None, None ->
- error (f_"disk %s (%s) has no defined format.\n\nThe input metadata did not define the di...
2018 Mar 15
0
[PATCH 2/2] v2v: Add --print-target to display overlay and target information.
...root_choice : Types.root_choice;
}
diff --git a/v2v/types.ml b/v2v/types.ml
index b89bd2fe2..c1f36fdb1 100644
--- a/v2v/types.ml
+++ b/v2v/types.ml
@@ -281,11 +281,10 @@ type overlay = {
}
let string_of_overlay ov =
- sprintf "\
-ov_overlay_file = %s
-ov_sd = %s
-ov_virtual_size = %Ld
-ov_source = %s
+ sprintf " overlay file: %s
+ overlay device name: %s
+overlay virtual disk size: %Ld
+ overlay source qemu URI: %s
"
ov.ov_overlay_file
ov.ov_sd
@@ -304,12 +303,9 @@ and target_file =
| TargetURI of string
let string_of_target t =
- sprintf &quo...
2018 Aug 14
2
[PATCH] v2v: -o rhv-upload: Fix error message disk numbering (RHBZ#1615885).
...ad.ml
@@ -361,13 +361,13 @@ If the messages above are not sufficient to diagnose the problem then add the
*)
let nr_disks = List.length targets in
let image_uuids =
- List.map (
- fun t ->
+ List.mapi (
+ fun i t ->
let id = t.target_overlay.ov_source.s_disk_id in
let diskid_file = diskid_file_of_id id in
if not (wait_for_file diskid_file finalization_timeout) then
error (f_"transfer of disk %d/%d failed, see earlier error messages")
- (id+1) nr_disks;
+ (i+1) nr_disk...
2018 Mar 15
3
[PATCH 0/2] v2v: Add --print-target to display overlay and target information.
RHV was connecting to the VMware source in order to find out the
virtual disk size of the source disk(s), duplicating logic that
virt-v2v already provides. This makes that information available
using a new ‘virt-v2v --print-target option’.
Note in order to get all the information, this has to actually perform
the conversion step, so it takes 30 seconds or so before we reach the
point where the
2015 Oct 20
1
[PATCH v3 02/13] v2v: factor out overlay creation
...rlays =
- mapi (
- fun i (overlay_file, source) ->
- let sd = "sd" ^ drive_name i in
- let dev = "/dev/" ^ sd in
- let vsize = g#blockdev_getsize64 dev in
-
- { ov_overlay_file = overlay_file; ov_sd = sd;
- ov_virtual_size = vsize; ov_source = source }
- ) overlays in
-
(* Work out where we will write the final output. Do this early
* just so we can display errors to the user before doing too much
* work.
@@ -385,6 +338,7 @@ let rec main () =
(* Save overlays if --debug-overlays option was used. *)
if debug_overl...
2018 Mar 16
7
[PATCH v2 0/5] Add --print-target with machine-readable version.
This adds --print-target. In addition, v2 provides a machine-readable
version (in JSON format).
All of the record -> JSON boilerplate in this patch could be
eliminated if we moved the baseline to OCaml 4.02.
Rich.
2019 Sep 16
0
[PATCH 6/8] v2v: -o rhv-upload: collect disks UUIDs right after copy
...(* Get the UUID of the disk image. This file is written
+ * out by the nbdkit plugin on successful finalization of the
* transfer.
*)
- let nr_disks = List.length targets in
- let image_uuids =
- List.mapi (
- fun i t ->
- let id = t.target_overlay.ov_source.s_disk_id in
- let diskid_file = diskid_file_of_id id in
- if not (wait_for_file diskid_file finalization_timeout) then
- error (f_"transfer of disk %d/%d failed, see earlier error messages")
- (i+1) nr_disks;
- let diskid = read_whol...
2015 Aug 11
0
[PATCH v2 03/17] v2v: factor out overlay creation
...or (f_"internal error: qemu-img did not create overlay with backing file");
+
+ let sd = "sd" ^ drive_name i in
+
+ let vsize = (new G.guestfs ())#disk_virtual_size overlay_file in
+
+ { ov_overlay_file = overlay_file; ov_sd = sd;
+ ov_virtual_size = vsize; ov_source = source }
+ ) src_disks
+
let rec main () =
(* Handle the command line. *)
let input, output,
@@ -122,40 +161,7 @@ let rec main () =
let source = open_source input print_source in
let source = amend_source source output_name network_map in
-
- (* Create a qcow2 v3 overlay to prote...
2018 Nov 23
2
Re: [PATCH] v2v: Add support for libosinfo metadata
...ml.ml b/v2v/create_libvirt_xml.ml
>> index 55e83e8bc1b9..180f3768792b 100644
>> --- a/v2v/create_libvirt_xml.ml
>> +++ b/v2v/create_libvirt_xml.ml
>> @@ -34,8 +34,102 @@ let find_target_disk targets { s_disk_id = id } =
>> try List.find (fun t -> t.target_overlay.ov_source.s_disk_id = id) targets
>> with Not_found -> assert false
>>
>> +let get_osinfo_id = function
>> + | { i_type = "linux"; i_distro = "rhel";
>> + i_major_version = major; i_minor_version = minor } ->
>> + Some (sprintf "h...
2015 Nov 10
3
[PATCH] v2v: Make the interface between cmdline.ml and v2v.ml
I'm interested to hear opinions on whether this makes the code
clearer, or not.
This is virt-v2v, but many other virt-* tools work the same way, and
analogous changes could be made.
Currently when command line argument parsing is done in 'cmdline.ml'
the list of parsed parameters is passed to the main program in a very
long tuple. Each parameter is strongly typed, but not named (so
2017 Dec 08
3
[PATCH v2 0/2] v2v: -o null: Use the qemu null device driver.
This changes the infrastructure to allow the target_file to be
a QEMU URI.
Rich.
2018 Nov 23
2
[PATCH] v2v: Add support for libosinfo metadata
...letions(-)
diff --git a/v2v/create_libvirt_xml.ml b/v2v/create_libvirt_xml.ml
index 55e83e8bc1b9..180f3768792b 100644
--- a/v2v/create_libvirt_xml.ml
+++ b/v2v/create_libvirt_xml.ml
@@ -34,8 +34,102 @@ let find_target_disk targets { s_disk_id = id } =
try List.find (fun t -> t.target_overlay.ov_source.s_disk_id = id) targets
with Not_found -> assert false
+let get_osinfo_id = function
+ | { i_type = "linux"; i_distro = "rhel";
+ i_major_version = major; i_minor_version = minor } ->
+ Some (sprintf "http://redhat.com/rhel/%d.%d" major minor)
+
+...
2018 Aug 14
0
Re: [PATCH] v2v: -o rhv-upload: Fix error message disk numbering (RHBZ#1615885).
...ges above are not sufficient to diagnose the problem then add the
> *)
> let nr_disks = List.length targets in
> let image_uuids =
> - List.map (
> - fun t ->
> + List.mapi (
> + fun i t ->
> let id = t.target_overlay.ov_source.s_disk_id in
> let diskid_file = diskid_file_of_id id in
> if not (wait_for_file diskid_file finalization_timeout) then
> error (f_"transfer of disk %d/%d failed, see earlier error messages")
> - (id+1) nr_disks;
> +...
2015 Aug 11
0
[PATCH v2 04/17] v2v: factor out populating targets list
...+++++++++++++++++++++++++++++------------------------------
1 file changed, 38 insertions(+), 35 deletions(-)
diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index b3dfa07..c20cbf0 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -144,40 +144,7 @@ let create_overlays src_disks =
ov_virtual_size = vsize; ov_source = source }
) src_disks
-let rec main () =
- (* Handle the command line. *)
- let input, output,
- debug_gc, debug_overlays, do_copy, network_map, no_trim,
- output_alloc, output_format, output_name, print_source, root_choice =
- Cmdline.parse_cmdline () in
-
- (* Print the version,...
2018 Nov 23
0
Re: [PATCH] v2v: Add support for libosinfo metadata
...ibvirt_xml.ml
> >>index 55e83e8bc1b9..180f3768792b 100644
> >>--- a/v2v/create_libvirt_xml.ml
> >>+++ b/v2v/create_libvirt_xml.ml
> >>@@ -34,8 +34,102 @@ let find_target_disk targets { s_disk_id = id } =
> >> try List.find (fun t -> t.target_overlay.ov_source.s_disk_id = id) targets
> >> with Not_found -> assert false
> >>
> >>+let get_osinfo_id = function
> >>+ | { i_type = "linux"; i_distro = "rhel";
> >>+ i_major_version = major; i_minor_version = minor } ->
> >>+...
2015 Nov 10
1
[PATCH] v2v: Add --compressed option to produce compressed qcow2 files (RHBZ#1279273).
...ts targets input output output_alloc in
+ else copy_targets targets input output output_alloc compressed in
(* Create output metadata. *)
message (f_"Creating output metadata");
@@ -247,7 +248,7 @@ and create_overlays src_disks =
ov_virtual_size = vsize; ov_source = source }
) src_disks
-and init_targets overlays source output output_format =
+and init_targets overlays source output output_format compressed =
(* Work out where we will write the final output. Do this early
* just so we can display errors to the user before doing too much
* wo...
2019 Sep 16
16
[PATCH 0/8] v2v: various fixed for -o rhv-upload
This patch series fixes various issues in the rhv-upload output mode:
- properly find and use RHV resources
- cleanup orphan disks, and possibly the current disk transfer on
failure
In reality, the first 4 patches deal with resources, and the other 4
with cleanups. The latter block can be theoretically sent alone --
I just happened to start working on it as part of my "let's fix
2015 Nov 10
1
[PATCH] OCaml tools: use open_guestfs everywhere
...g file");
let sd = "sd" ^ drive_name i in
- let vsize = (new G.guestfs ())#disk_virtual_size overlay_file in
+ let vsize = (open_guestfs ())#disk_virtual_size overlay_file in
{ ov_overlay_file = overlay_file; ov_sd = sd;
ov_virtual_size = vsize; ov_source = source }
@@ -780,7 +780,7 @@ and copy_targets targets input output output_alloc =
* backing file. Just sanity check this here.
*)
let overlay_file = t.target_overlay.ov_overlay_file in
- if not ((new G.guestfs ())#disk_has_backing_file overlay_file) then
+ if not...
2015 Aug 11
41
[PATCH v2 00/17] v2v: add --in-place mode
This series is a second attempt to add a mode of virt-v2v operation
where it leaves the config and disk image conversion, rollback on
errors, registering with the destination hypervisor, etc. to a
third-party toolset, and performs only tuning of the guest OS to run in
the KVM-based hypervisor.
The first 14 patches are just refactoring and rearrangement of the code,
factoring the implementation
2018 Nov 23
0
Re: [PATCH] v2v: Add support for libosinfo metadata
...v2v/create_libvirt_xml.ml b/v2v/create_libvirt_xml.ml
> index 55e83e8bc1b9..180f3768792b 100644
> --- a/v2v/create_libvirt_xml.ml
> +++ b/v2v/create_libvirt_xml.ml
> @@ -34,8 +34,102 @@ let find_target_disk targets { s_disk_id = id } =
> try List.find (fun t -> t.target_overlay.ov_source.s_disk_id = id) targets
> with Not_found -> assert false
>
> +let get_osinfo_id = function
> + | { i_type = "linux"; i_distro = "rhel";
> + i_major_version = major; i_minor_version = minor } ->
> + Some (sprintf "http://redhat.com/rhel/...