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"
- ## Unbind ssd from vfio and bind to nvme
- ## Unload vfio
- modprobe -r vfio_pci
- modprobe -r vfio_iommu_type1
- modprobe -r vfio
- sleep 10
- ## Unbind gpu from vfio and bind to nvidia
- virsh nodedev-reattach $VIRSH_GPU_VIDEO
- virsh nodedev-reattach $VIRSH_GPU_AUDIO
- virsh nodedev-reattach $VIRSH_GPU_USB
- virsh nodedev-reattach $VIRSH_GPU_SERIAL
- sleep 5
- modprobe nouveau
Advertisement
Add Comment
Please, Sign In to add comment