1virt-v2v-copy-to-local(1) Virtualization Support virt-v2v-copy-to-local(1)
2
3
4
6 virt-v2v-copy-to-local - Copy a remote guest to the local machine
7
9 virt-v2v-copy-to-local -ic LIBVIRT_URI GUEST
10
11 virt-v2v-copy-to-local -ic xen+ssh://root@xen.example.com xen_guest
12
13 virt-v2v-copy-to-local -ic esx://root@esxi.example.com vmware_guest
14
16 "virt-v2v-copy-to-local" copies a guest from a remote hypervisor to the
17 local machine, in preparation for conversion by virt-v2v(1). Note this
18 tool alone does not do the virt-v2v conversion.
19
20 When to use this tool
21 This tool is not usually necessary, but there are a few special cases
22 (see list below) where you might need it.
23
24 If your case does not fit one of these special cases, then ignore this
25 tool and read virt-v2v(1) instead. The virt-v2v-copy-to-local process
26 is slower than using virt-v2v directly, because it has to copy unused
27 parts of the guest disk.
28
29 · You have a Xen guest using host block devices. Virt-v2v cannot
30 convert such guests directly.
31
32 See "XEN OR SSH CONVERSIONS FROM BLOCK DEVICES" in virt-v2v(1).
33
34 · You have VMware ESXi hypervisors, and are not using VMware vCenter
35 to manage them. Virt-v2v cannot directly access ESXi hypervisor,
36 so you either have to export the guest as an OVA (eg. using
37 VMware's "ovftool"); or you can use this tool to copy the guest to
38 a local file on the conversion server, from where virt-v2v will be
39 able to access it.
40
41 See "INPUT FROM VMWARE ESXi HYPERVISOR" in virt-v2v(1).
42
43 How this tool works
44 This tool uses libvirt to get the libvirt XML (metadata) of the remote
45 guest, essentially equivalent to running "virsh dumpxml guest".
46
47 It then uses the XML to locate the remote guest disks, which are copied
48 over using a hypervisor-specific method. It uses ssh for remote Xen
49 hypervisors, and HTTPS (curl) for remote ESXi hypervisors.
50
51 It then modifies the libvirt XML so that it points at the local copies
52 of the guest disks.
53
54 The libvirt XML is output to a file called guest.xml (where guest is
55 the name of the guest). The disk(s) are output to file(s) called
56 guest-disk1, guest-disk2 and so on.
57
58 After copying the guest locally, you can convert it using:
59
60 virt-v2v -i libvirtxml guest.xml [-o options ...]
61
62 Virt-v2v finds the local copies of the disks by looking in the XML.
63
65 Copy and convert from Xen hypervisor that uses host block devices
66 For full instructions, see "XEN OR SSH CONVERSIONS FROM BLOCK DEVICES"
67 in virt-v2v(1).
68
69 virt-v2v-copy-to-local -ic xen+ssh://root@xen.example.com xen_guest
70 virt-v2v -i libvirtxml xen_guest.xml -o local -os /var/tmp
71 rm xen_guest.xml xen_guest-disk*
72
73 Copy and convert from ESXi hypervisor
74 For full instructions, see "INPUT FROM VMWARE ESXi HYPERVISOR" in
75 virt-v2v(1).
76
77 virt-v2v-copy-to-local -ic esx://root@esxi.example.com?no_verify=1 vmware_guest
78 virt-v2v -i libvirtxml vmware_guest.xml -o local -os /var/tmp
79 rm vmware_guest.xml vmware_guest-disk*
80
82 --help
83 Display help.
84
85 -ic libvirtURI
86 Specify a libvirt connection URI
87
88 --password-file file
89 Instead of asking for password(s) interactively, pass the password
90 through a file. Note the file should contain the whole password,
91 without any trailing newline, and for security the file should have
92 mode 0600 so that others cannot read it.
93
94 Currently this option does not have any effect on xen+ssh
95 transfers, but that is a bug.
96
97 -q
98 --quiet
99 This disables progress bars and other unnecessary output.
100
101 -v
102 --verbose
103 Enable verbose messages for debugging.
104
105 -V
106 --version
107 Display version number and exit.
108
110 virt-v2v(1), virsh(1), http://libguestfs.org/,
111 https://libvirt.org/uri.html, https://libvirt.org/remote.html,
112 https://libvirt.org/drvesx.html.
113
115 Richard W.M. Jones http://people.redhat.com/~rjones/
116
118 Copyright (C) 2009-2018 Red Hat Inc.
119
121 This program is free software; you can redistribute it and/or modify it
122 under the terms of the GNU General Public License as published by the
123 Free Software Foundation; either version 2 of the License, or (at your
124 option) any later version.
125
126 This program is distributed in the hope that it will be useful, but
127 WITHOUT ANY WARRANTY; without even the implied warranty of
128 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
129 General Public License for more details.
130
131 You should have received a copy of the GNU General Public License along
132 with this program; if not, write to the Free Software Foundation, Inc.,
133 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
134
136 To get a list of bugs against libguestfs, use this link:
137 https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools
138
139 To report a new bug against libguestfs, use this link:
140 https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools
141
142 When reporting a bug, please supply:
143
144 · The version of libguestfs.
145
146 · Where you got libguestfs (eg. which Linux distro, compiled from
147 source, etc)
148
149 · Describe the bug accurately and give a way to reproduce it.
150
151 · Run libguestfs-test-tool(1) and paste the complete, unedited output
152 into the bug report.
153
154
155
156libguestfs-1.38.2 2018-05-15 virt-v2v-copy-to-local(1)