What is the advantage of using production checkpoints over standard checkpoints?

We’ve  had snapshots, or better checkpoints as we call them now for consistency amongst products, for a longest time in Hyper-V. I have always liked and used them to my benefit. That’s what they are intended for. But you have to use them correctly, in a supported and smart manner. Some (or perhaps not an insignificant number of) people did not read the manual and/or do not test their assumptions before trying something in production. Some times that leads to a lesson, sometimes it leads to tears.

We now have the choice between two type of checkpoints: Production Checkpoints and Standard Checkpoints.

A standard virtual machine checkpoint all the memory state of running applications get stored and when you apply the checkpoint it’s back magically. Doing this to a production SQL or Exchange Server for example causes (huge) problems. With some applications these problems are minor or transient but it’s not a healthy consistent state to be in, and recovery has to happen. Which could  happen automatically or require disaster recovery depending on the situation at hand.

Production checkpoints are made in application consistent manner. For this the leverage Volume Shadow Copy Services (or File System Freeze on Linux) which puts the virtual machines into a safe state to create a checkpoint that can be restored like a VSS based, application consistent backup or SAN snapshot. This does mean that applying a production checkpoint requires the restored virtual machine to boot from an off line state, just like with a restored backup.

The choice for what type of checkpoint can be made on a per virtual machine basis which make it’s flexible as you can pick the best option for a particular virtual machine for a specific purpose. As you might have guessed, that still requires some insight, reading the manual and testing your assumptions. But you now can have the behavior you want and way to many assumed to have.

What is the advantage of using production checkpoints over standard checkpoints?

We also have the option of allowing or disallowing for a standard checkpoint to me made if for any reason (which results in the VSS snapshot in Windows or file systems freeze in Linux  in the guest might not work or are not available) a production checkpoint cannot be made. Here’s the table of what type of checkpoint can be used when from MSDN. I conclude that the chosen default is the best fitting one for most scenarios.

What is the advantage of using production checkpoints over standard checkpoints?

You also have the option of choosing the standard checkpoints for a virtual machine. That gives you the exact behavior as with all previous versions of Hyper-V.

I love the GUI for ad hoc work but when I need to do this on dozens or hundreds of virtual machines or potentially tens of thousands when running a larger private cloud this is not the way to go. PowerShell is you long time trusted friend here!

What is the advantage of using production checkpoints over standard checkpoints?

As you can see just the “-CheckpointType” parameter you control the check pointing behavior. And as it is very easy to grab all virtual machines on a host or cluster setting this for all or a selection of your virtual machines is easy and fast. Let’s set it to “ProductionOnly” and grab the setting for that VM via PowerShell

What is the advantage of using production checkpoints over standard checkpoints?

When you create a checkpoint of a Windows Server 2016 Hyper-V host you’ll even get a nice notification (you can turn it off) by default that the Production checkpoint used backup technology in the guest operating system.

What is the advantage of using production checkpoints over standard checkpoints?

It’s also important to realize that this capability is the basis of the new checkpoint based way of making backups in Windows Server 2016 as well. But that’s a subject for another blog post. Thank you for reading!

Virtualization has significantly changed the way businesses conduct their operations and provide services to customers. One of the most significant virtualization technologies is snapshots. This technology has transformed the way data is protected in virtual environments. In this blog post, we will cover the snapshot technology used in Hyper-V and describe how you can manage and configure Hyper-V checkpoints in your virtual environment.

What Is a Hyper-V Checkpoint?

Hyper-V checkpoints allow you to save the VM state at a particular point in time. Checkpoints can be very helpful if you plan to adopt some new changes to the system, such as software updates or a program installation. If an unexpected error occurs, you can revert a VM to a previous state, thus discarding all the changes made.

It is worth noting that the term ‘snapshots’ is currently used only in reference to Hyper-V snapshots created on older Windows operating systems, which were introduced prior to Windows 10.

Types of Hyper-V Checkpoints

Prior to Windows 10, Hyper-V provided only standard checkpoints. Currently, there are two types of Hyper-V checkpoints available:

  • Standard Checkpoints (formerly known as Hyper-V snapshots) take a snapshot of the VM and its memory state, which allows you to capture the VM state at a particular point in time. A standard snapshot doesn’t enable application consistency, which may result in incomplete data transactions. This is crucial for VMs running Active Directory, Microsoft Exchange, SQL Server, or any other application/database which transfers data between different nodes. Also, note that this snapshot type shouldn’t be regarded as a full backup.
  • Production Checkpoints can create a data-consistent backup with the help of Volume Shadow Copy Service (for VMs running on Windows) or File System Freeze (for VMs running on Linux). Thus, production checkpoints are created in accordance with the backup technology inside the guest OS. When creating a production checkpoint, no snapshot of the VM memory state is taken. Note that production checkpoints are enabled by default. However, if you want to change the checkpoint type, you can use either Hyper-V Manager or PowerShell.

