[Libguestfs] why virt-v2v in-place option not support in centos 7?

Richard W.M. Jones rjones at redhat.com
Mon Dec 17 12:23:58 UTC 2018


On Mon, Dec 17, 2018 at 07:47:45PM +0800, Zhang Huan wrote:
> Hi All,
> 
> As the in-place help said,
> 
>    --in-place
> Do not create an output virtual machine in the target hypervisor. Instead, adjust the guest OS in the source VM to run in the input hypervisor.
> 
> This mode is meant for integration with other toolsets, which take the responsibility of converting the VM configuration, providing for rollback in case of errors, transforming the storage, etc.
> 
> 
> 
> I want to do v2v modifications in the source disk image, but the v2v give the error:
> virt-v2v -v -x -i disk /dev/vdh --in-place
> virt-v2v: error: --in-place cannot be used in RHEL 7
> 
> could any one give me some help?
> why —in-place option disabled in RHEL7, is there a older version enabled this feture?

It's because we explictly disable it in RHEL 7 because we don't want
to support it for Red Hat's customers.

You can see the patches that we add on top of upstream libguestfs
here:

https://github.com/libguestfs/libguestfs/commits/rhel-7.7

The patch in question is:

https://github.com/libguestfs/libguestfs/commit/fb3e89b0fb2d0de3c12a668c00d07c5cfcac9ec0

If you want to use this feature, you'll either have to use Fedora or
another non-CentOS distribution, or compile libguestfs yourself from
source, or take the CentOS SRPM, comment out the patch, and rebuild
it.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v




More information about the Libguestfs mailing list