Create virtual guest
This topic lists the XML samples and node element descriptions required for configuring the request and response of the VMware_Integration module for creating a virtual guest.
The following table lists the workflow names used for creating a virtual guest in the VMware and BMC Cloud Lifecycle Management integration:
Workflow type | Name |
|---|---|
CLM_Integration | Create Virtual Guest |
VMware_Integration | Create Virtual Guest Implementation |
Request to VM_Integration module
All of the following node elements are required for configuring the request:
Response from VMware_Integration module
XML sample for configuring the response
<name>rbed-7</name>
<uuid>4206797a-b100-bf38-7af8-c834b6ad415a</uuid>
<powered-on>true</powered-on>
<total-memory>2048</total-memory>
<vcpus>1</vcpus>
<operating-system>Ubuntu Linux (64-bit)</operating-system>
<local-disks>
<disk>
<name>/</name>
<capacity>1962020864</capacity>
</disk>
<disk>
<name>/boot</name>
<capacity>160439296</capacity>
</disk>
<disk>
<name>/logs</name>
<capacity>3769229312</capacity>
</disk>
</local-disks>
<nic-settings>
<nic-setting>
<ip-address>10.129.145.203</ip-address>
<subnet-mask>255.255.252.0</subnet-mask>
<gateway>10.129.144.1</gateway>
</nic-setting>
</nic-settings>
</virtual-guest>
All of the following node elements are required for configuring the response:
Element | Description |
|---|---|
<virtual-guest> | Represents a valid virtual guest entry |
<name> | Specifies the name of a virtual guest |
<uuid> | Specifies a unique UUID for the virtual guest |
<powered-on> | Specifies the power state of the virtual guest |
<total-memory> | Specifies the total memory, in MB, of the virtual guest |
<vcpus> | Specifies the number of CPUs for the virtual guest |
<operating-system> | Specifies the operating system description |
<local-disks> | Specifies a list of local disks attached, as seen from an operating system |
<disk> | Represents one local disk entry |
<name> | Specifies the name of virtual disk as seen from inside the operating system |
<capacity> | Specifies the capacity of local disk in bytes |
<nic-settings> | Specifies the settings of NICs attached to virtual guest |
<nic-setting> | Specifies the settings of one attached NIC |
<ip-address> | Specifies the IP address associated with the NIC |
<subnet-mask> | Details the subnet mask associated with the IP address |
<gateway> | Specifies a gateway associated with the IP address |
If an error occurs during execution, error XML code is returned in the following format:
<error>Error Message</error>
</value>