Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Helpful to read output when debugging
- set -x
- # Load the config file with our environmental variables
- source "/etc/libvirt/hooks/kvm.conf"
- # Unload all the vfio modules
- modprobe -r vfio_pci
- modprobe -r vfio_iommu_type1
- modprobe -r vfio
- # Reattach the gpu
- virsh nodedev-reattach $VIRSH_GPU_VIDEO
- virsh nodedev-reattach $VIRSH_GPU_AUDIO
- # Load all Radeon drivers
- modprobe amdgpu
- modprobe gpu_sched
- modprobe ttm
- modprobe drm_kms_helper
- modprobe i2c_algo_bit
- modprobe drm
- modprobe snd_hda_intel
- #Start you display manager
- systemctl start display-manager.service
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement