Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


September 30, 2008

Q. What happens when I take a Hyper-V virtual machine (VM) snapshot?


RSS
Subscribe to Windows IT Pro | See More Backup and Recovery Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

A. Before we talk about snapshots, you need to understand a type of virtual hard disk (VHD) called a differencing disk. A differencing disk is an additional VHD file that effectively sits on top of another VHD file and works with the existing VHD. Any write operations are written to the differencing disk, so that no changes are made to the existing VHD. Read operations are first checked against the differencing disk to see whether updated content was written to the differencing disk; if the content isn’t in the differencing disk, then the content is read from the additional VHD. This setup effectively freezes any changes to existing content by storing changes separately on the differencing disk.

Let’s start with a snapshot of an offline virtual machine (VM)—that is, a VM that’s turned off. When you take a snapshot of an offline VM, to avoid any changes to the existing VHD file, the snapshot process creates a differencing disk in a new subfolder of the VM’s Snapshots folder; the subfolder’s name includes the VM’s globally unique identifier (GUID). The name of the differencing disk includes the snapshot’s GUID and the extension .avhd. In addition, a copy of the current configuration is stored in the VM’s Snapshots folder; the configuration filename contains the snapshot’s GUID.

If the VM is running (i.e., online) when the snapshot is taken, two additional files are created in a Snapshots subfolder (named with the snapshot’s GUID) containing two files: a .bin file that contains the contents of the VM’s memory and a .vsv file that contains supporting process information, as the following screenshot shows.

This means that when you restore back to a snapshot’s state, not only the disk is restored to the previous point in time but also the VM’s memory and any processes that were supporting its operation. The next screenshot shows the memory and process content and the .avhd files used by the snapshots.

If you create additional snapshots, the process is exactly the same: A new .avhd file is created, which is a differencing file over the differencing file currently being used since the last snapshot. (A bit confusing, I know!) The following screenshot shows the new snapshot.

If you delete a snapshot, then Windows deletes memory and process files and rolls the content of any differencing disks into the preceding VHD the next time the VM is shut down.

End of Article



Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
On Eve of Macworld, Microsoft Again Highlights 'Apple Tax'

With the economy in freefall, Microsoft this week continued its discussion of the "Apple Tax," what it says are the additional costs associated with using the Mac platform instead of a Windows-based PC. According to the company, the severity of the Apple ...

Understanding File-Size Limits on NTFS and FAT

A general confusion about files sizes on FAT seems to stem from FAT32's file-size limit of 4GB and partition-size limit of 2TB. ...

Home Tech? Work Tech? Increasingly, It's Just Tech

Paul discusses how the consumer market is influencing business technology in ways that are unprecedented. ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Cloud Computing Forum: Integrating Software, Server and Storage as a Service into Your Enterprise IT Delivery Model

Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2009 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing