-
Notifications
You must be signed in to change notification settings - Fork 2
Kernel debugging with VirtualBox
Fredrik Orderud edited this page Apr 1, 2025
·
13 revisions
Retrieved from https://www.virtualbox.org/manual/topics/AdvancedTopics.html
From a regular command prompt:
set VM_NAME=Win10_22H2
set PATH=%PATH%;C:\Program Files\Oracle\VirtualBox
VBoxManage.exe showvminfo %VM_NAME%
VBoxManage.exe modifyvm %VM_NAME% --paravirt-debug "enabled=1"
Then reboot.
From an admin command prompt within the VM:
bcdedit /dbgsettings net hostip:5.5.5.5 port:50000 key:1.2.3.4
bcdedit /set debug on
bcdedit /set testsigning on

Either, break WinDBG execution and send the following command to enable display of debug messages: kd>
ed nt!Kd_IHVDRIVER_Mask 0xffffffff
Or, merge the following IHVDRIVER-debugging.reg file on the target machine:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter]
"IHVDRIVER"=dword:ffffffff