Create a Custom Image via API

Posted April 27, 2021 543 views
DigitalOceanAPIDevelopmentCustom ImagesDigitalOcean Droplets

When I try to import an image (vmdk disk) from VMWare cloud director via the API directly, I get an error “Your source URL is unreachable”. At the same time, when I store the same vmdk disk in google cloud storage and share a link to it, the import proceeds without any problems.

Could you give me an advice on what could be the problem? Is there a way to avoid unnecessary data transfer (from VMware vcloud director to another storage)?
After all, VMWare gives a direct link which allows to download files without authorization. What is the difference between VMWare and google endpoints?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Seems like DO first request is HTTP HEAD and VMWare Cloud Director doesn’t support this and just returns HTTP 501 code.

This causes the error “Your source URL is unreachable”.

  • And actually, s3 is not a solution for this, because if you want a secure upload - you’ll share it via PresignedUrl. And such URLs support only one HTTP method at a time.