VMware {code}

 View Only

vSphere 8 - locked vmdk file when trying to power on a VM

  • 1.  vSphere 8 - locked vmdk file when trying to power on a VM

    Posted May 05, 2025 02:33 PM

    We upgraded our vSphere to version 8. Until now our code (Java) worked just fine. We used API calls to deploy an OVF template and right after that we were able to power on the VM. Since the upgrade, the API call for deployment returns success, but the API call for powering on the VM fails due to locked flat.vmdk file.

    This is what the log looks like:

    • Completed uploading the VMDK file
    • VM disk is attached and ready
    • Unable to access file <path_to_file>-flat.vmdk since it is locked

    According to ChatGPT, the deploy API call now simply returns "ok, i got your request" and not "i'm done doing what you asked for". I am unable to find anything in the documentation stating this. The solution according to ChatGPT is to use polling and wait for the vmdk file to not being locked and only then power on the VM.

    Has anyone encounter this behavior? Is it indeed the new "by design"?