VMware vSphere

 View Only

P2V using vCenter Converter converts all volumes

  • 1.  P2V using vCenter Converter converts all volumes

    Posted Nov 23, 2009 09:29 PM

    Hi All,

    I am trying to automate P2V process using Converter Enterprise CLI (converter-tool.exe). Requirement is my script should perform P2V on selected volumes only (volume based cloning)

    In my case converter converting all volumes even though I have added one volume details in my xml. I guess there must be something obviuos I am missing here. Can somebody help me if you have got this volume based cloning worked? or post the sample xml for disk and volume based cloning for converter-tool?

    My r2m.xml looks like this,

    <?xml version="1.0" encoding="UTF-8" ?>

    <p2v version="2.1" 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"

    uninstallAgentOnSuccess="0">

    <source>

    <liveSpec>

    <creds host="Physicalserver" username="Physical user1"

    password="password" />

    </liveSpec>

    </source>

    <dest>

    <managedSpec datastore="STORAGE-1" folder="" host="ESX server" password ="ESX Pwd" resourcePool="R3" vmName="VM1">

    <!-- username and password may be omitted, in which case you will be interactively

    prompted for credentials -->

    <creds host="VC server" username="VC User" password="VC Pwd" />

    </managedSpec>

    </dest>

    <importParams targetProductVersion="PRODUCT_MANAGED" DiskCreateType="MONOLITHIC_FLAT" preserveHWInfo="false" >

    <VolumesToClone>

    • <VolumeCloneInfo resize="true" newSize="38405057024" volumeId="attVol={computer={e694e4849c8788f20a452ae2d3ea81ee2d408c6},1}" separateDisk = "true"/>*

    • </VolumesToClone>*

    </importParams>

    <postProcessingParams>

    <reconfigParams />

    </postProcessingParams>

    </p2v>

    Thanks.