@@ -9,14 +9,18 @@ The expected usage is as follows:
9
9
10
10
1 ) * wrapper start* : client runs the wrapper; at the moment there are no
11
11
command line arguments and everything is configured by JSON data presented
12
- on stdin.
12
+ on stdin
13
13
14
14
2 ) * initialization* : wrapper read JSON data from stdin, parses and validates
15
15
the content; based on the situation it may also change the effective user
16
16
to a non-root account; wrapper writes to stdout simple JSON containing
17
17
paths to wrapper log file (` wrapper_log ` ), virt-v2v log file (` v2v_log ` ),
18
18
state file (` state_file ` ) that can be used to monitor the progress
19
19
20
+ 3 ) Optionally, if ` two_phase ` conversion is selected (not supported for all
21
+ input and output modes), it will copy the disks to their destinations and
22
+ generate a libvirt XML to be used as an input to the virt-v2v process
23
+
20
24
4 ) * conversion* : finally, virt-v2v process is executed; wrapper monitors its
21
25
output and updates the state file on a regular basis
22
26
@@ -55,6 +59,12 @@ following can be specified:
55
59
* ` ssh_key ` : optional, private part of SSH key to use. If this is not provided
56
60
then keys in ~ /.ssh directory are used.
57
61
62
+ Two-phase conversion can be requested by setting ` two_phase ` to ` True ` at which
63
+ point the following key is mandatory:
64
+
65
+ * ` conversion_host_uuid ` : the UUID of a VM in which the actual conversion is
66
+ being performed.
67
+
58
68
Output configuration: reffer to the section [ Output
59
69
configuration] ( #output-configuration ) below.
60
70
@@ -144,6 +154,11 @@ Example:
144
154
State file is a JSON file. Its content changes as the conversion goes through
145
155
various stages. With it also the keys present in the file.
146
156
157
+ If two-phase conversion is selected there will be a key ` pre_copy ` with various
158
+ information related to the first (pre-copy) phase of the conversion. The
159
+ particular keys and information is, at the time of this writing, subject to
160
+ change, but whould be as self-explanatory as possible.
161
+
147
162
Once virt-v2v is executed the state file is created with the following keys:
148
163
149
164
* ` started ` : with value ` true `
0 commit comments