Hi,
I am trying to add an existing VMDK to a virtual machine. The ReconfigVM_Task() API completes without issues and the virtual machine is added with the existing virtual disk as specified.
However, the UUID of the virtual disk clashes with the pre-existing virtual disk of the VM (The virtual disk being added to the VM is same as that of the currently available virtual disk). Even though the UUID value is specified for the new virtual disk, the API ReconfigVM_Task() appears to be reading it from the .vmdk file and using it instead of the new specified VirtualDiskFlatVer2BackingInfo.uuid.
I would like to specify new UUID for the virtual disk that is getting added and not to use the one that exists inside the .vmdk file.
Please advise me on this. I am using 4.1 SDK. The implementation works fine without issues as long as the pre-existing virtual disk UUID and the UUID of new virtual disk to be added to virtual machine are different; otherwise there is a Question
asked on the virtual machine to complete the addition of virtual disk with duplicate UUID.
The modification of UUID of existing virtual disk works provided that the respective virtual machine is powered off. Thus the UUIDs are different and there was no issue observed while adding same disk to the vm.
Thanks,