Displaying 20 results from an estimated 66 matches for "do_convert".
2017 Feb 22
0
[PATCH 1/4] v2v: Pass output object into the conversion module.
...rec main () =
(* Conversion. *)
let guestcaps =
- let keep_serial_console = output#keep_serial_console in
let rcaps =
match conversion_mode with
| Copying _ ->
@@ -111,7 +110,7 @@ let rec main () =
| In_place ->
rcaps_from_source source in
- do_convert g inspect source keep_serial_console rcaps in
+ do_convert g inspect source output rcaps in
g#umount_all ();
@@ -549,7 +548,7 @@ and check_target_free_space mpstats source targets output =
output#check_target_free_space source targets
(* Conversion. *)
-and do_convert g inspect sour...
2023 Mar 07
1
[V2V PATCH v2 3/5] convert: introduce "block_driver" convert option
.../convert.ml
@@ -31,6 +31,7 @@ open Utils
module G = Guestfs
type options = {
+ block_driver : guestcaps_block_type;
keep_serial_console : bool;
ks : key_store;
network_map : Networks.t;
@@ -88,7 +89,7 @@ let rec convert dir options source =
(* Conversion. *)
let guestcaps =
do_convert g source inspect i_firmware
- options.keep_serial_console options.static_ips in
+ options.block_driver options.keep_serial_console options.static_ips in
g#umount_all ();
@@ -221,7 +222,8 @@ and do_fstrim g inspect =
) fses
(* Conversion. *)
-and do_convert g source inspect i_...
2023 Mar 10
1
[V2V PATCH v3 3/6] convert: introduce "block_driver" convert option
.../convert.ml
@@ -31,6 +31,7 @@ open Utils
module G = Guestfs
type options = {
+ block_driver : guestcaps_block_type;
keep_serial_console : bool;
ks : key_store;
network_map : Networks.t;
@@ -88,7 +89,7 @@ let rec convert dir options source =
(* Conversion. *)
let guestcaps =
do_convert g source inspect i_firmware
- options.keep_serial_console options.static_ips in
+ options.block_driver options.keep_serial_console options.static_ips in
g#umount_all ();
@@ -221,7 +222,8 @@ and do_fstrim g inspect =
) fses
(* Conversion. *)
-and do_convert g source inspect i_...
2019 Oct 11
0
Re: [PATCH] v2v: Output saved overlays in a machine-readable fashion
...t "source" == "metadata".
* let overlays = create_overlays source.s_disks in
let g = Guestfs.guestfs () in
populate_overlays g overlays
The overlays are created and added as disks to a guestfs handle
* let inspect = Inspect_source.inspect_source g in
let guestcaps = do_convert g inspect output in
This does inspection + conversion. (The real do_convert function
takes the source struct as parameter, but it is not really used.)
* let targets = output#prepare_targets overlays in
copy_targets targets input output
This creates the target disks and copies them...
2015 Oct 20
1
[PATCH v3 05/13] v2v: factor out actual guest transformation
...en (
- if guestcaps.gcaps_block_bus = Virtio_blk then
- info (f_"This guest has virtio drivers installed.")
- else
- info (f_"This guest does not have virtio drivers installed.");
- );
+ let keep_serial_console = output#keep_serial_console in
+ let guestcaps = do_convert g inspect source keep_serial_console in
g#umount_all ();
@@ -819,6 +792,34 @@ and check_target_free_space mpstats source targets output =
output#check_target_free_space source targets
+and do_convert g inspect source keep_serial_console =
+ (* Conversion. *)
+ (match inspect.i_produ...
2019 Oct 11
2
Re: [PATCH] v2v: Output saved overlays in a machine-readable fashion
...ta".
>
>* let overlays = create_overlays source.s_disks in
> let g = Guestfs.guestfs () in
> populate_overlays g overlays
>
> The overlays are created and added as disks to a guestfs handle
>
>* let inspect = Inspect_source.inspect_source g in
> let guestcaps = do_convert g inspect output in
>
> This does inspection + conversion. (The real do_convert function
> takes the source struct as parameter, but it is not really used.)
>
>* let targets = output#prepare_targets overlays in
> copy_targets targets input output
>
> This creates...
2017 Feb 22
5
[PATCH 0/4] v2v: windows: Only try to install rhev-apt if the target is RHV (RHBZ#1161019).
The bug is:
https://bugzilla.redhat.com/show_bug.cgi?id=1161019
This makes a few other minor refactorings to the code.
Rich.
2019 Oct 11
6
Re: [PATCH] v2v: Output saved overlays in a machine-readable fashion
On Thu, Oct 10, 2019 at 03:33:25PM +0100, Richard W.M. Jones wrote:
>On Wed, Oct 09, 2019 at 02:19:46PM +0200, Martin Kletzander wrote:
>> Even though this option is not to be used according to the manual, it:
>>
>> a) still might be useful even for machine-readable logs
>>
>> b) should not break the machine-readable output
>
>I'm a bit confused what
2023 Mar 06
2
[PATCH v2v] convert: Allow preferred block driver to be specified on the command line
This is just an outline patch, only compile tested.
It doesn't make changes to virt-v2v-in-place, but those would be the
same as made in v2v/v2v.ml.
It reuses the existing Types.guestcaps_block_type which is a bit ugly
but fairly practical.
I've made the change to the documentation, but it needs a test.
Rich.
2019 Apr 15
0
[PATCH v2v 2/2] v2v: Copy static IP address information over for Windows guests (RHBZ#1626503).
...)
+
(** {2 Input object}
This is subclassed for the various input [-i] options.
diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index 5fb85bb38..e36eab2d4 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -133,7 +133,7 @@ let rec main () =
| In_place ->
rcaps_from_source source in
- do_convert g inspect source output rcaps in
+ do_convert g inspect source output rcaps cmdline.force_interfaces in
g#umount_all ();
@@ -557,7 +557,7 @@ and estimate_target_size mpstats overlays =
)
(* Conversion. *)
-and do_convert g inspect source output rcaps =
+and do_convert g inspect sour...
2016 Feb 20
0
[PATCH v2 3/4] v2v: take requested caps into account when converting
...fn -> unit
(** [register_convert_module inspect_fn name fn] registers a
diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index 5082e9a..c828e48 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -82,7 +82,12 @@ let rec main () =
);
let keep_serial_console = output#keep_serial_console in
- let guestcaps = do_convert g inspect source keep_serial_console in
+ let rcaps = {
+ rcaps_block_bus = None;
+ rcaps_net_bus = None;
+ rcaps_video = None;
+ } in
+ let guestcaps = do_convert g inspect source keep_serial_console rcaps in
g#umount_all ();
@@ -6...
2019 Apr 16
0
[PATCH v2v v2 2/2] v2v: Copy static IP address information over for Windows guests (RHBZ#1626503).
...)
+
(** {2 Input object}
This is subclassed for the various input [-i] options.
diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index 5fb85bb38..a748ae162 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -133,7 +133,7 @@ let rec main () =
| In_place ->
rcaps_from_source source in
- do_convert g inspect source output rcaps in
+ do_convert g inspect source output rcaps cmdline.static_ips in
g#umount_all ();
@@ -557,7 +557,7 @@ and estimate_target_size mpstats overlays =
)
(* Conversion. *)
-and do_convert g inspect source output rcaps =
+and do_convert g inspect source out...
2016 Feb 09
0
[PATCH 3/4] v2v: take requested caps into account when converting
...fn -> unit
(** [register_convert_module inspect_fn name fn] registers a
diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index 5082e9a..c828e48 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -82,7 +82,12 @@ let rec main () =
);
let keep_serial_console = output#keep_serial_console in
- let guestcaps = do_convert g inspect source keep_serial_console in
+ let rcaps = {
+ rcaps_block_bus = None;
+ rcaps_net_bus = None;
+ rcaps_video = None;
+ } in
+ let guestcaps = do_convert g inspect source keep_serial_console rcaps in
g#umount_all ();
@@ -6...
2019 Apr 15
2
[PATCH v2v 1/2] v2v: windows: Add a helper function for installing Powershell firstboot scripts.
---
v2v/windows.ml | 24 ++++++++++++++++++++++++
v2v/windows.mli | 6 ++++++
2 files changed, 30 insertions(+)
diff --git a/v2v/windows.ml b/v2v/windows.ml
index 23d589b00..dde64e677 100644
--- a/v2v/windows.ml
+++ b/v2v/windows.ml
@@ -19,6 +19,7 @@
open Printf
open Common_gettext.Gettext
+open Std_utils
open Tools_utils
open Utils
@@ -45,3 +46,26 @@ and check_app { Guestfs.app2_name
2019 Jul 11
2
[PATCH v3 0/2] v2v: Copy static IP address information over for Windows guests
Patch v2 was here:
https://www.redhat.com/archives/libguestfs/2019-April/thread.html#00114
There's no change here except that I've rebased it against the latest
master branch and retested. There was a comment by Pino
(https://www.redhat.com/archives/libguestfs/2019-April/msg00117.html)
which isn't incorporated into this patch.
Rich.
2015 Aug 11
0
[PATCH v2 06/17] v2v: factor out actual guest transformation
...-------
1 file changed, 30 insertions(+), 29 deletions(-)
diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index 53456ea..c6a567a 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -371,6 +371,34 @@ let check_target_free_space mpstats source targets output =
output#check_target_free_space source targets
+let do_convert g inspect source keep_serial_console =
+ (* Conversion. *)
+ (match inspect.i_product_name with
+ | "unknown" ->
+ message (f_"Converting the guest to run on KVM")
+ | prod ->
+ message (f_"Converting %s to run on KVM") prod
+ );
+
+ let conversion_na...
2015 Oct 20
1
[PATCH v3 09/13] v2v: drop redundant umount_all() and shutdown()
...t;rkagan@virtuozzo.com>
---
v2v/v2v.ml | 4 ----
1 file changed, 4 deletions(-)
diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index cc36422..c28905d 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -87,8 +87,6 @@ let rec main () =
let keep_serial_console = output#keep_serial_console in
let guestcaps = do_convert g inspect source keep_serial_console in
- g#umount_all ();
-
if no_trim <> ["*"] && (do_copy || debug_overlays) then (
(* Doing fstrim on all the filesystems reduces the transfer size
* because unused blocks are marked in the overlay and thus do
@@ -99,8 +97...
2023 Mar 07
6
[V2V PATCH v2 0/5] Bring support for virtio-scsi back to Windows
Discussion on v1:
https://listman.redhat.com/archives/libguestfs/2023-February/030849.html
https://listman.redhat.com/archives/libguestfs/2023-March/030917.html
v1 -> v2:
* Adapt the patch suggested by Richard, splitting it up into 3:
https://listman.redhat.com/archives/libguestfs/2023-March/030975.html
Now we have "--block-driver" command line option which regulates the
2015 Oct 20
1
[PATCH v3 06/13] v2v: factor out determining the guest firmware
...o (f_"This guest requires UEFI on the target to boot."));
+ let target_firmware = get_target_firmware inspect guestcaps source output in
message (f_"Assigning disks to buses");
let target_buses = target_bus_assignment source targets guestcaps in
@@ -820,6 +801,30 @@ and do_convert g inspect source keep_serial_console =
guestcaps
+and get_target_firmware inspect guestcaps source output =
+ (* Does the guest require UEFI on the target? *)
+ message (f_"Checking if the guest needs BIOS or UEFI to boot");
+ let target_firmware =
+ match source.s_firmware w...
2018 Nov 07
2
Re: [PATCH v3 3/3] v2v: linux: install QEMU-GA (RHBZ#1619665)
...files changed, 36 insertions(+)
>
> diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml
> index e8c64ac1b..a1bafe91a 100644
> --- a/v2v/convert_linux.ml
> +++ b/v2v/convert_linux.ml
> @@ -81,6 +81,8 @@ let convert (g : G.guestfs) inspect source output rcaps =
> let rec do_convert () =
> augeas_grub_configuration ();
>
> + Windows_virtio.install_linux_tools g inspect;
> +
> unconfigure_xen ();
> unconfigure_vbox ();
> unconfigure_vmware ();
> diff --git a/v2v/windows_virtio.ml b/v2v/windows_virtio.ml
> index da02b6c4e..223e...