Jump to content
2 posts in this topic

Recommended Posts

I followed the how to here:  https://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/

 

After building the bios, I am able to attach a gpu or connect Spice, however boot fails fast with:

 

Error loading kernel cache (0x9)

 

I've google around and spent a few hours trying to get it working, but no luck.

 

I've made a couple of installers to be sure, and not seen any errors.

 

Currently my KVM invocation looks like:

 

qemu-system-x86_64 \
-name macOS-VM \
-vga none -vnc :0 \
-machine q35,accel=kvm -bios ~/src/roms/macOS_OVMF.fd -m 4096 \
-cpu core2duo -smp 4,cores=2 \
-usb -device usb-kbd -device usb-tablet \
-device isa-applesmc,osk="foobarbin" \
-netdev user,id=usr0 -device e1000-82545em,netdev=usr0,id=vnet0 \
-device ide-drive,bus=ide.0,drive=MacDVD \
-drive id=MacDVD,if=none,snapshot=on,file=/var/lib/vz/template/iso/snowleopard.iso \
-device ide-drive,bus=ide.2,drive=MacHDD \
-drive id=MacHDD,if=none,file=/dev/zvol/vmpool/vm-1003-disk-1 \
-device 'vfio-pci,host=0b:00.0,id=hostpci0,bus=pcie.0,addr=0x2' \
-device 'vfio-pci,host=0b:00.1,id=hostpci1,bus=pcie.0,addr=0x11' \
 
... however, I'm not married to that method if someone has a better one.  I'd rather not change my distro however, which is Proxmox (which is based on Debian).  I've made a few installers to be sure that it's not a problem with my install media, but the results are always the same.  I see some solutions for similar problems to mine (not identical) which involve modifying the installer, which is a bit harder than it sounds as I need to temporarily repair my mac to do it, so I was hoping to get some pointers before I embark on that.
 
Lastly, I've also read that this can be caused by a lack of video ram.  I haven't been able to successfully increase the size of my vram in qemu.  I can keep working on that, but since I'm now passing the vm a gpu with a ton or vram, I don't think that is the solution.
 
Thanks for reading.
 
-FG

Could someone who currently has this working run the following from the command line while running their VM and paste the output:

ps ax|grep kvm

The output might include your osk, so be sure to redact if it does.

 

 

Thanks.

×
×
  • Create New...