Quantcast
Channel: VMware Communities : Popular Discussions - VIX API
Viewing all articles
Browse latest Browse all 34639

VIX and ESX connection issues

$
0
0

 

I want to transfer a .vmx and set of .vmdk files to an ESX3 Server from a separate computer running Windows XP SP2 (no VMWare).  I am also working with the VMWare Infrastructure SDK (web services) to configure the guest OS once it is uploaded.  I did not see an API that performs the upload.  If there is one, please let me know.  In the meantime, it appeared that the VIX API VixHost_RegisterVM() method might perform the transfer similar to the VMWare Converter.  So I put together some "C" code from the examples, but cannot even get the VixHost_Connect to work properly. I have read just about every posting and tried the different suggestions.  I am specifying VIX_SERVICEPROVIDER_DEFAULT as the hostType.  I have tried both 0 and 902 for the port - no difference.  If I use VIX_API_VERSION for the apiVersion, it returns 0 (VIX_INVALID_HANDLE).  If I specify "1", then the method returns what appears to be a valid handle.  However, when I call VixJob_Wait(), it returns an error code of 16 - "The system returned an error. Communication with the virtual machine may have been interrupted".  So to summarize my questions:

 

 

Does VIX work with ESX3 Servers?

 

 

Is the Vix_Host_Connect() method used to transfer virtual machine files (.vmx and .vmdk) from a separate computer to the ESX3 Server?

 

 

If it does, what am I doing wrong?  If it doesn't, what SDK and interface should I be using?  A URL to documentation would be fabulous.

 

 

Does the VMWare Infrastructure SDK have a comparable function to transfer files, and if so, what is it?

 

 

Thank you for any help.

 

 


Viewing all articles
Browse latest Browse all 34639

Trending Articles



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