3.0

Table Of Contents
VMware, Inc. 71
Appendix A Appendix: Migration with p2vTool Command-Line Interface
Example A-3. Importing a Managed Source to a Hosted Destination
<?xml version="1.0" encoding="UTF-8" ?>
<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>
<managedSpec vmId="a-virtual-machine">
<!-- username and password may be omitted, in which case you will be interactively
prompted for credentials -->
<creds host="vc-server" username="Administrator" password="adminPassword" />
</managedSpec>
</source>
<dest>
<hostedSpec vmName="a-new-virtual-machine" path="d:\My Virtual Machines" />
</dest>
<importParams targetProductVersion="PRODUCT_WS_5X" />
<postProcessingParams>
<reconfigParams />
</postProcessingParams>
</p2v>
Example A-4. Importing a Managed Source to a Managed Destination
<?xml version="1.0" encoding="UTF-8" ?>
<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>
<managedSpec vmId="a-virtual-machine">
<!-- username and password may be omitted, in which case you will be interactively
prompted for credentials -->
<creds host="vc-server" username="Administrator" password="adminPassword" />
</managedSpec>
</source>
<dest>
<managedSpec vmName="a-new-virtual-machine">
<!-- username and password may be omitted, in which case you will be interactively
prompted for credentials -->
<creds host="another-vc-server" username="Administrator" password="adminPassword" />
</managedSpec>
</dest>
<importParams targetProductVersion="PRODUCT_MANAGED" />
<postProcessingParams>
<reconfigParams />
</postProcessingParams>
</p2v>