This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # PVE vzdump hookscript handing VM backups with single PCIE GPUs pass-through | |
| # | |
| # Temporarily removes the single PCI passthrough device from VM config of a | |
| # stopped VM before backup to prevent the "PCI device already in use" error | |
| # when PCIE devices are attached to other running VMs. | |
| # | |
| # ATTENTION: | |
| # ** handles only VMs with single PCIE devices, rewrite to handle more |