问题
I'm running Linux, and I have two Windows 7 machine setup in VirtualBox.
Now I'm trying to use the first machine to debug the second one.
So I configured the same host pipe for the two machines,
In the debugger machine, I launches windbg that waiting for inputs on COM1
:
And on the debugee machine, I enabled debug mode and reboot,
C:\Users\XX>bcdedit /dbgsettings
debugtype Serial
debugport 1
baudrate 115200
But they don't seem to know each other, just blindly waiting.
Anything wrong? Or was it just impossible to achieve.
回答1:
- Uncheck "Create Pipe" on one of the VMs (for best practice it should be a debugger target). For serial port redirection one VM acts as a server (the one that creates the pipe) and other acts as a client.
- Use some terminal application to check that you can pass the data between the VMs using com port. And only then setup kernel debugger.
来源:https://stackoverflow.com/questions/18590288/debugging-windows-kernel-with-two-virtualbox-hosts