1.设置 VMware 的虚拟com
1.运行 VMware ,点击 "Edit virtual machine settings"
2.点击 "Add..." 来运行 VMware 的 Hardware Wizard
3.1.3 选择 "Serial Port",点 "下一步"
4.选择 "Output to named pipe",点 "下一步"
5.第一框里保持默认的 "\\.\pipe\com_1"
第二框里选"This end is the server."
第三框里选"The other end is an application."
选中 "Connect at power on"
然后点击 "Advanced>>"(有的版本可能没有这个选项,不要紧,直接点完成再选也行)
6.选中 "Yield CPU on poll"(VMware Support 中提到了这一点),然后点完成。
2.设置 VMware 虚拟出来的 guest os,现在 power on 虚拟出来的 guest os
1.设置boot.ini(不同的OS具体参数略有不同,但不会有大的差别,领会领会精神即可)
在c:\下,可以找到boot.ini,可以用记事本打开它。我们需要在 guest os 的启动项上加些参数,才能够使用WinDbg调试它。我们可以在现有的行后面直接加参数,不过强烈推荐复制一个新行,在新行的后面加参数。这样在调试启动有问题的时候,我们可以方便的换回原来的启动方式。下面就是我改好的boot.ini。
其中 " multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows2000 Professional" /fastdetect "
是原来的行。
" multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional - debug" /fastdetect /debug /debugport=com1 /baudrate=115200 " 是我新加的将来用于 WinDbg 调试的行。