VMware Communities
omairmohammed
Contributor
Contributor

vmrun can't delete snapshots with same name

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

 

3 Replies
omairmohammed
Contributor
Contributor

This looks like a bug in Vmware Workstation. Can anyone reproduce the same thing?

Reply
0 Kudos
continuum
Immortal
Immortal

With Workstation you have a good chance that the vmsd-file is invalid - so check if the vmsd has correct names

 

 

 


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

Reply
0 Kudos
imokweb
Contributor
Contributor

Please fix this issue. Thanks!

Reply
0 Kudos