3.0

Table Of Contents
VMware, Inc. 75
Appendix A Appendix: Migration with p2vTool Command-Line Interface
VCB Restore XML Input File Examples
HerearetwoexamplesofXMLinputfilesforap2vToolrestoreofaConsolidatedBackupimagetoamanaged
VMwareproduct.
Example A-10. Restoring a VCB Image to an ESX Server 3.x Host Through VirtualCenter
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Restore a VCB image to an ESX 3.x machine through VirtualCenter
-->
<p2v version="1.0" xmlns="http://www.vmware.com/v2/sysimage/p2v"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.vmware.com/v2/sysimage/p2v p2v.xsd">
<source>
<!-- the "password" attribute is only used for encrypted sources such as the SV2I format
and can be omitted or other types of sources -->
<hostedSpec password="" path="C:\MyVirtualMachine\myvcbimage.vmx" />
</source>
<dest>
<managedSpec datastore="MYVMFS3" folder="" host="my_esx3_host" resourcePool="myrsrpool"
vmName="vcbrestore">
<creds host="myVCServer" password="" port="" username="admin" />
</managedSpec>
</dest>
<!-- The "keepIdentity" optional attribute is used to indicate whether an "identity restore"
is attempted. The attribute must be set to true if the VM is to be re-imported
after it has been lost (deleted). If the VM is to be re-imported for cloning
purpose, the flag must be set to false. The default is false. This attribute
only applies to managed destination -->
<!-- If the "preserveDeviceBackingInfo" optional attribute is set to true, all the device
backing information for the VM is restored. This includes reconnecting CDROMs,
serial port, parallel port if devices exist. The default is set to false. This
attribute only applies to managed destination -->
<importParams clonePagefile="false" diskType="VMFS" keepIdentity="true"
preserveDeviceBackingInfo="false" targetProductVersion="PRODUCT_MANAGED">
<!-- If the "preserveNicsInfo" attribute is set to true, all network interfaces will be
preserved and get reconnected to the original virtual switches if exist.
Manually assigned ethernet MAC addresses will be preserved as well. If it
is set to false and nicmappings node is empty, all the VM's network
interfaces will be stripped off. The default value is false.-->
<nicMappings preserveNicsInfo="true" />
</importParams>
<postProcessingParams installTools="false" powerOnVM="true" />
</p2v>