VMware
 

Knowledge Base

Search the Knowledge Base:

Products:
Search In:
 

Committing snapshots from within the Service Console

Purpose

This article provides information related to committing a snapshot that is present in a virtual machine using the command-line in the service console.

Resolution

the camtasia studio video content presented here requires a more recent version of the adobe flash player. if you are you using a browser with javascript disabled please enable it now. otherwise, please update your version of the free flash player by downloading here.

*If you find the video does not play, try updating your flash player.
**To watch the video in full-screen, choose the full-screen option at the bottom right of the player.
 
VMware recommends having free space equal to the snapshots and base disk size before committing snapshots.
 
If you do not have enough free space, migrate to another disk that has enough free space and consolidate the snapshots into a new virtual disk file (VMDK). For more information on consolidating disk files, see Consolidating snapshots (1007849) .

To commit snapshots to a base disk from the command-line:
  1. Find the path to the VMX file of the virtual machine either from the Virtual Infrastructure Client or by running the following command:

    # vmware-cmd -l

    /vmfs/volumes/volume-UUID-or-name/vm1/vm1.vmx
    /vmfs/volumes/volume-UUID-or-name/vm2/vm2.vmx


  2. Determine if the virtual machine has snapshots:

    # vmware-cmd /vmfs/volumes/volume-UUID-or-name/vm1/vm1.vmx hassnapshot

    The output will look like one of the following:
    hassnapshot() =

    or

    hassnapshot() = 1

    If the result is not equal to one (1), there are no snapshots for the virtual machine and there is no reason to proceed further.

  3. Remove (or commit) the snapshot by running the following command:

    # vmware-cmd /vmfs/volumes/volume-UUID-or-name/vm1/vm1.vmx removesnapshots
    removesnapshots() = 1


    If the result is one (1), the snapshots have been successfully committed. If the result is something other than one (1), file a Support Request with VMware Support and note this KB Article ID in the problem description. For more information, see How to Submit a Support Request.

Note: The above procedure deletes all snapshots on the virtual machine and commits the changes in the delta disks to the base disc. The base disc has all changes to the data.

Additional Information

For more information on performing commits to a snapshot using the Virtual Infrastructure Client, refer to the Basic System Administration guide at http://pubs.vmware.com/vi301/admin/BSA_Snapshots.17.7.html .

Feedback

Rating: 1 - Lowest 2 3 4 5 - Highest (6 Ratings)   

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (2000 or fewer characters)
Submit
Rating: 1 - Lowest 2 3 4 5 - Highest (6 Ratings)   
Actions