VMware Snapshot Delete

Posted on 2011-05-11
Last Modified: 2012-05-11
I have one prod VM and i cretaed one snapshot. Now i wants to delete the snapshot without committing to the original  vmdk. ( After creating snapshot applied patches and os is currepted, so need to revert to original vmdk by online)
Question by:kbjijo
    LVL 6

    Expert Comment

    you don't actually want to delete the snapshot,
    what VMware solution are you using ?
    LVL 16

    Expert Comment

    then don't choose delete, choose revert(Go To) in the snapshot manager.

    Author Comment


    If i am not deleted the snapsht, then  present operation will happens on snpashot only!
    So i wants to work on original vmdk from time which snapshot taken
    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    Delete = Committ.

    Revert = Get Rid of Current State. (and the snapshot will be gone!)

    Author Comment

    ok thanks for the reply.
    If i have multiple (eg:3 snapshots) snapshots, and i wants to revert to original vmdk(base disk) without committing . How can i do it

    "Vm->Snapshots->Revert to snapshots" which disk it will pointing to

    Also please let me know to revert the snapshot in command line
    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    select the top snashot

    what version of VMware are you using?
    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    top snapshot

    Author Comment

    i have esxi 4.1 & esx 4.0

    LVL 116

    Accepted Solution

    To consolidate snapshots on an ESX/ESXi host:

        Log in as root to the ESX/ESXi service console through iLO/DRAC. To log in to ESXi hosts using SSH, see Tech Support Mode for Emergency Support(1003677) and Using Tech Support Mode in ESXi 4.1 (1017910).
        Navigate to the virtual machine directory containing the .vmdk files.
        Run this command to list the files in the directory:

         ls -al

        Locate any VM_NAME-00000#.vmdk or VM_NAME-00000#-delta.vmdk snapshot files. Look for numbered files following the hyphen (-) in the name. Also, verify that the timestamp is current on the delta files.
        Run this command to get a list of virtual machines and the VMID for each virtual machine:
        vim-cmd vmsvc/getallvms

        ,Make a note of the VMID for the specific virtual machine.
        To verify if the snapshot exists, run this command and check the Snapshot Name, Snapshot Created On, and Snapshot State:

        vim-cmd vmsvc/snapshot.get [VMID]

        You see an output similar to:

        Get Snapshot:
        --Snapshot Name        : Test
        --Snapshot Desciption  :
        --Snapshot Created On  : 8/27/2009 13:49:55
        --Snapshot State       : powered on

        Run this command to remove all snapshots:

        vim-cmd vmsvc/snapshot.removeall [VMID]

        If the removeall fails with the error cannot find vmid, run this command to create a new snapshot:

        vim-cmd vmsvc/snapshot.create [VmId] [snapshotName]

        Run this command and try to remove all snapshots again:

        vim-cmd vmsvc/snapshot.removeall [VmId]  


    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    One of the new features of a version 7.0 or later virtual machine, supported in VMware vSphere 4.1, 5.0 or the VMware vSphere Hypervisor ESXi 4.1, ESXi 5.0 often overlooked by VMware Administrators is the ability to add and connect USB devices conne…
    VM backup deduplication is a method of reducing the amount of storage space needed to save VM backups. In most organizations, VMs contain many duplicate copies of data, such as VMs deployed from the same template, VMs with the same OS, or VMs that h…
    Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
    Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now