Desktop setup
This commit is contained in:
commit
a7eaa7dbfb
14 changed files with 325 additions and 0 deletions
13
roles/vm/templates/unbind_vfio.sh.j2
Normal file
13
roles/vm/templates/unbind_vfio.sh.j2
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
## Load the config file
|
||||
source "/etc/libvirt/hooks/kvm.conf"
|
||||
|
||||
## Unbind gpu from vfio and bind to nvidia
|
||||
virsh nodedev-reattach $VIRSH_GPU_VIDEO
|
||||
virsh nodedev-reattach $VIRSH_GPU_AUDIO
|
||||
|
||||
## Unload vfio
|
||||
modprobe -r vfio_pci
|
||||
modprobe -r vfio_iommu_type1
|
||||
modprobe -r vfio
|
Loading…
Add table
Add a link
Reference in a new issue