On Tue, Feb 04, 2025 at 08:08:13AM +0000, Richard W.M. Jones wrote:
For running other programs using local virt-v2v, you can use the
./run
script in the top build directory, eg:
~/virt-v2v/run ./some_script_that_uses_virt_v2v
And if you want to run virt-v2v from the locally built directory you
can do:
$ ./run virt-v2v ...
eg. to convert a local disk image but discard the output you could do:
$ ./run virt-v2v -v -x -i disk guest.qcow2 -o null
This is useful in combination with virt-builder for testing, eg:
$ virt-builder fedora-40 --install sparsedd
$ ./run virt-v2v -v -x -i disk fedora-40.img -o null
The ./run script will set the PATH and other environment variables
correctly so that the locally build virt-v2v runs.
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