You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
535 B
Bash
26 lines
535 B
Bash
4 years ago
|
#!/bin/bash
|
||
|
set -x
|
||
|
|
||
|
# Unload vfio module
|
||
|
modprobe -r vfio-pci
|
||
|
|
||
|
# Attach GPU devices to host
|
||
|
# Use your GPU and HDMI Audio PCI host device
|
||
|
virsh nodedev-reattach pci_0000_01_00_0
|
||
|
virsh nodedev-reattach pci_0000_01_00_1
|
||
|
|
||
|
# Rebind framebuffer to host
|
||
|
echo "efi-framebuffer.0" > /sys/bus/platform/drivers/efi-framebuffer/bind
|
||
|
|
||
|
# Load NVIDIA kernel modules
|
||
|
modprobe nvidia_drm
|
||
|
modprobe nvidia_modeset
|
||
|
modprobe nvidia_uvm
|
||
|
modprobe nvidia
|
||
|
|
||
|
# Load AMD kernel module
|
||
|
# modprobe amdgpu
|
||
|
|
||
|
# Restart Display Manager
|
||
|
systemctl start display-manager
|