Hello,
I'm using the following (quick draft )python code to try to create a VM:
[Python] import atexit from pyVim import connect from pyVmomi import vim import - Pastebin.com
But it does not work. The server response after uploading the disk is:
'Not a supported disk format (invalid sparse VMDK header)'
Which is really strange, because I'm uploading a vmdk file that was generated by the server itself (when I created a new VM through the vSphere client), so it should really be valid. (I added the vmdk file as an attachment)
Any help on this would be much appreciated.