We help IT Professionals succeed at work.

Remove Snapshot with Command line:

jskfan
jskfan asked
on
Remove Snapshot with Command line:

I am trying to remove snapshot using the command lines below.  Retrieving the VMID then Removing snapshots related to that VMID:

 vim-cmd vmsvc/getallvms
Vmid   Name                File                 Guest OS    Version   Annotation
50     VM1    [Shared-Datastore] VM1/VM1.vmx   otherGuest   vmx-14


[root@unknown000c290ed7cb:/vmfs/volumes/5e52777e-3a92a27c-79e3-000c29b2122f/VM1]  vim-cmd vmsvc/snapshot.removeall 50
Remove All Snapshots:
[root@unknown000c290ed7cb:/vmfs/volumes/5e52777e-3a92a27c-79e3-000c29b2122f/VM1]

however when I run the ls -lha  command I still see the snapshot there:
[code]
-rw-------    1 root     root        6.0M Feb 28 10:19 VM1-000001-sesparse.vmdk
-rw-------    1 root     root         300 Feb 28 10:19 VM1-000001.vmdk

Open in new window


in the snapshot manager there is no Snapshot showing.

Any Help ?

Thank you
Comment
Watch Question

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
GOLD EXPERT
Fellow
Expert of the Year 2017

Commented:
Snapshots generated using the API may not appear in Snapshot Manager, if you use the GUI to create snapshots, they will appear in Snapshot Manager.

Author

Commented:
I used the GUI
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
GOLD EXPERT
Fellow
Expert of the Year 2017

Commented:
You used the GUI to create the snapshot and it didn't appear ?

Author

Commented:
correct . It did not appear in the GUI
VMware and Virtualization Consultant
GOLD EXPERT
Fellow
Expert of the Year 2017
Commented:
I thought I replied

Take a new snapshot

wait 120 seconds

delete all

any error

Author

Commented:
Thanks

Explore More ContentExplore courses, solutions, and other research materials related to this topic.