Skip to content

Instantly share code, notes, and snippets.

View lucanastasio's full-sized avatar

Luca Anastasio lucanastasio

View GitHub Profile
@lucanastasio
lucanastasio / hookscript.pl
Last active August 11, 2023 22:17
Proxmox passthrough saver hook script
#!/usr/bin/perl
# Copyright (c) 2021 Luca Anastasio
# anastasio<dot>lu<at>gmail<dot>com
# Hookscript to avoid taking PCI passed through devices from running VMs
# also attaches them to their placeholders after guests are stopped
# You can set this via qm with
# qm set 100 --hookscript local:snippets/hookscript.pl
use strict;