Managing Hyper-V Checkpoints

The following excerpt will provide guidance on how you can manage various aspects of Hyper-V checkpoints: from changing the checkpoint type to configuring the checkpoint location.

How to change the checkpoint type

As mentioned above, you can change the checkpoint type through Hyper-V Manager or PowerShell. Both approaches are described below.

Using Hyper-V Manager

  1. Open Hyper-V Manager.
  2. Right-click on a VM that you want to configure and select Settings.
  3. Find the Management section and select Checkpoints.
  4. Choose the checkpoint type. If you have selected Production checkpoints, click the checkbox below in case your guest VM doesn’t support creation of production checkpoints. This allows you to capture checkpoints with full-application state.

Choosing the checkpoint type

If you have selected Standard checkpoints, you can enable the feature of Automatic checkpoints, which automatically takes checkpoints of VMs when they’re started and deletes them as soon as they are stopped.

Using PowerShell

To change the checkpoint type, run the following commands in PowerShell:

  • To enable the Standard Checkpoint type, insert: Set-VM -Name-CheckpointType Standard.
  • To enable the Production Checkpoint type, insert: Set-VM -Name-CheckpointType Production. In case a production checkpoint fails, a standard checkpoint will be taken.
  • If you want to ensure that only production checkpoints are created, use the following command: Set-VM -Name-CheckpointType ProductionOnly.

How to create checkpoints

Hyper-V checkpoints can be created using one of two ways: Hyper-V Manager or PowerShell.

Using Hyper-V Manager

  1. Open Hyper-V Manager.
  2. Select the VM for which the checkpoint will be created.
  3. Right-click the name of the VM, and then click the Checkpoint.Creating a new checkpoint
  4. The checkpoint is created and can be accessed in the Checkpoints section below.The Checkpoints Section

Using PowerShell

Run the following command to create Hyper-V checkpoints: Checkpoint-VM -Name. After the checkpoint has been created, you can see a full list of VM checkpoints by using the command: Get-VMCheckpoint -VMName.

How to revert a VM to a previous state using checkpoints

Hyper-V checkpoints are primarily used to revert a VM to its previous state. Use the steps below to apply the checkpoint for this purpose.

Using Hyper-V Manager

  1. Open Hyper-V Manager.
  2. Select the VM which you want to revert.
  3. In the Checkpoints section, you will see the list of checkpoints created for that VM. Right-click the checkpoint that you want to use and click Apply.Applying Hyper-V checkpoints
  4. After that, a dialog box including the following options will appear:
  • Create Checkpoint and Apply: Before the chosen checkpoint is applied, a new checkpoint of the VM is created. This way the VM is protected, even if this operation fails.
  • Apply: Only the chosen checkpoint is applied. Note that this action cannot be undone.
  • Cancel: The dialog box will be closed without applying any changes.Applying the changes to the VM

Using PowerShell

To apply the checkpoint via the PowerShell command-line interface (CLI), run the following command: Restore-VMCheckpoint -Name-VMName-Confirm:$false.

How to delete checkpoints

In Hyper-V, checkpoints are stored as .avhdx files in the same location as the .vhdx files of the VM. As a result of deleting checkpoints, the .avhdx and .vhdx files are merged so as to save space and ensure that no critical data is lost. After that, the checkpoint's .avhdx file is completely deleted from the file system.

To delete checkpoints using Hyper-V Manager, do the following:

  1. After opening Hyper-V Manager, select the required VM.
  2. In the Checkpoints section below, right-click the checkpoint that you want to delete. The drop-down menu will appear with a number of options. Click Delete Checkpoint.

If you want to delete a checkpoint tree containing the primary checkpoint and all subsequent checkpoints, right-click the earliest checkpoint that you want to delete and click Delete Checkpoint Subtree.

Deleting Checkpoints

How to enable or disable checkpoints

Using Hyper-V Manager, you can manually set up whether you want checkpoints to be taken off this VM or not. For this purpose, do the following:

  1. Open Hyper-V Manager, right-click the name of the needed VM, and click Settings.
  2. In the Management section, find the Checkpoints option and select it.
  3. In the right pane, you will see the Enable Checkpoints checkbox. You can either select or deselect it in order to enable or disable checkpoints.Enabling or disabling checkpoints
  4. Click Apply.

