There's not a ton of documentation on this unfortunately. To generate the xml you can use 'Virtualization.generateInputXml' but I'm not sure what methods would be supported for this. if you are trying to modify the cpu/ram/nic, why not use a blpackage? i don't think you would do that w/ a vgp. the vgp should only be for the initial deployment of the container.
Thanks a lot for pointing me to Virtualization.generateInputXml!!
Regarding the alternate way with BLpackage, where could I get more information about that? (about how to create such "VM modification" blpackage?
I’m not sure if that’s explicitly documented. If you live browse into the vcenter object down to the vm, you should be able to create a blpackage from there on the various attributes.
1 of 1 people found this helpful
Re. the above Virtualization class, the available methods are those from the VMware Infrastructure SDK: https://www.vmware.com/support/developer/vc-sdk/visdk2xpubs/ReferenceGuide/index-methods.html
For example, to change a VM's CPU/RAM, this xml below will work!
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
Bill Robinson, I knew you would help me with my issue. I didn't know you would literrally open a whole lot of endless possibilities!!
Re the Blpackage, I know of Live Browse and "add to Blpackage", but I find the CLI way a lot more powerfull and flexible for my requirements.