This website use cookies to help you have a superior and more admissible browsing experience on the website.
Loading...
A VMware snapshot is a point-in-time capture of a virtual machine’s state, giving you a restore point to fall back on if something goes wrong.
When you take a snapshot, VMware freezes the original virtual disk and makes it read-only. All new writes are redirected to a delta disk (the -delta.vmdk file), which grows continuously as the VM generates data. VMware also creates a .vmsn file to store the VM’s state metadata, which is what allows you to revert to that exact point in time.
Three States Captured
A VMware snapshot can capture up to three layers of a VM’s state:
Snapshots vs. Backups
Think of snapshots as short-term undo buttons: useful before a patch or config change, but not a substitute for disaster recovery.
You can automate VMware snapshot scheduling using either the built-in vSphere interface or PowerCLI scripting. The right choice depends on your environment’s scale and how much flexibility you need.
The vCenter scheduler is the most straightforward option for administrators who prefer a graphical interface. It works well for single-VM schedules and simple recurring tasks.
Prerequisites
Step-by-step (vSphere 6.5 / 6.7 / 7.x / 8.x)
How to Edit or Delete an Existing Scheduled Task
Scheduled tasks can be modified or removed without affecting the underlying VM. In the Scheduled Tasks pane, you can view the history of each task — including start time, end time, and status, and make changes at any time. Snapshots already created by the task are not affected.
GUI Limitations
The vCenter scheduler is convenient for basic use, but it has real limitations. It cannot handle conditional logic, has no built-in auto-deletion for aging snapshots, and offers no native alerts if a scheduled task fails.
When managing dozens or hundreds of VMs, the vCenter GUI becomes inefficient. PowerCLI lets you automate snapshot creation across your entire inventory, with support for conditional logic and automated cleanup.
When to use PowerCLI
PowerCLI is the better choice for multi-VM environments where you need consistent naming conventions or bulk operations. It’s also the only native option for automating snapshot deletion — something the vCenter GUI cannot do on its own.
Prerequisites
Install the VMware PowerCLI module and connect to your vCenter Server before running any scripts:
Install-Module -Name VMware.PowerCLI
Connect-VIServer -Server "vcenter_server_name"
Create a Snapshot for a Single VM
The following command creates a snapshot with a date-stamped name. The -Quiesce flag requests a file system freeze from VMware Tools, producing an application-consistent snapshot. The -Memory flag captures the live RAM state.
New-Snapshot -VM "VM_Name" -Name "Pre-Patch-$(Get-Date -Format yyyyMMdd)" -Quiesce -Memory -RunAsync
-Quiesce requires VMware Tools to be installed and running on the guest OS. If Tools are absent or the OS doesn’t support quiescing, the flag will be ignored or the command may fail.-RunAsync sends the task to the background so the PowerShell prompt remains available immediately.
Bulk-Snapshot All Running VMs
To snapshot all powered-on VMs at once, filter by power state before piping into the snapshot cmdlet:
Get-VM | Where-Object {$_.PowerState -eq "PoweredOn"} | New-Snapshot -Name "DailySafety" -RunAsync
Auto-Delete Old Snapshots
Forgotten snapshots grow continuously and can exhaust datastore space — a problem known as snapshot sprawl. Use the following script to remove snapshots older than a defined threshold:
# Delete snapshots older than 3 days
Get-VM | Get-Snapshot | Where-Object {$_.Created -lt (Get-Date).AddDays(-3)} | Remove-Snapshot -Confirm:$false
Schedule this script via Windows Task Scheduler to run daily, and snapshot sprawl becomes a non-issue.
Snapshots are useful for short-term rollbacks, but they are not a substitute for a real backup strategy. If a datastore fails or a snapshot chain becomes corrupt, there is nothing to fall back on.
For production environments, scheduled backups to independent storage are essential — and that is where dedicated backup software like i2Backup comes in.
Snapshots capture a moment. Backups protect your data and business. For environments where data loss is not an option, pairing your VMware snapshot schedule with i2Backup’s automated backup jobs gives you both short-term rollback capability and long-term disaster recovery coverage.
Automating snapshots removes the manual effort, but it also makes it easier for problems to quietly accumulate. These practices help you stay ahead of storage issues and keep your snapshot strategy reliable.
Snapshot delta files grow continuously as the VM writes new data. VMware recommends keeping snapshots under 72 hours — beyond that, delta files can grow large enough to exhaust the datastore and impact VM performance.
VMware officially supports up to 32 snapshots in a chain, but performance degrades well before that limit. Keep the active chain to 2–3 snapshots at most.
Database VMs and other write-intensive workloads generate data changes rapidly. Snapshots on these VMs can fill a datastore much faster than expected, causing application latency and potential failures.
Snapshots are temporary delta files tied to the base disk. If the base disk is lost or the datastore fails, snapshots go with it. Use dedicated backup software like Info2soft‘s i2Backup for long-term disaster recovery coverage.
Set up alarms to alert you when a snapshot exceeds a defined age or size threshold. Alarms can also trigger automatic cleanup actions, giving you an additional safety net on top of your scheduled scripts.
Even with automation in place, things can go wrong. Here are the most common issues administrators run into when scheduling VMware snapshots — and how to fix them.
Issue 1: Scheduled task exists but the snapshot never fires
The most likely cause is a timezone mismatch between the vCenter Server and your local time.
Check the vCenter system clock to confirm the task isn’t scheduled hours off target. Also verify that the service account running the task still has Virtual Machine: Snapshot Management permissions — these can be lost after account changes or role updates.
Issue 2: VM performance drops after scheduled snapshots
As a snapshot ages, its delta file grows. The larger it gets, the more I/O the host needs to perform to reconcile reads between the base disk and the delta.
If you notice latency after a scheduled snapshot, check for large or aging delta files and run a Consolidate operation immediately to merge them back into the base disk.
Issue 3: Corrupt snapshot chain that can’t be deleted via the GUI
If the vSphere Client fails to delete a snapshot — often accompanied by “CID mismatch” errors — try forcing consolidation using vmkfstools from the ESXi command line or via PowerCLI. If the chain is too damaged to repair, restore the VM from a recent backup.
Issue 4: Snapshot fails on a powered-on VM with independent disks
VMware does not support snapshots of disks configured as Independent-Persistent or Independent-Nonpersistent while the VM is running.
If your scheduled task fails with a disk-related error, either power off the VM before the snapshot runs or change the disk mode to Dependent in the VM settings.
Issue 5: Datastore space alert triggered by growing snapshots
If snapshots are being created faster than they are deleted, storage will eventually run out — and when a datastore fills up, all VMs on that volume will pause. If an alert fires, run your PowerCLI cleanup script immediately and tighten your retention policy so old snapshots are purged more aggressively.
Scheduling VMware snapshots — whether through vCenter Scheduled Tasks or PowerCLI — reduces manual overhead and helps protect your VMs before patches, updates, or configuration changes. But automation alone is not enough.
Pair your snapshot schedule with automated deletion scripts and vCenter alarms to prevent storage exhaustion. And for long-term data protection, treat snapshots as a short-term tool and rely on dedicated backup software like i2Backup for disaster recovery coverage. That combination gives you both agility and resilience.