mirror of
https://github.com/unraid/webgui.git
synced 2026-04-29 22:39:20 -05:00
if vfio-pci bind error, prevent autostart
This commit is contained in:
@@ -26,3 +26,10 @@ if [ ! -d /etc/libvirt/qemu ]; then
|
||||
umount /etc/libvirt-
|
||||
fi
|
||||
fi
|
||||
|
||||
# if vfio-pci bind error, prevent autostart
|
||||
if [ -s /var/log/vfio-pci-errors ]; then
|
||||
mkdir -p /run/libvirt/qemu
|
||||
echo "vfio-pci bind error" > /run/libvirt/qemu/autostarted
|
||||
/usr/local/emhttp/webGui/scripts/notify -e "VM Autostart disabled" -s "vfio-bind-error" -d "VM Autostart disabled due to vfio-bind error" -m "Please review /var/log/vfio-pci-error" -i "alert" -l "/VMs"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user