Hi,
I need ManagedObjectReference for the object virtualDiskManager for Extending the size of VirtualDisk.
I tried it as fallows :
service.ExtendVirtualDiskTask( _sic.virtualDiskManager , --- , - ,);
But at runtime value of _sic.virtualDiskManager is showing null .
Managed Object Browser showing value of virtualDiskManager as Unset .
virtualDiskManager ManagedObjectReference:VirtualDiskManager Unset
Could you tell the reason ? Am i missing some setting of Virtual Center Server ?
Thanks in advance for help.
Hi Manoj,
If you want to add a new disk in a VM through VC, you can also use the "ReconfigVM_Task" method to achieve this. Similar to the create VM process, this method takes in the "VirtualMachineConfigSpec" parameter. You can set the "deviceChange" property to add the new virtual disk.
Hope the above information is helpful.
Regards,
Neha
Hi Neha,
Thanks for the reply.
How to add new virtual disk to Virtual Machine .
I am trying out to add virtual disk with the following method,
service.CreateVirtualDiskTask( );
Even this method also requires reference of VirtualDiskManager .
Is there any other way to do the same.
Thanks.
Manoj
Hi Manoj,
If you want to add a new disk in a VM through VC, you can also use the "ReconfigVM_Task" method to achieve this. Similar to the create VM process, this method takes in the "VirtualMachineConfigSpec" parameter. You can set the "deviceChange" property to add the new virtual disk.
Hope the above information is helpful.
Regards,
Neha
Hi Neha.
Thanks for the reply.
Your solution is working fine. Using ReconfigVM_Task method , adding new virtual disk and additional disk space to existing disk tasks are achieved.
Thanks
Manoj
Does anybody know why the VirtualDiskManager is unset?
-JS
As mentioned above, the VirtualDiskManager object is presently available for ESX 3.5 versions only. If you are looking for value of VirtualDiskManager on a VirtualCenter, it will be unset.
Thanks.