Jump to content
3 posts in this topic

Recommended Posts

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 ?

 

 

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.

 

  • 2 months later...

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...