- A list of supported Guest OSes for each version of Hyper-V can be found here.
- Important! Server 2012 R2 or later guests are not supported for VSS-enabled (AAIP) backups on 2008 R2 hosts due to integration components incompatibility.
- If the VM Guest OS is 2012 and the Host is 2008R2:
- View the Guest OS Application Event logs for errors with source: vmicvss and Event ID: 13.
- If this error is present, open the Registry Editor (regedit) and navigate to:
Within that key create a new DWORD
- Note: If the SystemRestore key is not present, you will have to create it.
The solution section of this knowledge base article has been split into four different sections. Please review each step of the following sections.
- Integration Services
- Within the Guest
- VM Configuration
1. Integration Services
Click here for a list of Hyper-V Integration Services and their corresponding build numbers.
How to identify…
1. Using Event Viewer
This section will provide directions on ensuring the Hyper-V Integration Services are up to date within the Guest OS of the VM that is failing to backup.
If Hyper-V Integration Services are out of date you will find Event ID 4000 within the Hyper-V-Integration section of the Event Viewer on the Hyper-V host where the VM is located.
2. Using PowerShell (Server 2012 or newer)
Run the follow command in an Administrative PowerShell prompt on the host where the VM that failed to backup resides.
Get-VM | select VMName, IntegrationServicesState
The results of which will list out each present VM, and the state of its integration services.
How to correct:
Note: A reboot of the virtual machine will most likely be required to complete the Integration Services update.
The following information is from the Microsoft page found here.
Install or update integration services
For hosts earlier than Windows Server 2016 you'll need to manually perform install the update from within the guest operating system. These steps cannot be automated or executed within a Windows PowerShell session.
- Open Hyper-V Manager. From the Tools menu of Server Manager, click Hyper-V Manager.
- Connect to the virtual machine. Right-click the virtual machine and click Connect.
- From the Action menu of Virtual Machine Connection, click Insert Integration Services Setup Disk. This action loads the setup disk in the virtual DVD drive.
Depending on the guest operating system, you may need to start the installation manually.
- After the installation finishes, you may be prompted to restart.
2. Within the Guest
The following steps and checks are to be performed within the Guest OS of the VM that is failing to backup.
- Make sure Windows is running the most recent service pack.
- Ensure that the VSS Storage Area and Volume Match
- From an Administrative Command Prompt, run the command ‘VSSUIRUN.exe”
- Check the [Settings] for each Volume and ensure that the Volume and the Storage area match.
- Ensure there are no Dynamic disk or FAT\FAT32 volumes
- Open Disk Management (diskmgmt.msc)
- Review the Type and File System columns
- VSS is not compatible with Dynamic disks or FAT\FAT32
Note: The VHD(X) that the VM runs off can be dynamic. The volume within the Guest OS cannot.
All volumes must be NTFS or ReFS
- Check System Reserved partition free space.
- System Reserved partition must have more than 42MB of space free.
- If less than 42MB is free, try creating a shadow copy for the volume.
- Remember to delete the Shadow Copy if it is successful.
- Start\Restart the “Hyper-V Volume Shadow Copy Requestor
- Open Services (services.msc)
- Find the “Hyper-V Volume Shadow Copy Requestor” service.
- If it is ‘Stopped’, Start it. (If the service will not start, check in the VM settings under Integration Services, and ensure the "Backup (volume Checkpoint)" option is enabled.)
- If it is ‘Running’, restart it.
3. VM Configuration
The following steps and checks are to be performed from the Hyper-V host level.
- Make sure the VM has a SCSI controller. One must be present, even if there are no devices to use the SCSI controller.
- The error will present itself in the Hyper-V VMMS > Admin Event log. Example:
“The virtual machine ' Vm-Name' cannot be hot backed up since it has no SCSI controllers attached. Please add one or more SCSI controllers to the virtual machine before performing a backup. (Virtual machine ID).”
- Within the Virtual Machine settings verify that the “Backup (Volume Snapshot)” option is enabled.
- Make sure that the virtual machine files (VHD files) are not sitting in the root folder of the CSV, as this may prevent correct snapshot creation due to permission restrictions. We strongly recommend keeping virtual machine files in separate folder. More information regarding this can be found here.
Performing the following will allow you to determine if the steps performed above have corrected the issue without the need to run the Veeam Backup & Replication job again.
Perform the following steps on the Hyper-V host that the VM is running on.
- Open an Administrator Command Prompt.
- Run the command:
Diskshadow /L C:\writers.txt
- Run the command:
Open the file that was created and and locate the VM name in the section for the Hyper-V writer. For each VM there's a "Caption" entry. The caption should read "online" or "child partition", and not "offline" or "saved state".