Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 193198

ESX5 HTTP/1.1 403 Forbidden Error

$
0
0

Hi All,

 

Merrt Christmas and a very Happy New year!

 

I'm trying to use vSphere APIs to implement OVA installation on ESX 5. As mentioned in vSphere API reference, it contains three steps:

1. ParseDescriptor to run OVF descriptor against ESX server.

2. create VM entity using importvApp method

3. Step 2 retruns a lease, use the lease URL to upload disk.

 

I have been able to perform step 1 & 2 but M stuck with step 3. I'm using CURL to upload VMDKs and this is what I get on issuing a upload request:

 

* About to connect() to <ip> port 443 (#1)
*   Trying <ip>... * connected
* found 153 certificates in /etc/ssl/certs/ca-certificates.crt
*   server certificate verification SKIPPED
*   compression: NULL
*   cipher: AES-128-CBC
*   MAC: SHA1
> PUT /ha-nfc/526253d6-632a-5b92-92d3-e1affff31af3/disk-0.vmdk HTTP/1.1
User-Agent: libvirt-esx
Host: <ip>
Accept: */*
Cookie: vmware_soap_session="527ae4fc-2f4e-76de-215c-84c3d16854ac"
Content-Type: text/xml; charset=UTF-8
SOAPAction: "urn:vim25"
Content-Length: 7021568

< HTTP/1.1 403 Forbidden
< Date: Sun, 30 Dec 2012 11:53:22 GMT
< Connection: close
< Content-Type: text; charset=plain
< Content-Length: 44

 

Also, I'm using eval license for my ESX host and there is no vCenter attached to the host.

 

Googling did not help much, also I tried to enable all service available in "Security Profile" section of vSphere Client but no help.

 

Thanks for your support!

 

Regards,

Ata


Viewing all articles
Browse latest Browse all 193198

Trending Articles



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