Custom hook script for Linux single GPU passthrough(QEMU).
- Get device IDs using
lspci -nnk
- Add the IDs to this file
- Run install.sh
sudo sh install.sh
or copyhooks/
folder into/etc/libvirt/
sudo apt update
sudo apt install virt-manager qemu-kvm qemu-utils libvirt-daemon-system libvirt-clients bridge-utils virt-manager ovmf
sudo apt install ebtables iptables dnsmasq
sudo systemctl enable libvirtd.service
sudo systemctl start libvirtd.service
sudo systemctl enable virtlogd.socket
sudo systemctl start virtlogd.socket
sudo virsh net-autostart default
systemctl reboot