GPU Passthrough 사용하는경우 아래처럼 오류메세지가 나오는 경우가 있다.
Jul 14 02:00:01 proxmox kernel: [ 6044.433981] vfio-pci 0000:07:00.0: BAR 1: can't reserve [mem 0x7fe0000000-0x7fefffffff 64bit pref] Jul 14 02:00:01 proxmox kernel: [ 6044.433981] vfio-pci 0000:07:00.0: BAR 0: can't reserve [mem 0xe0000000-0xefffffff 64bit pref]
Using: echo 1 > /sys/bus/pci/devices/0000\:09\:00.0/remove echo 1 > /sys/bus/pci/rescan
You can create a .sh chmod +x and add it to cron
File: /root/fix_gpu_pass.sh //Note Change "0000\:0X\:00.0" for your GPU PCI ID
#!/bin/bash echo 1 > /sys/bus/pci/devices/0000\:0X\:00.0/remove echo 1 > /sys/bus/pci/rescan
Add to cron:
crontab -e add: @reboot /root/fix_gpu_pass.sh