Add static network configuration option and make <Back> work.
[virt-p2v.git] / virt-p2v.1.html
1 <?xml version="1.0" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <title>virt-p2v - P2V migration tool</title>
6 <link rel="stylesheet" href="virt-p2v.1.css" type="text/css" />
7 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
8 <link rev="made" href="mailto:root@localhost" />
9 </head>
10
11 <body>
12
13 <p><a name="__index__"></a></p>
14 <!-- INDEX BEGIN -->
15
16 <ul>
17
18         <li><a href="#name">NAME</a></li>
19         <li><a href="#summary">SUMMARY</a></li>
20         <li><a href="#description">DESCRIPTION</a></li>
21         <li><a href="#standard_usage">STANDARD USAGE</a></li>
22         <ul>
23
24                 <li><a href="#booting_p2v_guest_on_virtualization_host">BOOTING P2V GUEST ON VIRTUALIZATION HOST</a></li>
25         </ul>
26
27         <li><a href="#getting_a_shell">GETTING A SHELL</a></li>
28         <ul>
29
30                 <li><a href="#log_file">LOG FILE</a></li>
31         </ul>
32
33         <li><a href="#server_requirements">SERVER REQUIREMENTS</a></li>
34         <li><a href="#building_a_custom_live_cd">BUILDING A CUSTOM LIVE CD</a></li>
35         <ul>
36
37                 <li><a href="#editing_defaults_in_the_virtp2v_script">EDITING DEFAULTS IN THE <code>virt-p2v</code> SCRIPT</a></li>
38                 <li><a href="#iso_attachments">ISO ATTACHMENTS</a></li>
39         </ul>
40
41         <li><a href="#booting_from_a_usb_key_instead_of_a_cd">BOOTING FROM A USB KEY INSTEAD OF A CD</a></li>
42         <li><a href="#testing_an_iso_under_qemu_or_kvm">TESTING AN ISO UNDER QEMU OR KVM</a></li>
43         <li><a href="#mailing_list">MAILING LIST</a></li>
44         <li><a href="#see_also">SEE ALSO</a></li>
45         <li><a href="#authors">AUTHORS</a></li>
46         <li><a href="#copyright">COPYRIGHT</a></li>
47         <li><a href="#reporting_bugs">REPORTING BUGS</a></li>
48 </ul>
49 <!-- INDEX END -->
50
51 <hr />
52 <p>
53 </p>
54 <h1><a name="name">NAME</a></h1>
55 <p>virt-p2v - P2V (physical to virtual machine) migration tool</p>
56 <p>
57 </p>
58 <hr />
59 <h1><a name="summary">SUMMARY</a></h1>
60 <p>virt-p2v</p>
61 <p>
62 </p>
63 <hr />
64 <h1><a name="description">DESCRIPTION</a></h1>
65 <p>virt-p2v is a live CD for migrating physical machines to virtual
66 machine guests.</p>
67 <p>In the simplest mode of operation, you take a pre-built live CD ISO
68 from the main website (<a href="http://et.redhat.com/~rjones/virt-p2v/">http://et.redhat.com/~rjones/virt-p2v/</a>) and
69 burn it to a CD-R.  Then insert the CD-R into the physical machine
70 which must be migrated, reboot, and follow the on-screen instructions.
71 See <strong>STANDARD USAGE</strong> section below.</p>
72 <p>You may also build a customized live CD.  Typically this will contain
73 things like server details specific to your organization, so that the
74 live CD can run mostly or completely automatically.  See <strong>BUILDING A
75 CUSTOM LIVE CD</strong> section below.</p>
76 <p>In both cases, files and disk images are transferred from the physical
77 machine over the network to the virtualization host machine over ssh.
78 Therefore <code>sshd</code> must be running on the virtualization host, and must
79 be accessible to that host.  See <strong>SERVER REQUIREMENTS</strong> section below.</p>
80 <p>The <code>virt-p2v</code> script must only be run from the live CD.  It isn't
81 designed to run outside this environment and could do Bad Things to
82 your machine if you try it.  The script contains some checks to try to
83 stop you from doing this.</p>
84 <p>Virt-p2v does not modify the physical machine, its disks,
85 configuration etc.</p>
86 <p>
87 </p>
88 <hr />
89 <h1><a name="standard_usage">STANDARD USAGE</a></h1>
90 <p>After booting the live CD-R, you are presented with a series of
91 questions.  This section explains each question.</p>
92 <dl>
93 <dt><strong><a name="item_remote_host">Remote host</a></strong>
94
95 <dd>
96 <p>Enter the name or IP address of the virtualization host.  This is the
97 host running Xen (or any other virtualization system supported by
98 libvirt, eg. QEMU).  This host should be accessible on the network and
99 running an SSH daemon (<code>sshd</code>).</p>
100 </dd>
101 </li>
102 <dt><strong><a name="item_remote_port">Remote port</a></strong>
103
104 <dd>
105 <p>This is the port name or number of the SSH server on the remote host.
106 The default is <code>22</code> which is the standard SSH port.</p>
107 </dd>
108 </li>
109 <dt><strong><a name="item_remote_directory">Remote directory</a></strong>
110
111 <dd>
112 <p>Enter the directory on the remote host where disk <code>image(s)</code> and
113 configuration <code>file(s)</code> must reside.</p>
114 </dd>
115 <dd>
116 <p>Note that if the remote host is running SELinux then you may not be
117 able to start a Xen guest unless its disk <code>image(s)</code> are located in the
118 default directory, <code>/var/lib/xen/images</code>.</p>
119 </dd>
120 </li>
121 <dt><strong><a name="item_remote_username">Remote username</a></strong>
122
123 <dd>
124 <p>Enter the remote SSH username to use to log in to the remote host.</p>
125 </dd>
126 <dd>
127 <p>If you use the default username of <code>root</code> then you should ensure that
128 remote root logins are enabled on the remote host
129 (ie. <code>PermitRootLogin yes</code> in <code>/etc/ssh/sshd_config</code>).</p>
130 </dd>
131 </li>
132 <dt><strong><a name="item_network_configuration">Network configuration</a></strong>
133
134 <dd>
135 <p>Choose the way that the live CD configures network access.  The
136 current options are:</p>
137 </dd>
138 <dl>
139 <dt><strong><a name="item_automatic_configuration">Automatic configuration</a></strong>
140
141 <dd>
142 <p>In this mode, the live CD attempts to reuse the network configuration
143 from the physical machine's root filesystem.  You should probably try
144 this method even though occasionally it does not work.</p>
145 </dd>
146 </li>
147 <dt><strong><a name="item_configure_from_the_shell">Configure from the shell</a></strong>
148
149 <dd>
150 <p>In this mode you will be dropped into a command shell and you will
151 need to issue the correct sequence of <code>/sbin/ifconfig</code> commands in
152 order to configure the network interface.</p>
153 </dd>
154 <dd>
155 <p>A typical sequence of commands which should bring up the network
156 interface would be:</p>
157 </dd>
158 <dd>
159 <pre>
160  /sbin/ifconfig eth0 AA.BB.CC.DD
161  /sbin/route add default gw GG.HH.II.JJ eth0</pre>
162 </dd>
163 <dd>
164 <p>where <code>AA.BB.CC.DD</code> is the IP address and <code>GG.HH.II.JJ</code> is the
165 gateway.</p>
166 </dd>
167 </li>
168 </dl>
169 <dt><strong><a name="item_devices">Devices</a></strong>
170
171 <dd>
172 <p>This question lists out all local block devices (hard disk drives and
173 similar) and asks you to choose which will be sent to the remote host.
174 You must send at least one block device.</p>
175 </dd>
176 </li>
177 <dt><strong><a name="item_root_device">Root device</a></strong>
178
179 <dd>
180 <p>This question lists out possible root filesystems and asks you to
181 choose the right one.  Choose the filesystem which would normally be
182 mounted as <code>/</code> on the system.</p>
183 </dd>
184 <dd>
185 <p>Virt-p2v performs some autodetection and is in most cases able to work
186 out which filesystems are possible root filesystems.  It displays what
187 it thinks is on each filesystem, but leaves it up to the user to make
188 a final decision.</p>
189 </dd>
190 <dd>
191 <p>The root filesystem is critical because it contains <code>/etc/fstab</code>.
192 This is used during P2V both to determine how other filesystems are
193 normally mounted on the machine, and because this file and others
194 under <code>/etc</code> may need to be modified during P2V conversion.</p>
195 </dd>
196 <dd>
197 <p>If the machine has more than one root filesystem (typically because
198 the machine is dual-booted with another operating system), then you
199 must choose only one of them to perform the P2V conversion on.</p>
200 </dd>
201 </li>
202 <dt><strong><a name="item_hypervisor">Hypervisor</a></strong>
203
204 <dd>
205 <p>This question asks you to choose the hypervisor / virtualization
206 system in use on the remote host.</p>
207 </dd>
208 <dd>
209 <p>If you select <em>Xen</em>, <em>QEMU</em> or <em>KVM</em> then virt-p2v will produce a
210 configuration file which is customized for the selected system.  If
211 you select <em>Other</em> then virt-p2v will produce a generic configuration
212 file which will probably require hand-modification to work.</p>
213 </dd>
214 <dd>
215 <p>See also <a href="http://libvirt.org/format.html">http://libvirt.org/format.html</a>.</p>
216 </dd>
217 </li>
218 <dt><strong><a name="item_machine_architecture">Machine architecture</a></strong>
219
220 <dd>
221 <p>This question asks you to choose the machine architecture.  Virt-p2v
222 can normally detect this, so you should leave it as <em>Auto-detect</em>.</p>
223 </dd>
224 </li>
225 <dt><strong><a name="item_memory">Memory</a></strong>
226
227 <dd>
228 <p>This question asks you to choose the amount of memory (RAM) in
229 megabytes assigned to the virtual machine.</p>
230 </dd>
231 <dd>
232 <p>If the entry is left blank, then virt-p2v will try to autodetect how
233 much RAM is present in the physical machine and use that, and this is
234 probably a good choice for most simple migrations.</p>
235 </dd>
236 </li>
237 <dt><strong><a name="item_virtual_cpus">Virtual CPUs</a></strong>
238
239 <dd>
240 <p>This question asks you to choose the number of virtual CPUs assigned
241 to the virtual machine.  Choosing <code>1</code> causes the virtual machine to
242 be uniprocessor, and choosing some number greater than 1 causes the
243 virtual machine to be SMP.</p>
244 </dd>
245 <dd>
246 <p>If the entry is left blank, then virt-p2v will try to autodetect how
247 many CPU cores are present in the physical machine and use that, and
248 this is probably a good choice for most simple migrations.</p>
249 </dd>
250 </li>
251 <dt><strong><a name="item_mac_address">MAC address</a></strong>
252
253 <dd>
254 <p>Here you should enter a MAC address for the virtual machine's emulated
255 network card.  MAC addresses are written as <code>aa:bb:cc:dd:ee:ff</code> where
256 <code>aa</code>, <code>bb</code> etc are hexadecimal octets.</p>
257 </dd>
258 <dd>
259 <p>Leaving it blank will cause virt-p2v to choose a random MAC address
260 within the <code>00:16:3e:..</code> space reserved for Xen guests.  These MAC
261 addresses are not tested for uniqueness so there is a very small
262 chance that they could coincide, which would leave a guest unable to
263 access the virtual network.</p>
264 </dd>
265 </li>
266 <dt><strong><a name="item_verify_and_proceed">Verify and proceed</a></strong>
267
268 <dd>
269 <p>In this step you are asked to verify the settings above.  If any are
270 incorrect, use the <em>Back</em> button to navigate back to the setting.  If
271 all settings are correct, use the <em>OK</em> button to begin the P2V
272 conversion.</p>
273 </dd>
274 </li>
275 <dt><strong><a name="item_network_autoconfiguration">Network autoconfiguration</a></strong>
276
277 <dd>
278 <p>If you selected network autoconfiguration above then virt-p2v tries to
279 autoconfigure the network and ping the remote host.  It then asks
280 <em>Did automatic network configuration work?</em></p>
281 </dd>
282 <dd>
283 <p>You should answer <code>y</code> here if it worked.</p>
284 </dd>
285 <dd>
286 <p>Answering <code>n</code> will drop you into a command shell.</p>
287 </dd>
288 <dd>
289 <p>You can also switch to another virtual console if you need to perform
290 additional tests.  See section <strong>GETTING A SHELL</strong> below.</p>
291 </dd>
292 </li>
293 <dt><strong><a name="item_ssh_connection">SSH connection</a></strong>
294
295 <dd>
296 <p>Unless you have set up an SSH key, or the SSH server on the remote
297 host allows passwordless logins, then for each file that has to be
298 transferred to the remote host you will need to confirm the identity
299 of the remote host and/or enter a password.</p>
300 </dd>
301 <dd>
302 <p>To understand more about this, please see the <em>ssh(1)</em> manual page.</p>
303 </dd>
304 </li>
305 </dl>
306 <p>
307 </p>
308 <h2><a name="booting_p2v_guest_on_virtualization_host">BOOTING P2V GUEST ON VIRTUALIZATION HOST</a></h2>
309 <p>Once the P2V conversion has been completed, and assuming it was
310 successful, you will find a configuration file and one or more disk
311 images on the remote host.</p>
312 <p>The files will be located in the directory selected, usually
313 <code>/var/lib/xen/images</code>.  The names of the files are made up of:</p>
314 <p><code>p2v-hostname-YYYYMMDDHHMM.conf</code> or
315 <code>p2v-hostname-YYYYMMDDHHMM-hdX.img</code></p>
316 <p>To simply start up the guest, use the following commands as root:</p>
317 <pre>
318  virsh define p2v-foo-2008MMDDHHMM.conf
319  virsh start foo</pre>
320 <p>For QEMU/KVM do:</p>
321 <pre>
322  virsh -c qemu:///system define p2v-foo-2008MMDDHHMM.conf
323  virsh -c qemu:///system start foo</pre>
324 <p>For other hypervisors you will need to edit the configuration file and
325 read <a href="http://libvirt.org/uri.html">http://libvirt.org/uri.html</a>.</p>
326 <p>
327 </p>
328 <hr />
329 <h1><a name="getting_a_shell">GETTING A SHELL</a></h1>
330 <p>During all stages of P2V questions and conversion you can get a root
331 shell on the physical machine.  Use <em>ALT</em> <em>F2</em> keys to switch to the
332 second virtual console, then log in as <em>root</em> with no password.</p>
333 <p>
334 </p>
335 <h2><a name="log_file">LOG FILE</a></h2>
336 <p>Virt-p2v writes a detailed log file to <code>/tmp/virt-p2v.log</code>.  (Note
337 that this <code>/tmp</code> directory is a ramdisk on the live CD, not the same
338 as the <code>/tmp</code> directory of the physical machine, and more importantly
339 it disappears when the machine is rebooted).</p>
340 <p>If you are reporting a bug, please always supply this file.</p>
341 <p>
342 </p>
343 <hr />
344 <h1><a name="server_requirements">SERVER REQUIREMENTS</a></h1>
345 <p>The virtualization host (remote host) must be running an SSH daemon
346 (<code>sshd</code>), accessible from the physical machine which is being
347 migrated.</p>
348 <p>Previous versions of virt-p2v could use a special virt-p2v server.
349 However this capability has been removed since there was practically
350 no benefit.</p>
351 <p>
352 </p>
353 <hr />
354 <h1><a name="building_a_custom_live_cd">BUILDING A CUSTOM LIVE CD</a></h1>
355 <p>To build a custom live CD you must download the source for virt-p2v
356 from <a href="http://et.redhat.com/~rjones/virt-p2v/">http://et.redhat.com/~rjones/virt-p2v/</a> or from the Mercurial
357 source repository (see website for details).</p>
358 <p>Please read the <code>README</code> file to find the dependencies which are all
359 in Fedora &amp;gt; 8 or EPEL &amp;gt; 5.</p>
360 <p>The steps to creating a custom live CD are:</p>
361 <ol>
362 <li><strong><a name="item_edit_virt_2dp2v_and_adjust_defaults">Edit <code>virt-p2v</code> and adjust defaults</a></strong>
363
364 <p>Find the section ``TO MAKE A CUSTOM virt-p2v SCRIPT ...'' which is near
365 to the top of this file.  Edit the defaults in this section as
366 detailed below.</p>
367 </li>
368 <li><strong><a name="item_virt_2dp2v__2d_2dtest_to_verify_your_changes"><code>virt-p2v --test</code> to verify your changes</a></strong>
369
370 <p>This command should not print anything at all.  If it prints any
371 message, then you will need to fix the error by going back to the
372 first step.</p>
373 </li>
374 <li><strong><a name="item_make_build_or_make_update_to_build_a_custom_live_c"><code>make build</code> or <code>make update</code> to build a custom live CD</a></strong>
375
376 <p><code>make build</code> will create a complete ISO from scratch.  <code>make update</code>
377 can be used to build a ``quick'' developer ISO by updating an existing
378 ISO image.  See section <strong>ISO ATTACHMENTS</strong> below for more details.</p>
379 </li>
380 <li><strong><a name="item_burn_the_iso_to_a_cd_2dr_and_test">Burn the ISO to a CD-R and test</a></strong>
381
382 </ol>
383 <p>
384 </p>
385 <h2><a name="editing_defaults_in_the_virtp2v_script">EDITING DEFAULTS IN THE <code>virt-p2v</code> SCRIPT</a></h2>
386 <p>For each default, setting it to <code>None</code> will ask the user.  All of the
387 defaults are set to <code>None</code> in the standard, uncustomized virt-p2v
388 script, and so the standard script asks all the questions.</p>
389 <p>You may edit <code>virt-p2v</code> and change the defaults, in which case the
390 user will not be questioned.  In this way you can make the script
391 partially or fully automated.</p>
392 <p><em>Note about OCaml code:</em>  <code>None</code> and <code>Some foo</code> are similar to the
393 concept of a NULL pointer versus non-NULL pointer in other languages.
394 This a variant type defined as:</p>
395 <p>type &#945; option = None | Some of &#945;</p>
396 <dl>
397 <dt><strong><a name="item_greeting"><code>greeting</code></a></strong>
398
399 <dd>
400 <p>If this is <code>true</code> then we wait for a keypress after boot and at a
401 couple of other stages.  If set to <code>false</code> then we try not to wait
402 for any keypresses (so more automated live CDs are possible).</p>
403 </dd>
404 </li>
405 <dt><strong><a name="item_remote_host"><code>remote_host</code></a></strong>
406
407 <dd>
408 <p>Set this to <code>Some &quot;hostname&quot;</code> or <code>Some &quot;IP-address&quot;</code> to
409 provide the name of the remote host.</p>
410 </dd>
411 </li>
412 <dt><strong><a name="item_remote_port"><code>remote_port</code></a></strong>
413
414 <dd>
415 <p>Set this to <code>Some port</code> (eg. <code>Some 22</code>) to provide the port number
416 of the remote host's SSH daemon.</p>
417 </dd>
418 </li>
419 <dt><strong><a name="item_remote_directory"><code>remote_directory</code></a></strong>
420
421 <dd>
422 <p>Set this to <code>Some &quot;path&quot;</code> (eg. <code>Some &quot;/var/lib/xen/images&quot;</code>) to
423 provide the directory where we update P2V converted images and
424 configuration files.</p>
425 </dd>
426 </li>
427 <dt><strong><a name="item_remote_username"><code>remote_username</code></a></strong>
428
429 <dd>
430 <p>Set this to <code>Some &quot;username&quot;</code> (eg. <code>Some &quot;root&quot;</code>) to provide the SSH
431 username to use on the remote system.</p>
432 </dd>
433 </li>
434 <dt><strong><a name="item_devices_to_send"><code>devices_to_send</code></a></strong>
435
436 <dd>
437 <p>Set this to a list of block devices to send to the remote system.
438 For example, <code>Some [&quot;sda&quot;; &quot;sdb&quot;]</code>.</p>
439 </dd>
440 </li>
441 <dt><strong><a name="item_root_filesystem"><code>root_filesystem</code></a></strong>
442
443 <dd>
444 <p>Set this to the name of the root filesystem.</p>
445 </dd>
446 <dd>
447 <p>For a disk partition (eg. <code>/dev/sda1</code>), use:</p>
448 </dd>
449 <dd>
450 <pre>
451  Some (Part (&quot;sda&quot;, &quot;1&quot;))</pre>
452 </dd>
453 <dd>
454 <p>For a logical volume (eg. <code>/dev/VolGroup00/LogVol00</code>), use:</p>
455 </dd>
456 <dd>
457 <pre>
458  Some (LV (&quot;VolGroup00&quot;, &quot;LogVol00&quot;))</pre>
459 </dd>
460 </li>
461 <dt><strong><a name="item_network"><code>network</code></a></strong>
462
463 <dd>
464 <p>Set this to the choice for network setup.  Use either <code>Some Auto</code> or
465 <code>Some Shell</code> for auto-configuration or shell (manual) configuration
466 respectively.</p>
467 </dd>
468 </li>
469 <dt><strong><a name="item_hypervisor"><code>hypervisor</code></a></strong>
470
471 <dd>
472 <p>Set this to the choice of hypervisor or virtualization system.  The
473 choices are: <code>Some Xen</code>, <code>Some QEMU</code> or <code>Some KVM</code>.</p>
474 </dd>
475 </li>
476 <dt><strong><a name="item_architecture"><code>architecture</code></a></strong>
477
478 <dd>
479 <p>Set this to the architecture.  The choices are:
480 <code>Some I386</code> (i386 and up, 32 bit),
481 <code>Some X86_64</code> (AMD and Intel x86-64, 64 bit),
482 <code>Some IA64</code> (Intel IA64),
483 <code>Some PPC</code> (PowerPC, 32 bit),
484 <code>Some PPC64</code> (PowerPC, 64 bit),
485 <code>Some SPARC</code> (Sun SPARC, 32 bit),
486 <code>Some SPARC64</code> (Sun SPARC, 64 bit),
487 <code>OtherArch &quot;foo&quot;</code> (a hypothetical architecture called <em>foo</em>), or
488 <code>UnknownArch</code> to auto-detect the architecture.</p>
489 </dd>
490 </li>
491 <dt><strong><a name="item_memory"><code>memory</code></a></strong>
492
493 <dd>
494 <p>Set this to the size of memory in megabytes, eg. <code>Some 256</code>.  If you
495 set this to <code>Some 0</code> then virt-p2v will try to autodetect the amount
496 of RAM installed on the physical machine.</p>
497 </dd>
498 </li>
499 <dt><strong><a name="item_vcpus"><code>vcpus</code></a></strong>
500
501 <dd>
502 <p>Set this to the number of virtual CPUs, eg. <code>Some 1</code>.  If you set
503 this to <code>Some 0</code> then virt-p2v will try to autodetect the number of
504 CPU cores on the physical machine.</p>
505 </dd>
506 </li>
507 <dt><strong><a name="item_mac_address"><code>mac_address</code></a></strong>
508
509 <dd>
510 <p>Set this to the MAC address for the virtual network card, eg. <code>Some
511 &quot;aa:bb:cc:dd:ee:ff&quot;</code>.  If you set this to <code>Some &quot;&quot;</code> then virt-p2v
512 will choose a random MAC address within the <code>00:16:3e:..</code> space
513 reserved for Xen guests.  These MAC addresses are not tested for
514 uniqueness so there is a very small chance that they could coincide,
515 which would leave a guest unable to access the virtual network.</p>
516 </dd>
517 </li>
518 </dl>
519 <p>
520 </p>
521 <h2><a name="iso_attachments">ISO ATTACHMENTS</a></h2>
522 <p>Rebuilding a custom ISO is time-consuming.  You can make a ``quick''
523 developer ISO by updating an existing ISO image with a new custom
524 <code>virt-p2v</code> script.  This is useful for testing purposes.</p>
525 <p>From the source directory, assuming that you have downloaded or
526 built an existing <code>virt-p2v-*.iso</code>, you can just do:</p>
527 <pre>
528  make update</pre>
529 <p>or the equivalent manual command:</p>
530 <pre>
531  ./iso-attach virt-p2v-VERSION.iso virt-p2v</pre>
532 <p>
533 </p>
534 <hr />
535 <h1><a name="booting_from_a_usb_key_instead_of_a_cd">BOOTING FROM A USB KEY INSTEAD OF A CD</a></h1>
536 <p>If you wish to boot from a USB keydrive, use the livecd-iso-to-disk
537 tool:</p>
538 <pre>
539  livecd-iso-to-disk virt-p2v-$VERSION.iso /dev/sdX1</pre>
540 <p>(Replace /dev/sdX1 with the actual USB device).</p>
541 <p>In my experience I also had to set up a suitable MBR:</p>
542 <pre>
543  cat /usr/lib/syslinux/mbr.bin &gt; /dev/sdX</pre>
544 <p>
545 </p>
546 <hr />
547 <h1><a name="testing_an_iso_under_qemu_or_kvm">TESTING AN ISO UNDER QEMU OR KVM</a></h1>
548 <p>If you have a virtual guest running under QEMU or KVM then
549 you can test the P2V conversion process on the guest.</p>
550 <p>(Technically this is a V2V -- virtual to virtual -- conversion).</p>
551 <p>From the source directory do:</p>
552 <pre>
553  make boot HDA=qemuimage.img</pre>
554 <p>where <code>qemuimage.img</code> is the name of the QEMU/KVM image.</p>
555 <p>You can also supply an <code>HDB</code> parameter to specify a second disk.</p>
556 <p>
557 </p>
558 <hr />
559 <h1><a name="mailing_list">MAILING LIST</a></h1>
560 <p>Please direct questions to the et-mgmt-tools mailing list
561 <a href="http://www.redhat.com/mailman/listinfo/et-mgmt-tools">http://www.redhat.com/mailman/listinfo/et-mgmt-tools</a>
562 &lt;et-mgmt-tools @ redhat . com&gt;</p>
563 <p>
564 </p>
565 <hr />
566 <h1><a name="see_also">SEE ALSO</a></h1>
567 <p><em>virsh(1)</em>,
568 <a href="http://www.libvirt.org/ocaml/">http://www.libvirt.org/ocaml/</a>,
569 <a href="http://www.libvirt.org/">http://www.libvirt.org/</a>,
570 <a href="http://et.redhat.com/~rjones/">http://et.redhat.com/~rjones/</a>,
571 <a href="http://caml.inria.fr/">http://caml.inria.fr/</a></p>
572 <p>
573 </p>
574 <hr />
575 <h1><a name="authors">AUTHORS</a></h1>
576 <p>Richard W.M. Jones &lt;rjones @ redhat . com&gt;</p>
577 <p>
578 </p>
579 <hr />
580 <h1><a name="copyright">COPYRIGHT</a></h1>
581 <p>(C) Copyright 2007-2008 Red Hat Inc., Richard W.M. Jones
582 <a href="http://libvirt.org/">http://libvirt.org/</a></p>
583 <p>This program is free software; you can redistribute it and/or modify
584 it under the terms of the GNU General Public License as published by
585 the Free Software Foundation; either version 2 of the License, or
586 (at your option) any later version.</p>
587 <p>This program is distributed in the hope that it will be useful,
588 but WITHOUT ANY WARRANTY; without even the implied warranty of
589 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
590 GNU General Public License for more details.</p>
591 <p>You should have received a copy of the GNU General Public License
592 along with this program; if not, write to the Free Software
593 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</p>
594 <p>
595 </p>
596 <hr />
597 <h1><a name="reporting_bugs">REPORTING BUGS</a></h1>
598 <p>Bugs can be viewed on the Red Hat Bugzilla page:
599 <a href="https://bugzilla.redhat.com/">https://bugzilla.redhat.com/</a>.</p>
600 <p>If you find a bug in virt-p2v, please follow these steps to report it:</p>
601 <ol>
602 <li><strong><a name="item_check_for_existing_bug_reports">Check for existing bug reports</a></strong>
603
604 <p>Go to <a href="https://bugzilla.redhat.com/">https://bugzilla.redhat.com/</a> and search for similar bugs.
605 Someone may already have reported the same bug, and they may even
606 have fixed it.</p>
607 </li>
608 <li><strong><a name="item_capture_debug_and_error_messages">Capture debug and error messages</a></strong>
609
610 <p>At the point where you get the error or unexpected behaviour,
611 go to the second virtual console (<em>ALT</em> <em>F2</em>) and look at
612 the logfile <code>/tmp/virt-p2v.log</code>.  Please make sure that
613 this file is attached to your bug report.</p>
614 </li>
615 <li><strong><a name="item_get_version_of_virt_2dp2v">Get version of virt-p2v</a></strong>
616
617 <p>The version is in the name of the ISO.  If you have built a custom
618 virt-p2v ISO, please describe any changes that you have made.</p>
619 </li>
620 <li><strong><a name="item_submit_a_bug_report_2e">Submit a bug report.</a></strong>
621
622 <p>Go to <a href="https://bugzilla.redhat.com/">https://bugzilla.redhat.com/</a> and enter a new bug.
623 Please describe the problem in as much detail as possible.</p>
624 <p>Remember to include the version number (step 3) and to
625 attach the log file (step 2).</p>
626 </li>
627 <li><strong><a name="item_assign_the_bug_to_rjones__40_redhat_2ecom">Assign the bug to rjones @ redhat.com</a></strong>
628
629 <p>Assign or reassign the bug to <strong>rjones @ redhat.com</strong> (without the
630 spaces).  You can also send me an email with the bug number if you
631 want a faster response.</p>
632 </li>
633 </ol>
634
635 </body>
636
637 </html>