Page 1 of 1

Anyone still with x86 mac and hvf-enabled qemu?

Posted: Wed Oct 30, 2024 10:20 pm
by Andrew_R
I run into weird problem/bug, but it was coldly received at QEMU upstream

https://gitlab.com/qemu-project/qemu/-/issues/2646

Basically VM (qemu 9.0.3) works with Linux, netBSD, HaikuOS, Win10 - but NOT with specific installed image of 10.6.8 (intel) if I enable accel hvf
It works with tcg o.O

It also works on Slackware 15.0/amd FX KVM on desktop :)

So, I suspect something not complete for HVF (x86-64) virtualization. But because my host macos deemed outdated ....

It very well may be hw issue, depending on actual HW cpu.
But may be it some sort of generic bug?

10.5.4 I found on archive.org also do not boot on qemu-system-x86_64 in any mode, but boots and installs as PPC on qemu-system-ppc

Re: Anyone still with x86 mac and hvf-enabled qemu?

Posted: Thu Oct 31, 2024 12:01 am
by adespoton
That's really odd. With QEMU 7 and earlier, I had HVF working, but not TCG for 10.6.8. I haven't really played with HVF since then, as I don't have any x86 machines sitting around that are both capable of running QEMU 9 and that aren't already running some mission critical service. My test boxes are all M-series now, or too old to run QEMU 9.

Re: Anyone still with x86 mac and hvf-enabled qemu?

Posted: Thu Oct 31, 2024 1:42 am
by Andrew_R
Andrew_R wrote: Wed Oct 30, 2024 10:20 pm I run into weird problem/bug, but it was coldly received at QEMU upstream

https://gitlab.com/qemu-project/qemu/-/issues/2646
fixed this by using other openCore qcow2 file. But it does not work on my AMD machine with kvm, so I think I'll keep them both.

https://github.com/royalgraphx/LegacyOS ... nKVM.qcow2
(set to 1920x1080, i re-set it to 1024x768 by editing plist.)

Re: Anyone still with x86 mac and hvf-enabled qemu?

Posted: Thu Oct 31, 2024 5:16 am
by Andrew_R

Re: Anyone still with x86 mac and hvf-enabled qemu?

Posted: Thu Oct 31, 2024 9:31 am
by Andrew_R
a bit more experimentation.
I replaced guts of ~2023 efi image (LegacyDarwinKVM.qcow2) mostly with content of OpenCore-1.0.2-DEBUG.zip (left uefi drivers, acpi table/patch and config.plist).

And it still boots on hvf!

So, something in old config, or older OpenCore was upsetting especially hvf. nice to see it working with latest OpenCore debug release. Not sure if I ever find key switch/setting responsible for that reboot ...

10.5.4 (intel) installer boots better also, but Kernel panics in Lilu kext.(1.6.7)

Re: Anyone still with x86 mac and hvf-enabled qemu?

Posted: Thu Oct 31, 2024 3:13 pm
by adespoton
Andrew_R wrote: Thu Oct 31, 2024 9:31 am a bit more experimentation.
I replaced guts of ~2023 efi image (LegacyDarwinKVM.qcow2) mostly with content of OpenCore-1.0.2-DEBUG.zip (left uefi drivers, acpi table/patch and config.plist).

And it still boots on hvf!

So, something in old config, or older OpenCore was upsetting especially hvf. nice to see it working with latest OpenCore debug release. Not sure if I ever find key switch/setting responsible for that reboot ...

10.5.4 (intel) installer boots better also, but Kernel panics in Lilu kext.(1.6.7)
Ah; I know there have been some architectural fixes recently in OpenCore; last time I tried to test, they hadn't rolled all the changes in yet (1.0.1?). When I have time, I'll try re-building my images again and see if the new ones are more cross-platform when used with QEMU 9+.