Do you know what are snapshots in VMware? VMware snapshots are convenient as quick failsafe rollback points, but have many limitations. In this article I will introduce you how they work, and how to use them properly.
A VM snapshot preserves the state and data of a VM at a specific point in time. The state includes the VM’s power state (for example, powered-on, powered-off, suspended). The data includes all of the files that make up the VM. This includes disks, memory, and other devices, such as virtual network interface cards.
VMware snapshots are popular as a quick failsafe measure. In Hyper-V environments, they are also known as checkpoints since Windows Server 2012 R2.
Many users tend to achieve VMware backup by snapshot, but strictly speaking, they are 2 different concepts.
Snapshots can be used to roll back a virtual machine, but cannot be used as a backup. To be specific, a VM backup is a complete copy independent of the parent disk, which is not affected and can be used to recover a VM. But a virtual machine snapshot is dependent on the parent disk, and not sufficient to recover a virtual machine if the parent disk is deleted or if the virtual or physical infrastructure fails.
Besides, all changes made to a VM after taking a VM snapshot are stored in the incremental disk file. Therefore, snapshots also take up a lot of disk space, and keeping them for a long time can affect the performance of the virtual machine. However, virtual machine backups can be kept for a long time without affecting the original virtual machine.
Simply put, VMware snapshot cannot replace backup. But you can combine the 2 as a VM protection strategy.
Taking a VMware snapshot, the following files will be created:
When taking a VMware snapshot, the original virtual disk file will become read-only, and a temporary delta disk which points to it will be created, to store all the changes made to the VM afterward.
As more writes are made to the delta disk, it can grow large enough to fill an entire datastore. After the snapshot is deleted, all changes will be merged into the original .vmdk file, and it will return to read-write mode.
VMware snapshots can be used as quick failsafe rollback points, to reduce the hassle of creating multiple VMs.
Generally, VMware snapshots are used for development and testing purposes. For example, taking snapshots before performing patches, upgrades, tests and other unsafe operations.
However, they are not recommended to be used in production environments, since running VM on snapshots for a long time can lead to instability and data loss.
Although convenient, VMware snapshots have limitations in practical use. For example, snapshots can have a negative impact on the performance of VM systems.
Performance degradation depends on how long you keep the snapshots, how deep the snapshots tree is, and how many changes you have made to the VM since you took the snapshot.
For better working with VMware snapshots, here I summarized 3 best practices.
VM snapshot vs backup is a long-confusing issue for VM users. The accepted conclusion is that snapshots cannot be used as backups.
As above stated, while VM backup is an independent copy of the VM, and can be safely stored offsite to the cloud or other locations, snapshots depend on the parent disk. If the base disks are deleted, the snapshot files are not sufficient to restore a VM.
When you create a snapshot for the first time, the first child disk is created from the parent disk. Successive snapshots generate new child disks from the last child disk on the chain.
A maximum of 32 snapshots are supported in a chain. However, for a better performance please use only 2 to 3 snapshots.
Generally, you need to reserve 20-30% extra storage for a single snapshot. As more changes you made to the VM after a snapshot, the delta disk file can even run out of space, and affect the performance of your VM system.
Therefore, please delete the snapshots in time to merge the changes to the parent disk when they are no longer useful, or before creating backups of your VM.
Now you have known when should you take VMware snapshots, and how to keep them in optimal use. The next thing you need to know is the specific steps of the basic VMware snapshots operations.
In this section, I will demonstrate how to perform the basic operations of VMware ESXi snapshots as an example.
1. Access to vSphere Web Client. Right-click on the VM name in the inventory and select Snapshots > Take Snapshot…
2. In the pop-up window, provide a Name and optionally a Description for the snapshot. You can Edit them later in Snapshot Manager.
3. There are 2 options to check:
4. Click OK to take the snapshot. You can see the progress in Recent Tasks.
1. Access to vSphere Web Client. In this step, operations are different according to different needs.
✦ If you want to revert to the latest snapshot: Right-click on the VM name and select Revert to Latest Snapshot.
✦ If you want to revert to another previous snapshot: Right-click on the VM name and select Manage Snapshots…
Select the snapshot you want to revert in Snapshot Manager, and click Revert to.
2. It will pop up a Confirm window notifying the loss of the current state. If it is a memory snapshot, then there will be one more option to suspend this VM when reverting to selected snapshot. You need to manually power on the VM later if you check this option.
3. Click Yes to revert to the selected VMware snapshot. In Snapshots Manager you can see the current state represented by You are here.
1. Access to vSphere Web Client. Right-click on the VM name and select Manage Snapshots…
2. In this step, operations are different according to different needs.
✦ If you want to delete one snapshot: Select the target snapshot and click Delete. Click Yes in the pop-up Confirm window.
✦ If you want to delete all snapshots: Click Delete All in Snapshot Manager and click Yes in the pop-up Confirm window.
3. Click Close to exit the Snapshot Manager.
There are mainly 4 VMware backup solutions to create independent and complete VMware VM backups.
Today, dedicated backup tools have been developed comprehensively in VM backups, compensating for many tasks that VMware's built-in features can't accomplish, and are therefore widely accepted by VM users.
For example, AOMEI Cyber Backup is a free VMware backup software, which allows you to auto backup multiple VMs on both paid and free versions of VMware ESXi. Next I will demonstrate how to do that as an example. You can click the following button to download the freeware:
*You can choose to install this VM backup software on either Windows or Linux system.
1. Bind Devices: Access to AOMEI Cyber Backup web client, navigate to Source Device > VMware > + Add VMware Device to add vCenter or Standalone ESXi host as the source device, and then click … > Bind Device.
Note: This step is only needed when you bind the host for the first time, you do not need to repeat after successful binding.
2. Create Backup Tasks: Navigate to Backup Task > + Create New Task, and provide Task Name, Backup Type, Device, Target, and Schedule as needed.
3. Start Backup: Click Start Backup to select to Add the schedule and start backup now, or Add the schedule only.
Created backup tasks will be listed separated for further log checking, task changing, or restoring.
While the Free Edition covers most of VM backup needs, you can also upgrade to enjoy: ▶ Batch VM Backup: batch backup large numbers of VMs managed by vCenter Server or standalone ESXi hosts. ▶ Backup cleanup: Configure a retention policy to auto delete old backup files and save storage space. ▶ Restore to new location: Create a new VM in the same or another datastore/host directly from the backup, saves the trouble of re-configuring the new VM.
Many people confuse VMware backup with snapshots. In fact, they are 2 different things. Although VMware snapshots are convenient for quickly rolling back the VM to a specific point in time, they cannot replace backups, and need to be used properly to maintain the VM system performance.
In this article, I introduced what are snapshots and the best practices to use them, including the detailed steps of how to create, revert, and delete them. Snapshots cannot replace backups, but using them in conjunction with backups can greatly improve your work efficiency.
To properly backup VMware ESXi VMs, you can choose AOMEI Cyber Backup to help you schedule automatic backup tasks for multiple VMs. Except for VMware ESXi VMs, it also supports Microsoft Hyper-V.