Hyper-V Program Manager
Hyper-V introduces the concept of virtual machine snapshots - which is to say point in time images of a virtual machine that you can return to at any stage. These snapshots are implemented in the virtualization layer - and can be taken at any time with any guest operating system (even during an operating system installation). Snapshots can be taken whether the virtual machine is running or stopped. If the virtual machine is running when the snapshot is taken there is no downtime involved to create the snapshot.
Snapshots can be created in the Hyper-V Manager (by selecting a virtual machine and selecting Snapshot from the Action menu or panel) and in the Virtual Machine Connection window (by clicking on the snapshot button in the toolbar or by opening the Action menu and selecting Snapshot...).
Selecting to create a snapshot from the Virtual Machine Connection window will result in a dialog that allows you to enter a custom name for the snapshot (e.g. "Installed Office 2007" or "Just before I do something stupid and ruin the virtual machine"). If you want you can dismiss this dialog and have the snapshot use an auto-generated name. This auto-generated name will consist of the name of the virtual machine followed by the date and time when the snapshot was taken.
If you select to create a snapshot from the Hyper-V Manager the snapshot will be created with an auto-generated name.
Once you have created a snapshot you can view it in the Snapshots pane of the Hyper-V Manager by selecting the virtual machine that the snapshot is associated with. Snapshots are displayed in the Snapshots pane in a hierarchal manner that describes the order in which the snapshots where taken. One snapshot will have a green arrow head on top of it - this indicates that this snapshot was the last one to be taken or applied to the virtual machine. When you select a snapshot there are a couple of options that are provided to you in the Action menu / panel:
Once you have snapshots associated with a virtual machine you can use the Revert option. This will take a virtual machine back to the last snapshot that was taken or applied (indicated in the Snapshots pane by the green arrow head) and delete any changes that have been made since that snapshot.
"I will talk more about the actual plumbing involved with snapshots another day"
Please do so. This will be useful information for making disk space considerations for those hosts that we think will utilize this feature extensively.
DO snapshots work with VSS in the hosted OS. Maybe I'm using the wrong acronym there...but you get what I'm saying right? I have used some desktop level VM software that didn't, and well...things went bad when reverting back to a prior snapshot.
I've used a number of VSS snapshots that do work in VS2005SP1. I wonder what specifically has changed to improve(?) VSS functionality for guest snapshots...
Here's what MSDN is saying is new in VSS...
There's one thing to be careful about when reverting virtual machines to earlier points in time. By default, if the machine is a member of a domain, it will change its machine password every so often. If you revert to a time before the password change, the machine will no longer be able to connect to the domain.
If you are working with test machines where security is not a significant issue, you can turn off machine password changes using Group Policy.
Brent's comment addresses an issue that created a lot of work for us when we first enabled our users with the ability to use Checkpoints (VS 2005 guests w/VMM Self Service portal) on their "development" guests.
We've managed to work around this in our environment via a combination of a local user account defined in the base virtual (pre-snapshots) and the ability for the user in question to rejoin a particular machine account back to the domain on their own, but I like Brent's solution better. :)
Curious what others are doing in this situation? (other than not operating in a domain and rather workgroup)
Snapshots appear to consume disk space at a rate not at all in proportion with the size of the original vhd. I had new 60GB disk, added a 6GB W2K8 guest, took two snapshots and ended up with a full disk?
hi ben, i removed the snapshots directly from the folder and not the GUI. Now i have issue with doing anything with the disk as it says snapshots are their even though they are not. Can you give me the regkey or somehow way to clean it up?
my email is firstname.lastname@example.org
I have a virtual machine..I create an snapshot but after something that I did to the vps I delete the snapshot. The problem is the server where the virtual machine hosted was crushed but I have backup of the VM then I created new VM to another server then use the backup for me to have the same VM but all my data after the created and delete the snapshot got lost.
I thinking very hard how this was happen. Any help please.
Thanks for the great info Ben. Your blog is the first place I look for concise, effective info on Windows Virtualization. Great job.
I knew this informatiom after get my first VM running, its all clearly documented. Automated snapshots, that is what we need to figure out aside from using DELL's overpriced program. PowerShell? Command Line? Tell us something we don't knwo and can use.
Unfortunately we have reverted one of our VM to old Snapshot,
We don’t have new Snapshot. Is there any chance that we can recover our running VM up and running. Please help in this. Thanking you in advance.
Thanks & Regards
Thanks, this info was usefull for me.