|
|
上篇最后一个问题答案在此:
上网搜了下,然后自己试了下,虚拟机使用2000 AD Server,总结如下:
1、在虚拟机上创建串口com1
2、配置:
Device status : Connect at power on
Connection : Use named pipe
Use named pipe : \.\pipe\com_1
: This end is the server
: The other end is an application
I/O Mode : Yield CPU on poll 勾上
3、在windbg中配置kernel debug使用COM连接,port: \.\pipe\com_1,勾上pipe,reset:0
或者使用命令行启动:-k com:port=\.\pipe\com_1,baud=11520,pipe
4、修改虚拟机的boot.ini,添加一个启动选项:
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional - debug" /fastdetect /debug /debugport=com1 /baudrate=115200
5、先开windbg,然后启动debug参数的虚拟机,即可。
如果很长时间没有连接上的话,可以按 WinDbg 菜单中的 "Debug"->"Kernel Connection"->"Resynchronize
最后说明一下,网上资料显示,虚拟机中2000和XP系统,启动参数设置可能会有所不同,下面附上从一个大牛blog上抄下的虚拟机为XP的参数设置:
地址:http://mjsi.blogcn.com/diary,115201236.shtml
1 虚拟机串口设置,与上面相同
2 虚拟机boot.ini,启动时选kernel debug
--------------------------------------------------------------------------
[boot loader]
timeout=-1
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Kernel Debug" /noguiboot /debug /debugport=COM1 /sos
--------------------------------------------------------------------------
3 带参数启动本机windbg
--------------------------------------------------------------------------
"D:\Program Files\Debugging Tools for Windows\windbg.exe" -k com:=pipe,port=\.\pipe\debug,resets=0 -y C:\WINDOWS\SYMBOLS
--------------------------------------------------------------------------
|
|
|