I've been trying to work on this for weeks, and I just can't find what isn't working. Well, I know what isn't working, the script, more specifically, the "virsh nodedev-detatch" command.
I'm also on Arch running startx from a tty, and even when I use sddm or gdm, I get the same result. I should have dependencies installed and what not, but maybe I overlooked something. Of course, this means I get stuck at a blank screen when I attempt to load the VM.
I've been trying to work on this for weeks, and I just can't find what isn't working. Well, I know what isn't working, the script, more specifically, the "virsh nodedev-detatch" command.
I'm also on Arch running startx from a tty, and even when I use sddm or gdm, I get the same result. I should have dependencies installed and what not, but maybe I overlooked something. Of course, this means I get stuck at a blank screen when I attempt to load the VM.
$ virsh nodedev-detatch pci_0000_1c_00_0 error: unknown command: 'nodedev-detatch'
Same result when executing the script without killing displaymanager/xorg.
Here is my script:
`#!/bin/bash set -x
source "/etc/libvirt/hooks/kvm.conf"
killall xinit killall xorg
echo 0 > /sys/class/vtconsole/vtcon0/bind echo 0 > /sys/class/vtconsole/vtcon1/bind
echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind
sleep 10
modprobe -r amdgpu
virsh nodedev-detatch pci_0000_1c_00_0 virsh nodedev-detatch pci_0000_1c_00_1
modprobe vfio modprobe vfio_pci modprobe vfio_iommu_type1
Anyone got any ideas?