Quantcast
Channel: VMware Communities : Discussion List - ESXi
Viewing all articles
Browse latest Browse all 8132

Problem creating a new VM through the vSphere API

$
0
0

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.


Viewing all articles
Browse latest Browse all 8132

Trending Articles



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