How to set up a checkpoint location

Hyper-V allows you to configure where the checkpoint configuration and checkpoint saved state files will be stored. To set up a checkpoint location, follow the steps below:

  1. Open Hyper-V Manager, right-click the name of the required VM, and click Settings.
  2. In the Management section, find the Checkpoints option and select it.
  3. In the right pane, find the Checkpoint File Location section and click Browse, or manually enter the path to the folder where the checkpoint files will be stored.Configuring checkpoint location
  4. Click Apply.

How to rename checkpoints

The standard checkpoint name includes the name of the VM, the date, and the time when the checkpoint was created (e.g. Virtual Machine – (1/5/2019 – 8:17:35 AM)). To make it more distinguishable, you can rename the selected checkpoint using either Hyper-V Manager or PowerShell.

Using Hyper-V Manager

  1. Open Hyper-V Manager and select the required VM.
  2. Right-click the needed checkpoint and select the Rename option, which appears in the drop-down menu.Renaming checkpoints
  3. Type in the new checkpoint name and click ENTER.

Using PowerShell

To rename the checkpoint in the PowerShell CLI, run the following command: Rename-VMCheckpoint -VMName-Name-NewName.

Data Protection with NAKIVO Backup & Replication

Looking for a powerful yet simple and affordable data protection solution? NAKIVO Backup & Replication provides a rich set of high-end backup, replication and diverse recovery features for virtual, physical, cloud and SaaS environments. Perform VMware cloud backup, set up custom disaster recovery workflows, backup Office 365 workloads and even test your Microsoft Hyper-V backups from one centralized web interface. Get the Free Trial now!

Hyper-V Backup Best Practices with NAKIVO Backup & Replication

Even though Hyper-V checkpoints are used for saving the VM state at a particular point in time, they still do not provide the same level of data protection as backups. Checkpoints can pile up with time and lead to storage overhead. Checkpoints are stored in the production datastore, meaning that if the datastore gets damaged, checkpoints will be lost as well. Moreover, checkpoints can also negatively affect server performance due to increased I/O demands of having multiple checkpoints. Therefore, checkpoints can’t really be considered a reliable means of data protection and recovery.

To ensure that your data is securely protected, consider installing NAKIVO Backup & Replication, which is an efficient as well as reliable data protection solution. The product allows you to run Hyper-V backup, requiring minimal input on your part.

The following excerpt will describe the best approaches to backing up Hyper-V with NAKIVO Backup & Replication.

Create backup copies

NAKIVO Backup & Replication can be easily integrated with Hyper-V environments of any complexity, thus ensuring native Hyper-V backup. With the use of Microsoft’s Volume Shadow Copy Service (VSS), the product can create application-aware backups for Microsoft Exchange, Active Directory, SQL, and other applications. Moreover, Hyper-V backups are agentless, meaning that you can back up live VMs without disrupting your production environment.

However, Hyper-V backups can get accidentally lost or damaged, leaving no hope for recovery. To deal with such issues, NAKIVO Backup & Replication provides the opportunity of creating backup copies. Backup copy jobs can create copies of backups and send them from one backup repository to another, without involving source VMs. You can create multiple backup copies of a single backup and send them for storage to one or multiple locations.

Enable Resilient Change Tracking

To perform backup jobs in Hyper-V environments as fast as possible, NAKIVO Backup & Replication applies Hyper-V’s native Resilient Change Tracking (RCT) technology. Backup jobs in NAKIVO Backup & Replication are forever-incremental, meaning that only the initial backup is full, whereas all subsequent backups are incremental. RCT identifies the VM data that has changed since the previous backup and stores only unique data blocks to your backup repository. This allows you to increase the speed of backup jobs and optimize the use of storage space.

Send backups offsite

As mentioned above, you can keep backups and backup copies locally or you can send them offsite. The primary condition is that the secondary location should have an Internet connection to ensure fast and reliable data transfer. NAKIVO Backup & Replication guarantees that the process is safe because backup data can be transferred via AES 256 encrypted link, which ensures that only authorized users can access the data.

Moreover, you can use public clouds (Amazon Web Services or Microsoft Azure) for storing your Hyper-V backups and their copies. Even if a disaster affects your production center, you can be sure that the data stored in the cloud is safe and can be easily accessed from anywhere and at any time. Moreover, cloud environments can be easily scaled up or down, depending on your storage space requirements.

Check data integrity with backup verification

