• Home
  • About us
  • Contact
  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Welcome to www.DoitFixit.com

www.doitfixit.com

  • Microsoft
  • Fortinet
  • Symantec
  • Office 365
  • Azure
  • Others
  • Show Search
Hide Search

Backup Hyper-V Virtual Machines with Pass-Through Disks

May 13, 2021 By Damitha Anuradha Leave a Comment

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.

Error Processing VMs with pass-through disks is not supported

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.

Pre-Script:
Remove-VMHardDiskDrive -VMName <VirtualMachineName> -Passthru -ControllerType SCSI -ControllerNumber <ID> -ControllerLocation <ID>

Eg: Remove-VMHardDiskDrive -VMName VM01 -Passthru -ControllerType SCSI -ControllerNumber 0 -ControllerLocation 0

Post-Script:
Add-VMHardDiskDrive -VMName <VirtualMachineName> -ControllerType SCSI -ControllerNumber <ID> -ControllerLocation <ID> -DiskNumber <ID>

Eg: Add-VMHardDiskDrive -VMName VM01 -ControllerType SCSI -ControllerNumber 0 -ControllerLocation 0 -DiskNumber 3

You can get the DiskNumber from Hyper-V Virtual Machine settings.

Hyper-V 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.

Remove-Pass-through_Disks

Add-Pass-through_Disks

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

Veeam Backup and Replication Storage - Advanced Settings

Go to Scripts tab and set the scripts.

Veeam Backup and Replication Scripts

Veeam Backup and Replication PowerShell 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.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • privacy
  • Veeam Backup – Failed to prepare guests for volume snapshot
  • How to Configure/Integrate FortiClient EMS with FortiAnalyzer
  • Backup Hyper-V Virtual Machines with Pass-Through Disks
  • Slow Network Speed with Hyper-V Virtual Machines on Windows Server Server 2019
  • Block MS Exchange Server OWA access from Internet
  • Error 1168 – The specified product key could not be validated.
  • Unable to Enable Desktop Icons after Joining to the Domain
  • Veritas BackupExec – A backup set was created which contains no data 0xe00084b7
  • Download Offline Address Book – Unexpected Error has occurred

Deprecated: genesis_footer_creds_text is deprecated since version 3.1.0! Use genesis_pre_get_option_footer_text instead. This filter is no longer supported. You can now modify your footer text using the Theme Settings. in /home/wwwdoitf/public_html/wp-includes/functions.php on line 5238