[Libguestfs] [PATCH v2 00/17] v2v: add --in-place mode

Denis V. Lunev den at openvz.org
Tue Aug 25 09:53:38 UTC 2015


On 08/11/2015 08:00 PM, Roman Kagan wrote:
> 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 details out into separate functions (one
> logical step at a time).  This results in main() compacted from a few
> hundreds lines to a few dozens containing only coarse steps and making
> the scenarios easy to follow.
>
> The last three patches add the new mode, the description of it in the
> man page, and a test for it, resp.
>
> Roman Kagan (17):
>    v2v: debug gc via at_exit hook
>    v2v: factor out opening input VM
>    v2v: factor out overlay creation
>    v2v: factor out populating targets list
>    v2v: factor out size checks
>    v2v: factor out actual guest transformation
>    v2v: factor out determing the guest firmware
>    v2v: move target_bus_assignment ahead of main
>    v2v: factor out copying of output data
>    v2v: factor out preserving overlays for debugging
>    v2v: move main to the end of file
>    v2v: drop redundant umount_all() and shutdown()
>    v2v: factor out opening guestfs handle
>    v2v: factor out populating guestfs with overlays
>    v2v: add --in-place mode
>    v2v: document --in-place
>    v2v: add test for --in-place
>
> ---
> changes from v1:
>   - include refactoring patches before the --in-place ones
>   - split --in-place patches into code, doc, and test for easier review
>     (bisectability maintained)
>
>   v2v/Makefile.am          |    1 +
>   v2v/cmdline.ml           |    7 +-
>   v2v/test-v2v-in-place.sh |  101 +++++
>   v2v/v2v.ml               | 1056 ++++++++++++++++++++++++----------------------
>   v2v/virt-v2v.pod         |   17 +
>   5 files changed, 674 insertions(+), 508 deletions(-)
>   create mode 100755 v2v/test-v2v-in-place.sh
>
guys?




More information about the Libguestfs mailing list