Open gabrieldeholanda opened 4 years ago
You have to edit your rebind.sh it should look something like this
BIND_PID1="8086 a36d" BIND_BDF1="0000:00:14.2"
sudo modprobe vfio-pci echo "$BIND_PID1" > /sys/bus/pci/drivers/vfio-pci/new_id echo "$BIND_BDF1" > /sys/bus/pci/devices/$BIND_BDF1/driver/unbind echo "$BIND_BDF1" > /sys/bus/pci/drivers/vfio-pci/bind echo "$BIND_PID1" > /sys/bus/pci/drivers/vfio-pci/remove_id
But i also have the same problem so
EDIT: I got it working, after you edit rebind.sh, you maybe need another pc/laptop. Install teamviewer on both. (Linux and second pc) Connect from the second pc to your Main (the one you want to run the kvm) Do "sudo. /rebind.sh This should disconnect some usbs.
Now use teamviewer and your second pc to run "sudo ./basic.sh"
Thats how i get it runnin
Hello
I am facing some trouble
IOMMU Group 0 00:00.0 Host bridge [0600]: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers [8086:3ec2] (rev 07) IOMMU Group 1 00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) [8086:1901] (rev 07) IOMMU Group 1 01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X] [1002:67df] (rev ef) IOMMU Group 1 01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 580] [1002:aaf0] IOMMU Group 2 00:14.0 USB controller [0c03]: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller [8086:a36d] (rev 10) IOMMU Group 2 00:14.2 RAM memory [0500]: Intel Corporation Cannon Lake PCH Shared SRAM [8086:a36f] (rev 10) IOMMU Group 3 00:16.0 Communication controller [0780]: Intel Corporation Cannon Lake PCH HECI Controller [8086:a360] (rev 10) IOMMU Group 4 00:17.0 SATA controller [0106]: Intel Corporation Cannon Lake PCH SATA AHCI Controller [8086:a352] (rev 10) IOMMU Group 5 00:1c.0 PCI bridge [0604]: Intel Corporation Device [8086:a33c] (rev f0) IOMMU Group 6 00:1f.0 ISA bridge [0601]: Intel Corporation Device [8086:a303] (rev 10) IOMMU Group 6 00:1f.3 Audio device [0403]: Intel Corporation Cannon Lake PCH cAVS [8086:a348] (rev 10) IOMMU Group 6 00:1f.4 SMBus [0c05]: Intel Corporation Cannon Lake PCH SMBus Controller [8086:a323] (rev 10) IOMMU Group 6 00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller [8086:a324] (rev 10) IOMMU Group 6 00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection (7) I219-V [8086:15bc] (rev 10)
BIND_PID1="1022 145f" BIND_BDF1="0000:27:00.3"
sudo modprobe vfio-pci echo "$BIND_PID1" > /sys/bus/pci/drivers/vfio-pci/new_id echo "$BIND_BDF1" > /sys/bus/pci/devices/$BIND_BDF1/driver/unbind echo "$BIND_BDF1" > /sys/bus/pci/drivers/vfio-pci/bind echo "$BIND_PID1" > /sys/bus/pci/drivers/vfio-pci/remove_id
root@spacecowboy-System-Product-Name:/home/spacecowboy/macOS-Simple-KVM# '/home/spacecowboy/macOS-Simple-KVM/basic.sh' qemu-system-x86_64: -device vfio-pci,host=00:14.0,bus=port.1: vfio error: 0000:00:14.0: failed to open /dev/vfio/2: No such file or directory