Hyper-V VM won't start because snapshot drive is full
Home  » Hyper-V  » Hyper-V VM won't start because snapshot drive is full

Hyper-V VM won't start because snapshot drive is full
Posted: Wed, Sep 02, 2009 11:49 PM :: Rank: 113
Author
Points: 11559
Level: System Center Expert

I am wondering if anyone has seen this issue with Hyper-V guests. My lab domain controller is a VM, and it won't start. In Hyper-V Manager, I see (merging...), but then the C: drive fills up and the merge starts over....

and over and over.

How can I move these snapshot files?

How do I find them in the first place? 

How can I tell the VM where the files are located and attempt restart again? 

   Report Abuse
RE: Hyper-V VM won't start because snapshot drive is full
Posted: Fri, Sep 04, 2009 8:41 AM :: Rank: 103
Author
Points: 65442
Level: System Center Expert

Have some snapshots get written to your C: drive and fill it up? You can actually move the snapshot files. By the official Hyper-V docs, I don't believe you're supposed to be able to move the VMs without merging the snapshots first.

However, here's how I have done it successfully.

  1. Shut down the VM. 
  2. Search the drive for *.avhd files. These are the differcing files created when you create snapshot.
  3. Cut-and-paste these to an  alternate drive with more space.
  4. Open the configuration xml file for the VM. It will be in the \<VM Name>\Virtual Machines\ subdirectory and will have a name of <GUID>.xml (ex 1311F536-D654-4ECA-90A0-BD23D627C223.xml).
  5. Make a backup copy of this file, and then open the original in Notepad.
  6. In this file, you will see the path + name of the snapshot files you moved. Update the name and path of the files, and then save your changes
  7. Restart the VM and merge that was failing for you before should restart.

 

Additional Resources:

Here are some articles on snapshots that  will better explain how these work behind the scenes.

Hyper-V / SCVMM: Why aren't snapshots (checkpoints) recommended as a backup method?

Hyper-V Snapshot Common Issues

Understanding Hyper-V Snapshots | Anil Desai's Blog

Virtual PC Guy's WebLog : Managing Snapshots with Hyper-V

   Report Abuse
RE: Hyper-V VM won't start because snapshot drive is full
Posted: Fri, Sep 04, 2009 3:19 PM :: Rank: 128
Author
Points: 60
Level: System Center Enthusiast

You might want to try moving the pagefile to another disk or temporarily switch it off to make a bit of space on your c-drive.

Change the Snapshot File Location in the properties of the VM to a drive with more available space as soon as possible

If you have a copy of the parent disk and the AVHD's there is always a way to repair them. Just don't throw anything away!

Hans Vredevoort
Cluster MVP
hyper-v.nu/blogs

   Report Abuse
RE: Hyper-V VM won't start because snapshot drive is full
Posted: Fri, Sep 04, 2009 4:00 PM :: Rank: 108
Author
Points: 11559
Level: System Center Expert

Guys, thank you both for your answers. Here's how I wound up on this.

The first thing that came to mind was "clear space on the C: drive". As it turned out, I didn't have a page file or any other easy wins there (and about 12 GB of snapshot files to merge!). Unfortunately, it seemed like moving the files was my only option. 

Since it was a lab, I stopped Hyper-V services through Hyper-V admin console.

Then I searched for those .avhd files and found them in a subdirectory with a path that included the machine name, so no worries there. 

Then I found the funky xml file with the guid in the name. I searched for .avhd in that file, and found all the references to these files. Then I changed the paths to the files here....after I made a copy of course 

Finally, I saved changes, started Hyper-V servies, powered on the VM, and yeay, it work! 

Thank you Pete and Hans for your help!  

   Report Abuse

Home  » Hyper-V  » Hyper-V VM won't start because snapshot drive is full
Top Contributors
Featured Members
Pete Zerger
Points: 65442
Level: System Center Expert
Tommy Gunn
Points: 42712
Level: System Center Expert
Simon Skinner
Points: 40744
Level: System Center Expert
Stefan Koell
Points: 28999
Level: System Center Expert
Andreas Zuckerhut
Points: 27434
Level: System Center Expert