virt-v2v-copy-to-local(1) | Virtualization Support | virt-v2v-copy-to-local(1) |
virt-v2v-copy-to-local - Copy a remote guest to the local machine
virt-v2v-copy-to-local -ic LIBVIRT_URI GUEST virt-v2v-copy-to-local -ic xen+ssh://root@xen.example.com xen_guest
"virt-v2v-copy-to-local" copies a guest from a remote hypervisor to the local machine, in preparation for conversion by virt-v2v(1). Note this tool alone does not do the virt-v2v conversion.
This tool is not usually necessary, but there are a few special cases (see list below) where you might need it.
If your case does not fit one of these special cases, then ignore this tool and read virt-v2v(1) instead. The virt-v2v-copy-to-local process is slower than using virt-v2v directly, because it has to copy unused parts of the guest disk.
This tool uses libvirt to get the libvirt XML (metadata) of the remote guest, essentially equivalent to running "virsh dumpxml guest".
It then uses the XML to locate the remote guest disks, which are copied over using a hypervisor-specific method. It uses ssh for remote Xen hypervisors.
It then modifies the libvirt XML so that it points at the local copies of the guest disks.
The libvirt XML is output to a file called guest.xml (where guest is the name of the guest). The disk(s) are output to file(s) called guest-disk1, guest-disk2 and so on.
After copying the guest locally, you can convert it using:
virt-v2v -i libvirtxml guest.xml [-o options ...]
Virt-v2v finds the local copies of the disks by looking in the XML.
For full instructions, see virt-v2v-input-xen(1).
virt-v2v-copy-to-local -ic xen+ssh://root@xen.example.com xen_guest virt-v2v -i libvirtxml xen_guest.xml -o local -os /var/tmp rm xen_guest.xml xen_guest-disk*
Currently this option does not have any effect on xen+ssh transfers, but that is a bug.
virt-v2v(1), virsh(1), http://libguestfs.org/, https://libvirt.org/uri.html, https://libvirt.org/remote.html.
Richard W.M. Jones http://people.redhat.com/~rjones/
Copyright (C) 2009-2019 Red Hat Inc.
To get a list of bugs against libguestfs, use this link: https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools
To report a new bug against libguestfs, use this link: https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools
When reporting a bug, please supply:
2019-02-07 | libguestfs-1.40.2 |