ra1nstorm / ra1nstorm-helper

Automatically configures an environment to run checkra1n
MIT License
218 stars 110 forks source link

qemu-system-x86_64: vfio: Cannot reset device 0000:00:14.0, no available reset mechanism. #103

Closed ghost closed 4 years ago

ghost commented 4 years ago

First time through getting the macOS installed all goes well but when I restart with the patch to grub I get this. Even when I restart without patching grub again I still get this error. The error I get is qemu-system-x86_64: vfio: Cannot reset device 0000:00:14.0, no available reset mechanism. when I try to relaunch the VM. The issue I have is that my KB&M become unresponsive and my caps lock blinks. Googling says this is a kernel panic but I haven't found a solution yet. Here is my console when booting the VM: image0

I have run the following terminal command to figure out what 0000:00:14.0 is:

for iommu_group in $(find /sys/kernel/iommu_groups/ -maxdepth 1 -mindepth 1 -type d);do echo "IOMMU group $(basename "$iommu_group")"; for device in $(\ls -1 "$iommu_group"/devices/); do if [[ -e "$iommu_group"/devices/"$device"/reset ]]; then echo -n "[RESET]"; fi; echo -n $'\t';lspci -nns "$device"; done; done

This is the result: Screenshot_2019-12-15_02-49-39

I think it has something to do with my onboard usb ports not being able to be reset but even when not using those and using only the front usb header ports (yes I know you are not suppose to use these but I attempted for testing purposes as to not use the troubled ports in question) I still get this error.

Any help is appreciated. Thanks in advance.

SYSTEM SPECS: MOBO: ASRock Z170 Pro4 CPU: i7-7700K RAM: 32GB 4x8GB 2666MHZ GPU 1: RTX 2080ti GPU 2: GTX 970

ghost commented 4 years ago

Solved it. The issue was I was using a keyboard with two usb cables. Switching to a $5 single cable keyboard fixed my issue.