scorpion81 Posted January 7, 2022 Share Posted January 7, 2022 Hello everyone, i have been trying to get Intel GVT-g aka iGPU passthru via shared memory working in conjunction with a qemu virtual machine with Mac OS 12.1. (for a week or so now) For more info about this, see also https://github.com/acidanthera/bugtracker/issues/1914 . I have been using docker-osx ( https://github.com/sickcodes/Docker-OSX) in order to install mac OS, then i extracted the img file from the docker container and work directly with it. Atm I am a bit stuck with a "Waiting for remote debugger" error message. I would like to investigate the crash a bit closer. Now i wonder whether you could hook up GDB from the linux host to qemu / oc / the booting mach kernel, or atleast extract the crash report files this way ? qemu -s would open a socket... but then i would need some guidance... How is the mac os kernel executable called ? Under linux it is "vmlinux" for example... I found only this so far ... https://qemu.readthedocs.io/en/latest/system/gdb.html but no macos specifics for that endeavor. Is there a guide how to set things properly up for this ? At the moment i always have to revert to a working config, boot mac OS, get the logs etc out of it, close mac OS, make edits, boot mac OS again, crash... and so on. This is a bit of a lengthy process and I just wanted faster access to the crash logs. (which actually are NOT inside the EFI folder inside OpenCore.qcow2, which is being used as boot drive, but on the main disk with apfs, which seems not to be accessible easily from linux afaik) Or am I totally wrong with that ? Quote Link to comment https://www.insanelymac.com/forum/topic/350299-opencore-qemu-remote-debugging-of-mac-os-boot-errors/ Share on other sites More sharing options...
scorpion81 Posted January 8, 2022 Author Share Posted January 8, 2022 Thanks to @vit9696 who gave me a good tip on how to get the bootlogs as text: "Use serial emulation. Add debug=8 to boot-args and perhaps serial=3. Then connect a serial device to QEMU, I often use -serial stdio, but it can be a file or a TCP port." I can now proceed with my investigations. Atm I think some "remote debugging" is not necessary, but maybe as last resort or so. Quote Link to comment https://www.insanelymac.com/forum/topic/350299-opencore-qemu-remote-debugging-of-mac-os-boot-errors/#findComment-2774761 Share on other sites More sharing options...
kocoman Posted April 6, 2022 Share Posted April 6, 2022 Does debug=8 work for other osx versions? Thx Quote Link to comment https://www.insanelymac.com/forum/topic/350299-opencore-qemu-remote-debugging-of-mac-os-boot-errors/#findComment-2779483 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.