I have as a host Bigsur and VM Catalina.
I want to debug the processes of the VM from the outside (so I will be able to overcome the inner limitations).
When I use "Start Debugging Session" This is what I get:
```
Last login: Sun Aug 2 18:03:27 on ttys001
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
ATeam-MBP:~ ateam$ lldb -s <(echo 'gdb-remote localhost:57248')
(lldb) command source -s 0 '/dev/fd/63'
Executing commands in '/dev/fd/63'.
(lldb) gdb-remote localhost:57248
Kernel UUID: 94AC94F4-A094-****-****-***********
Load Address: 0xffffff8003c00000
WARNING: Unable to locate kernel binary on the debugger system.
(lldb) image list
error: the target has no associated executable images
(lldb) platform status
Platform: darwin-kernel
Connected: no
Debug session type: unknown kernel debugging
Directories searched recursively:
[0] //System/Library/Extensions
[1] //Library/Extensions
[2] //System/Library/Kernels
Directories not searched recursively:
[0] /
[1] /Users/attackteam
Number of kexts with dSYMs indexed: 0
Number of kexts without dSYMs indexed: 462
Number of Kernel binaries with dSYMs indexed: 0
Number of Kernel binaries without dSYMs indexed: 1
```
The VM is stoped and looks like the kernel is actually debugged, but as you can see I get "Unable to locate kernel binary on the debugger system." as well as "Connected: no" , which mean I not actually debugging the system (for example I cant list the processes in it and attach to one of them).
A. Is this a problem? or this is how it supposed to woork?
B. Is there any comperhansive tutorial how to debug the VM from the outside?
I want to debug the processes of the VM from the outside (so I will be able to overcome the inner limitations).
When I use "Start Debugging Session" This is what I get:
```
Last login: Sun Aug 2 18:03:27 on ttys001
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
ATeam-MBP:~ ateam$ lldb -s <(echo 'gdb-remote localhost:57248')
(lldb) command source -s 0 '/dev/fd/63'
Executing commands in '/dev/fd/63'.
(lldb) gdb-remote localhost:57248
Kernel UUID: 94AC94F4-A094-****-****-***********
Load Address: 0xffffff8003c00000
WARNING: Unable to locate kernel binary on the debugger system.
(lldb) image list
error: the target has no associated executable images
(lldb) platform status
Platform: darwin-kernel
Connected: no
Debug session type: unknown kernel debugging
Directories searched recursively:
[0] //System/Library/Extensions
[1] //Library/Extensions
[2] //System/Library/Kernels
Directories not searched recursively:
[0] /
[1] /Users/attackteam
Number of kexts with dSYMs indexed: 0
Number of kexts without dSYMs indexed: 462
Number of Kernel binaries with dSYMs indexed: 0
Number of Kernel binaries without dSYMs indexed: 1
```
The VM is stoped and looks like the kernel is actually debugged, but as you can see I get "Unable to locate kernel binary on the debugger system." as well as "Connected: no" , which mean I not actually debugging the system (for example I cant list the processes in it and attach to one of them).
A. Is this a problem? or this is how it supposed to woork?
B. Is there any comperhansive tutorial how to debug the VM from the outside?