foxlet / macOS-Simple-KVM

Tools to set up a quick macOS VM in QEMU, accelerated by KVM.
13.64k stars 1.14k forks source link

Stuck on boot when starting form virt-manager #251

Open Fictions1337 opened 4 years ago

Fictions1337 commented 4 years ago

Hello, I have made a MacOS VM that works fine through QEMU, once I imported it to virt-manager and passed a GPU as well as a mouse and keyboard to it and started the VM I was greeted by the Clover boot menu, where I saw the HDD I installed Mac on with the text "boot macOS from: Mac" once I pressed enter the boot text start showing up and at some point it stops and freezes up, doesn't load the desktop environment.

My specs: Ryzen 7 3700x MSI B450 Tomahawk Max 2x16 GB 3460 MHz DDR4 RAM Gigabyte Radeon RX 5700 XT MSI Nvidia GTX 1050 Ti Host OS: Manjaro (kernel version 5.6) Guest OS: MacOS Catalina

vm boot error

I can't really troubleshoot this since I don't even know what the issue is. P.S. I passed the AMD GPU of course

EDIT: I fixed the resolution so i could see where it stops when boosting and it stops here: P_20200623_164618_vHDR_Auto

EDIT 2: After further research and experimenting, I have arrived to a definite error:

qemu-system-x86_64: vfio: Unable to power on device, stuck in D3
qemu-system-x86_64: vfio: Unable to power on device, stuck in D3

I have tried adding disable_idle_d3=1 in /etc/modprobe.d/vfio.conf and it had no effect. Any ideas?

patrickett commented 4 years ago

Try disabling InjectATI in clover.

5700 XT Raw II here and that is what worked for me.

luvicsoura commented 4 years ago

@Fictions1337 Hello! Is there any guides or tutorials on how to do this import (how to set up the VM and so on)? I don't have much expertise when it comes to hardware and virtualization and also don't want to have to use the terminal to launch a VM.

ghost commented 4 years ago

@Fictions1337 Hello! Is there any guides or tutorials on how to do this import (how to set up the VM and so on)? I don't have much expertise

when it comes to hardware and virtualization and also don't want to have to use the terminal to launch a VM. https://github.com/foxlet/macOS-Simple-KVM#getting-started

disable ATI injection

https://www.tonymacx86.com/threads/how-to-disable-inject-ati-in-multibeast-clover.180596/#post-1163051

luvicsoura commented 4 years ago

@asgmeonerandom thank you so much for pointing that out to me. I legitimately have not noticed that step at all.