In Vmware Workstation (16.2.1), I am creating linked clones using the following commands
vmrun.exe -T ws clone 'D:\UbuntuMSAN\Ubuntu MSAN.vmx' D:\UbuntuMSAN1\Ubuntu.vmx linked
-cloneName=UbuntuMSAN1
vmrun.exe -T ws clone 'D:\UbuntuMSAN\Ubuntu MSAN.vmx' D:\UbuntuMSAN2\Ubuntu.vmx linked
-cloneName=UbuntuMSAN2
I can delete the VM by using the following command
vmrun.exe -T ws deleteVM D:\UbuntuMSAN1\Ubuntu.vmx
vmrun.exe -T ws deleteVM D:\UbuntuMSAN2\Ubuntu.vmx
The problem is, the linked clone created snapshots on the main VM and I can't delete those using vmrun. (I can delete them manually)
vmrun.exe -T ws listSnapshots 'D:\UbuntuMSAN\Ubuntu MSAN.vmx'
Total snapshots: 2
Clone
Clone
vmrun.exe -T ws deleteSnapshot 'D:\UbuntuMSAN\Ubuntu MSAN.vmx' Clone andDeleteChildren
Error: The name does not uniquely identify one snapshot
vmrun.exe -T ws deleteSnapshot 'D:\UbuntuMSAN\Ubuntu MSAN.vmx' Clone
Error: The name does not uniquely identify one snapshot
This looks like a bug in Vmware Workstation. Can anyone reproduce the same thing?
With Workstation you have a good chance that the vmsd-file is invalid - so check if the vmsd has correct names
Please fix this issue. Thanks!
