Why Hyper-V Virtual Machines are Pulled into a Saved State when a Backup is Started
Symptom
Some Hyper-V virtual machines briefly go offline into a "Saved State" at the initial phase of a backup. While the backup is running, they usually come back online after a couple of seconds.
Background Knowledge
The decision to pull Hyper-V virtual machines offline into a Saved State is done solely within Hyper-V Management Services. Backup software utilities have no way to force a live backup when Hyper-V determines it can't and shouldn't be done.
There are many factors that are considered by Hyper-V when it decides whether to take a VM offline or not:
Hyper-V Live Backup Requirements
To achieve zero downtime live backups of virtual machines, you need the following conditions met:
1. The VM guest needs to have Integration Services installed, enabled, and running (COM+ System Application Service, Distributed Transaction Coordinator Service, and Volume Shadow Copy Service). Also review the VM settings in Hyper-V, the 'backup' option needs to be checked.
2. All disks involved need to be formatted with NTFS, including the disks within the VM.
3. The Volume Shadow Copy Service and related VSS services need to be enabled and running.
4. The shadow copy storage space for each drive must be available to Hyper-V VSS Writer and be located at the same volume. For instance, the storage space for drive C: needs to be on drive C: itself, and so on. Use the VSSADMIN command from the command line to check the settings. (Use: vssadmin list shadowstorage / vssadmin resize shadowstorage)
5. This is no longer a requirement if your server is up-to-date with the latest Windows Updates: VHDs must be fixed size. Dynamically expanding disks are not supported for live backup by the Hyper-V VSS Writer. On Server 2008 with latest SP installed, dynamic disks are now fully supported for live backup.
6. Ensure the VMs are partitioned using 'basic disk' formatting. At the moment Hyper-V does not support live backup for VMs formatted using dynamic disk partitioning or GPT.
7. Ensure you have at least about 20% free space on each drive involved, such as the drive on the host and the VM's main system drive.
8. Ensure plenty of un-fragmented RAM is available on the host. If a machine is pulled into Saved State, Hyper-V may not be able to bring the VM back online if it can't allocate a continuous block of RAM. Note that there may be sufficient total RAM available but not enough to place a single block. You should therefore aim to keep at least 512 MB to 1 GB of RAM free when all VMs are powered up.
What to Do Next
If the problem persists check all Hyper-V logs in the Event Viewer. Hyper-V may be logging the reason in the Hyper-V logs found in the Windows Event Viewer.
Contact support (+1 410 242 5892 or call your Priority Support number) if the problem persists.
