Quantcast
Channel: VMware Communities : Discussion List - vSphere SDK for Perl
Viewing all articles
Browse latest Browse all 1577

Customization of Virtual Machine at time of creation(cloning) using VSphere SDK 6.0 Java application.

$
0
0

 

 

Hi,

I'm working on Virtual Machine provisioning using VSphere SDK 6.0. I have succeeded in provisioning the virtual machine from template using the following method

ManagedObjectReference cloneTask = vimPort.cloneVMTask(vmRef, vmFolderRef, cloneName, cloneSpec);

I have also got the customization ofMemory, CPUwith the following method.


VirtualMachineConfigSpec configSpec =newVirtualMachineConfigSpec();
  configSpec
.setMemoryMB(512l);
  configSpec
.setNumCPUs(2);


I want to know more customization using the SDK likeHarkDisk, N/W Adapter, Networkingdetails etc. Help me to get some java code samples with the customization of the virtual machine or get me some links mentioning about the same. Any help would be grateful.


Thanks

Saumya T M


Viewing all articles
Browse latest Browse all 1577

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>