Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

Skip to main content

My Subscriptions

Loading

Knowledge Base

Determining if a virtual machine running on a snapshot (1004343)

Last Updated: 2/2/2021Categories: How toTotal Views: 71431Language:
Chinese (Simplified)JapaneseEnglish

44 like this article

Subscribe to get an email
newsletter with new updates

44 people found this helpful Please provide article feedback:

Learn how VMware Skyline Advisor and Skyline Health Diagnostics work together to provide proactive intelligence and self-service log analysis.

Use Skyline Advisor to avoid issues before they occur across VCF, vSphere, vSAN, NSX, vROps & Horizon. Skyline Findings are based on top KBs, VMSAs/CVEs and design best practices.

Use Skyline Health Diagnostics to root cause vSphere & vSAN logs when an issue occurs. Skyline Health Diagnostic Findings are based on top KBs and VMSA/CVEs. You can use the Skyline Health Diagnostics tool in online or offline mode.

If you require additional help from technical support, please use Skyline Advisor to initiate a Log Assist to reduce time to upload logs. TSEs can also initiate logs to reduce effort.

Purpose

This article provides steps to find and list virtual machines that are running on snapshots.

Snapshots can consume large amounts of resources, monitoring the snapshots can:

Help in monitoring the space usage on the Datastore where the VM resides.

Find running on a snapshot with memory status, snapshot files will take significantly large space on the datastore.

Will prevents VM may Suspend/Poweroff  if the datastore usage reaches 100% usage.

Resolution

There are several methods to determine if a virtual machine is running on snapshot or not.

Using the virtual machine's Snapshot Manager
Viewing the virtual machine configuration file
ESXi Shell using the vim-cmd
Power CLI

Using the virtual machine's Snapshot Manager

Log in to the ESXi Host UI or vCenter Web Client

Right-click on the virtual machine and select Snapshots > Snapshot Manager/Manage Snapshots

If a snapshot is listed, the virtual machine is attached to one or more virtual disks which are in a snapshot state.

Right click on VM and select Edit settings.

Identifying the Datastore where the VM resides

Viewing the virtual machine configuration file

Log in as root to the ESXi host using SSH.

Navigate to the virtual machine directory containing vmdk virtual disk files. Run the cd command to change the current directory.

For example:

cd /vmfs/volumes/Datastore_name/Virtual_Machine_name/

Run this command to list vmdk (disks) of the VM in the vmx (configuration file of VM):

less VM_deploy.vmx |grep vmdk

Run this command to list the snapshot files in the directory:

ls -lrth | grep *sesparse.vmdk

Listing the snapshot files of the VM inside the VM directory.

Notes

Sesparse is a default format for all delta disks on the VMFS6 datastores. On VMFS5, Sesparse is used for virtual disks of the size 2 TB and larger.

In certain special purpose configurations, you may want to exclude one or more of the virtual machine's disks from the snapshot.

To exclude a disk from the snapshot, choose Edit > Virtual Machine Settings, select the drive you want to exclude, change the configuration from Advanced Options. For more information, see Change Disk Mode to Exclude Virtual Disks from Snapshots

ESXi Shell using the vim-cmd

Run this command to to see all VM's on the host:

vim-cmd vmsvc/getallvms

Using the vmid in the first column, run: vim-cmd vmsvc/get.snapshotinfo vmid

For example:

Notes: In some cases, it is still possible that a virtual machine disk snapshot exists without it being identified and managed by the Snapshot Manager. For more information on committing and removing snapshots, see Consolidating/Committing snapshots in ESXi

Power CLI

Open Power CLI and run: Get-VM | Get-Snapshot|Select VM,Name

Related Information

For more information, see Troubleshooting issues when creating or committing snapshots in ESX/ESXi (1038963). Committing snapshots when there are no snapshot entries in the Snapshot Manager
仮想マシンのスナップショット使用の特定
确定虚拟机是否在使用快照

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)JapaneseEnglish

Attachments

Additional Resources

No results for undefined

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vSphere ESXi

VMware VirtualCenter

VMware vCenter Server

VMware ESX Server

Related Versions:

VMware vSphere ESXi 7.0.0

VMware vSphere ESXi 6.7

VMware vSphere ESXi 6.5

VMware vCenter Server 7.0.x

VMware vCenter Server 6.7.x

VMware vCenter Server 6.5.x

Take Our Survey

Was this article helpful?

YES

NO

Copyright © 2005-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.

Terms of Use

Your California Privacy Rights

Privacy

Accessibility

Cookie Settings

Support Assistant