In the process of creating Hyper-V backups, there is a possibility of backup jobs getting corrupted or damaged. However, checking the state of VM backups manually can be an extremely challenging task. To this end, NAKIVO Backup & Replication has introduced the feature of block-level backup verification.

This feature is used to check VM backups at the block level and verify that the data stored in the backup repository is identical to the data stored in the source VM. The product reads each data block in a backup repository, makes a hash of each data block, and then identifies whether the new hashes match the original ones that were created during the backup. Even though this process can be time-consuming, by following it, NAKIVO Backup & Replication can prove that VM backups are functional and can be easily recovered if needed.

Moreover, NAKIVO Backup & Replication includes the feature of near-instant backup verification, also known as screenshot verification. After the backup job is completed, the product recovers the VM, disables networking, makes a screenshot of the test-recovered VM's OS, and then discards it. The results can be viewed in the solution’s interface or received in an email report with the attached screenshot. Screenshots of test-recovered VMs serve as proof of their recoverability and data integrity.

Schedule backup jobs

If you have a large virtual environment, managing all backup jobs at once can be extremely difficult and resource-intensive. To lighten the unnecessary burden, NAKIVO Backup & Replication allows you to perform jobs not only on demand, but also on schedule. Backup jobs can be set up to run daily, weekly, monthly, or yearly. Alternatively, you can create a custom periodic schedule, which allows you to run jobs every 20 minutes or every three days, depending on your needs.

Even though NAKIVO Backup & Replication can run more than one Hyper-V backup job at once, it is better to avoid any overlaps during the jobs. To see all past, current, and future backup jobs, use our Calendar Dashboard feature. This way you can ensure that all your Hyper-V backup jobs run as planned and they are properly scheduled. Calendar Dashboard is an easy-to-use feature which helps you properly structure your backup jobs and improve the overall performance of you virtual infrastructure.

Encrypt backup data

To ensure that your backup data is securely protected both in flight and at rest, NAKIVO Backup & Replication applies AES 256 encryption when transferring the data over the network, or when the data is stored in the backup repository. This feature allows to protect created Hyper-V backups against an unauthorized access and ensures that VM data will not get corrupted by hackers.

Set up backup policies

NAKIVO Backup & Replication has recently introduced the feature of policy-based data protection, which minimizes the level of manual VM management. This is especially challenging in large-scale virtual environments, with multiple jobs running at the same time. With policy-based data protection, you can set up policies that can scan your infrastructure on a regular basis and automatically protect VMs that match policy rules. The policy rules can include the VM name, size, location, power state, configuration, or a combination of these parameters. This feature lets you save considerably on time and effort.

Conclusion

Hyper-V checkpoints are extremely useful when it comes to backing up your virtual infrastructure. Creating checkpoints allows you to revert the VM to a previous state so as to discard all the unwanted configuration changes and updates, which have caused issues within the system. However, checkpoints can’t be regarded as a substitute for backups. Unlike backups, Hyper-V checkpoints can’t be used for long-term data protection and they do not guarantee the system recovery if too many items have been changed. Therefore, it is advisable to find a reliable and efficient data protection software which provides a full-fledged tool set for a fraction of the price. NAKIVO Backup & Replication is the solution that fits this description perfectly. We have listed above the best practices for ensuring efficient Hyper-V backups. However, this is only a small fraction of what the product can do.

Request a live demo by one of our engineers to test the product in your virtual environment today and see for yourself the multiple benefits that it provides.

What is the advantage of using production checkpoints?

A production checkpoint does allow IT administrators to gain increased protection for systems by creating a data-consistent backup of the VM using Volume Shadow Copy Service or File System Freeze on a Linux VM. A snapshot of the virtual machine memory state is not taken when using a production checkpoint.

What is the difference between production checkpoint and standard checkpoint?

There are two types of checkpoints in Hyper-V: standard checkpoints and production checkpoints. Both capture the state, data and configuration details of a running VM. The difference is in data consistency. A standard checkpoint only provides application consistency, not data consistency.

How can a standard checkpoint be used to experiment with a virtual machine?

Standard Checkpoints: takes a snapshot of the virtual machine and virtual machine memory state at the time the checkpoint is initiated. A snapshot is not a full backup and can cause data consistency issues with systems that replicate data between different nodes such as Active Directory.

What is the use of checkpoint in Hyper

Standard Checkpoints (formerly known as Hyper-V snapshots) take a snapshot of the VM and its memory state, which allows you to capture the VM state at a particular point in time. A standard snapshot doesn't enable application consistency, which may result in incomplete data transactions.