We cannot backup Hyper-V Virtual Machines with pass-through virtual disks due to Hyper-V checkpoints limitation. Backup software will stop processing the backup job with “Processing VMs with pass-through disks is not supported” or similar error.
To fix this issue (We are going to backup the Virtual Machine without pass-through disks) we can use pre/post scripts option in backup softwares. What we do here is when the backup starts we remove the pass-through disks and once the backup job is completed we re-attach the disks to the virtual machine.
Remove-VMHardDiskDrive -VMName <VirtualMachineName> -Passthru -ControllerType SCSI -ControllerNumber <ID> -ControllerLocation <ID>
Remove-VMHardDiskDrive -VMName VM01 -Passthru -ControllerType SCSI -ControllerNumber 0 -ControllerLocation 0
Add-VMHardDiskDrive -VMName <VirtualMachineName> -ControllerType SCSI -ControllerNumber <ID> -ControllerLocation <ID> -DiskNumber <ID>
Add-VMHardDiskDrive -VMName VM01 -ControllerType SCSI -ControllerNumber 0 -ControllerLocation 0 -DiskNumber 3
You can get the DiskNumber from Hyper-V Virtual Machine settings.
Use a text editor such as Notepad and add the commands according to the backup job and save the files as .ps1 file format.
In my backup job there are two virtual machines and my scripts are configured as below.
Once done edit your backup job and configure the pre/post script settings. Please see the below configuration settings on Veeam Backup and Replication.
Edit the Backup Job – Go to Storage > Advanced Settings
Go to Scripts tab and set the scripts.
Now your backup jobs will complete without any issue as when the backup job starts the script will remove the pass-through disks from the virtual machine and Hyper-V can take the snapshot without any issue.
Leave a Reply