Hyper-V

Using Hyper-V Snapshots

How do I create a Snapshot? How do I use it? And how do I delete a Snapshot?

Recently we blogged about what Hyper-V snapshots are and why to use them. In this post we will describe to use create, manage, and delete Hyper-V snapshots.

Creating a Snapshot

You can create a snapshot of a virtual machine (running or not) very easily: Just select the VM and select Snapshot from the Actions pane in Hyper-V Manager. The status of the virtual machine will change to “Taking Snapshot” and show the progress of the action using a percentage value.

You can view your snapshots in the Snapshots pane (this might require expanding) of a selected virtual machine in the center of Hyper-V Manager. By default, the snapshot is named after the virtual machine and shows the date and timestamp of the snapshot. You can rename the snapshot to something more descriptive. You can also view the settings of a snapshot to observe the specification of the virtual machine at the time of snapshot creation.

Tiered Snapshots

You can create up to 50 snapshots of a single virtual machine. Please remember that 50 is a limit, and not a goal.  Creating a snapshot will slow down a virtual machine. Creating more snapshots will increase that degradation. And you should also remember that Hyper-V snapshots are not to be used as a VM backup – that’s why Volume Shadow Copy Service snapshots exist.

Sponsored Content

What is “Inside Microsoft Teams”?

“Inside Microsoft Teams” is a webcast series, now in Season 4 for IT pros hosted by Microsoft Product Manager, Stephen Rose. Stephen & his guests comprised of customers, partners, and real-world experts share best practices of planning, deploying, adopting, managing, and securing Teams. You can watch any episode at your convenience, find resources, blogs, reviews of accessories certified for Teams, bonus clips, and information regarding upcoming live broadcasts. Our next episode, “Polaris Inc., and Microsoft Teams- Reinventing how we work and play” will be airing on Oct. 28th from 10-11am PST.

Maybe you would like to keep multiple captures of a single virtual machine over time. For example, you could snapshot a virtual machine with just the operating system, service pack, and patches. You could then create a second snapshot with SQL Server, service pack, and update rollup. And then a third snapshot with an application installed in the virtual machine. You can roll back the virtual machine (by applying a snapshot) to any of those three points in time to redo an install for the purposes of demo, testing, documentation, or training.

You simply create more snapshots as before. A hierarchy of snapshots will be created for you. It would be a good idea to rename these snapshots with something descriptive.

Single Snapshot Subtree

Note that the current state of the virtual machine is highlighted as Now, a child of a snapshot. The way to interpret this is that the virtual machine has had changes since the parent snapshot of Now was created or applied.

Applying and Navigating Between Snapshots

You apply a snapshot to roll a virtual machine back in time. To do this, select a snapshot and select Apply.  A dialog will open to ask you how you want to proceed. You can:

  • Cancel the creation of a snapshot
  • Apply the snapshot and abandon all changes since the last snapshot
  • Create a new snapshot to capture all changes since the last snapshot, and then apply the old snapshot

Apply a Hyper-V Snapshot

Using Take Snapshot And Apply, you can create a more complicated hierarchy of snapshots.

Multiple Snapshot Subtrees

Note that applying a snapshot will also revert the specification of a virtual machine if it was changed since the snapshot was created.

Deleting Snapshots

In past versions of Hyper-V, the merge of the snapshot AVHD/X files did not occur until the virtual machine was powered down. Unfortunately, Hyper-V Manager had no indication that the snapshot really was still present and that a power down was required for the merge. Starting with Windows Server 2012 (and Windows 8), Hyper-V will perform a live merge of the snapshot without powering down the virtual machine. This merge might be delayed by a few minutes, but it will happen.

Please remember that any dynamically expanding virtual machines will need to expand before their child AVDH/X file(s) can be merged. This might be an issue if snapshots filled the LUN the virtual machine was stored on – move the virtual machine and perform the merge. Fixed virtual hard disks don’t have this issue.

You can select a snapshot and choose the Delete Snapshot action to delete a snapshot. To delete a collection of snapshots, select the top snapshot that you want to delete, and choose the Delete Snapshot Subtree action.

Related Topics:

BECOME A PETRI MEMBER:

Don't have a login but want to join the conversation? Sign up for a Petri Account

Register
Comments (0)

Leave a Reply

Aidan Finn, Microsoft Most Valuable Professional (MVP), has been working in IT since 1996. He has worked as a consultant and administrator for the likes of Innofactor Norway, Amdahl DMR, Fujitsu, Barclays and Hypo Real Estate Bank International where he dealt with large and complex IT infrastructures and MicroWarehouse Ltd. where he worked with Microsoft partners in the small/medium business space.
External Sharing and Guest User Access in Microsoft 365 and Teams

This eBook will dive into policy considerations you need to make when creating and managing guest user access to your Teams network, as well as the different layers of guest access and the common challenges that accompany a more complicated Microsoft 365 infrastructure.

You will learn:

  • Who should be allowed to be invited as a guest?
  • What type of guests should be able to access files in SharePoint and OneDrive?
  • How should guests be offboarded?
  • How should you determine who has access to sensitive information in your environment?

Sponsored by:

 
Live Webinar: Active Directory Security: What Needs Immediate Priority!Live on Tuesday, October 12th at 1 PM ET

Attacks on Active Directory are at an all-time high. Companies that are not taking heed are being punished, both monetarily and with loss of production.

In this webinar, you will learn:

  • How to prioritize vulnerability management
  • What attackers are leveraging to breach organizations
  • Where Active Directory security needs immediate attention
  • Overall strategy to secure your environment and keep it secured

Sponsored by: