使用两个VirtualBox主机调试Windows内核 [英] Debugging Windows Kernel with two VirtualBox hosts

查看:137
本文介绍了使用两个VirtualBox主机调试Windows内核的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Linux,而在VirtualBox中有两台Windows 7机器设置。



现在我试图使用第一台机器调试第二台机器



所以我为两台机器配置了相同的主机管道,





在调试器机器中,我启动了等待输入的windbg在 COM1





在debugee机器上,我启用了调试模式并重新启动,

  C:\Users\XX> bcdedit / dbgsettings 
debugtype Serial
debugport 1
baudrate 115200

但是他们似乎不认识对方,只是盲目等待。



<有什么问题吗?或者是不可能实现的。

解决方案


  • 取消选中其中一个虚拟机上的创建管道 (为了最佳实践,它应该是调试器的目标)。对于串行端口重定向,一个VM充当服务器(创建管道的服务器),其他作为客户端。

  • 使用一些终端应用程序来检查是否可以在虚拟机使用com端口。而只有安装内核调试器。


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.

解决方案

  • 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.

这篇关于使用两个VirtualBox主机调试Windows内核的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