
How to set up 2 VirtualBox VM to debug kernel driver using windbg
We consider here that on Computer A windbg is already installed and on Computer B Visual Studio, the SDK and WDK are installed.

Host network Manager to create or set up a new Virtual Box Host-Only Ethernet adapter
Virtual Box Host-Only Ethernet adapter and tick the Enable box for DHCP Server
Settings -> Network and in Attached to select Host-Only Adapter and then select the adapter previously set up or created. For us it's VirtualBox Host-Only Ethernet Adapter. Don't forget to tick the boxes Enable Network Adapter and Cable Connected
ipconfig command
bcdedit /debug onbcdedit /dbgsettings hostip:1.2.3.4 port:50005bcdedit /set testsigning onFor the command bcdedit /dbgsettings, for hostip set the IP of your Computer A, for port choose the one you want between 50000 and 50039.
The bcdedit /dbgsettings will output a Key, KEEP IT it will be used on the windbg configuration on Computer A to establish the connection !
Attach to Kernel and set the port you choose on Computer B and the key provided by the command bcdedit /dbgsettings.
Break. If it works, Computer B should be freezed and you should see a nt!DbgBreakPointWithStatus message in the command windows of windbg
Have fun !
If you want good ressources to practice go check :