I am trying to automate creating a VM and taking a snapshot.I am using the vSphere Perl SDK.
The problem I am facing is if i create a VM called TestVM , the .vmx file created on the ESXi is TestVM_1.vmx instead of TestVM.vmx due to which my snapshot creation fails.
I face the same problem if I create the VM manually .These is no other VM with the same name.