kiranchavala opened a new issue, #12328:
URL: https://github.com/apache/cloudstack/issues/12328
### problem
Unable to launch a vm on vmware cluster
### versions
ACS 4.22
vSphere Client version 8.0.3.00000
kvm ubuntu 24.0.4
### The steps to reproduce the bug
1. Have a cloudstack zone with a vmware cluster and a KVM cluster
2. Make sure the systemvm's are running on kvm by setting the value
"system.vm.default.hypervisor" to KVM
3. Register a ova template
4. Launch a vm on the vmware hypervisor
5. Vm fails to launch with the following exception
```
2025-12-23 10:51:46,865 INFO [c.c.h.v.u.VmwareHelper]
(DirectAgent-11:[ctx-13625a0e, 192.168.55.162, job-2496/job-2497, cmd:
CopyCommand]) (logid:09638309) [ignored]failed to get message for exception:
Unable to access file
/vmfs/volumes/7f631381-bb601b02/9fbc19108407304cb68734a287c50236/9fbc19108407304cb68734a287c50236-000001.vmdk
since it is locked
2025-12-23 10:51:46,867 ERROR [c.c.h.v.r.VmwareResource]
(DirectAgent-11:[ctx-13625a0e, 192.168.55.162, job-2496/job-2497, cmd:
CopyCommand]) (logid:09638309) CopyCommand failed due to [Exception:
java.lang.RuntimeException
Message: Unable to access file
/vmfs/volumes/7f631381-bb601b02/9fbc19108407304cb68734a287c50236/9fbc19108407304cb68734a287c50236-000001.vmdk
since it is locked
]. java.lang.RuntimeException: Unable to access file
/vmfs/volumes/7f631381-bb601b02/9fbc19108407304cb68734a287c50236/9fbc19108407304cb68734a287c50236-000001.vmdk
since it is locked
at
com.cloud.hypervisor.vmware.util.VmwareClient.waitForTask(VmwareClient.java:428)
at
com.cloud.hypervisor.vmware.mo.VirtualMachineMO.createFullClone(VirtualMachineMO.java:857)
at
com.cloud.storage.resource.VmwareStorageProcessor.createVMFullClone(VmwareStorageProcessor.java:774)
at
com.cloud.storage.resource.VmwareStorageProcessor.createVMAndFolderWithVMName(VmwareStorageProcessor.java:937)
at
com.cloud.storage.resource.VmwareStorageProcessor.cloneVolumeFromBaseTemplate(VmwareStorageProcessor.java:860)
at
com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:107)
```
<img width="1848" height="226" alt="Image"
src="https://github.com/user-attachments/assets/caa3da16-c022-4505-b6ff-07cceb986736"
/>
<img width="1616" height="260" alt="Image"
src="https://github.com/user-attachments/assets/413b3fd6-bbb2-4a8d-9d92-bd28732c5b82"
/>
--------
The issue doesn't occur if the system vm are running on kvm hypervisor or
If the ova Template is already present in the primary storage.
Previous related issue
https://github.com/apache/cloudstack/pull/10586
### What to do about it?
CloudStack should launch vm on vmware if the systemvm's are running
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]