VMware Cloud Community
JigneshKakadiya
Contributor
Contributor

create multiple VMs using same source VM template simultaneously

Hello All,

I am trying to create/clone multiple VMs using same source VM template simultaneously, when I send second request immediately following first request, we get error message "The entity SOURCE_VM_TEMPLATE is busy completing an operation." and it doesn't accept second request. See below details:

Request-1) To create VM :

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

<RecomposeVAppParams xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1"

        xmlns:environment_1="http://schemas.dmtf.org/ovf/environment/1">

  <SourcedItem>

  <Source href="https://xx.xxx.xx.xx/api/vApp/vm-390c6701-31bd-433f-9f34-f2e03fc29322"/>

  <VmGeneralParams>

      <Name>CSI CentOS Server 13</Name>

            <Description>Test CSI CentOS Server13</Description>

            <NeedsCustomization>true</NeedsCustomization>

  </VmGeneralParams>

  </SourcedItem>

</RecomposeVAppParams>

Response-1) Return TaskId and Status ..which is fine.

Now Immediately sending 2nd request - to create/clone another VM using same source template, note the source href is same as request-1

Request-2)

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

<RecomposeVAppParams xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1"

        xmlns:environment_1="http://schemas.dmtf.org/ovf/environment/1">

  <SourcedItem>

  <Source href="https://xx.xxx.xx.xx/api/vApp/vm-390c6701-31bd-433f-9f34-f2e03fc29322"/>

  <VmGeneralParams>

      <Name>CSI CentOS Server 14</Name>

            <Description>Test CSI CentOS Server14</Description>

            <NeedsCustomization>true</NeedsCustomization>

  </VmGeneralParams>

  </SourcedItem>

</RecomposeVAppParams>

The question is how I can create multiple VMs using same source  VM template simultaneously, even it puts the request in queue that is fine. Let us know if you need additional details and promptly response will be appreciated.

Thanks,

Jignesh

Tags (1)
Reply
0 Kudos
0 Replies