Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set -x
- ## Load the config file
- source "/etc/libvirt/hooks/kvm.conf"
- ## Load vfio
- modprobe vfio
- modprobe vfio_iommu_type1
- modprobe vfio_pci
- modprobe -r nouveau
- ## Unbind gpu from nvidia and bind to vfio
- virsh nodedev-detach $VIRSH_GPU_VIDEO
- virsh nodedev-detach $VIRSH_GPU_AUDIO
- virsh nodedev-detach $VIRSH_GPU_USB
- virsh nodedev-detach $VIRSH_GPU_SERIAL
Advertisement
Add Comment
Please, Sign In to add comment