Multiple disk support while deploying to host through CLI
Customization parameters are unique, platform-specific properties that allow a user to customize the action that the user is performing. Customization parameters are available in many different types, but are all specified in a similar fashion. Using the OID from the previous step, make a GET request to the URL specified below. The result will be a list of customization properties that can be used to deploy a virtual appliance.
These customization parameters contain all the information required for completing a deployment to a host request. For a typical deployment, there are customization parameters for processor, memory, network, and storage. The customization parameters for deployment combine information from the host chosen for the deploy action and properties from the OVF descriptor file from the virtual appliance.
The following example shows the customization parameters for deployment in a typical Power Systems environment. Customization parameters for other platforms (such as KVM, IBM z/VM, and so on) will be different.
Listing 11. Sample response representation
Listing 12 shows the actual deployment to host operation using the
storagemapping table parameter. Deploy request is being executed using the
deployva smcli command. We have assigned storage using
poolstorages under the
storagemapping parameter table. We have also set the
disksize and the
storageconnection values in the request.
Listing 12. Sample response representation
USERID@c612n18:~>smcli deployva -v -s 29832 -V 152498 -a deploy_new -A "storagemapping =assignedStorage:poolstorages;disksize:10240;storageconnection:NPIV, storagemapping=assignedStorage:existingdisks;disksize:5120;storageconnection: NPIV,virtualnetworks[Discovered-1014-0]=hostVnet:Discovered/2206/0/42990, product.vs0.com.ibm.ovf.vmcontrol.system.networking.domainname=pokprv.stglabs.ibm.com, product.vs0.com.ibm.ovf.vmcontrol.system.networking.dnsIPaddresses=10.20.0.2, product.vs0.com.ibm.ovf.vmcontrol.system.networking.hostname=ip10-32-41-93, product.vs0.com.ibm.ovf.vmcontrol.adapter.networking.ipv4addresses.6=10.32.41.93, product.vs0.com.ibm.ovf.vmcontrol.system.networking.ipv4defaultgateway=10.32.41.1, product.vs0.com.ibm.ovf.vmcontrol.adapter.networking.ipv4netmasks.6=255.255.255.0" Mon Feb 11 12:45:09 EST 2013 deployva Operation started. Attempt to get the default customization data for deploy_new. Attempt to get the deploy_new customization data. Update collection with user entered attributes. Attempt to validate the deploy request for 152498. Attempt to deploy new. Workload VA1_1811 was created. Virtual server, ip10-32-41-93, added to workload, VA1_1811. Workload, VA1_1811, is started. Mon Feb 11 12:49:09 EST 2013 deployva Operation took 240 seconds. USERID@c612n18:~>