想用windbg调驱动,宿主机装windbg,虚拟机运行驱动。
按照网上的教程配置好环境后,虚拟机一开机就提示(宿主机windbg不启动也报这个错)
“A virtual CPU has entered the shutdown state. This would have caused a physical machine to restart. This can be caused by an incorrect configuration of the virtual machine, a bug in the operating system or a problem in the VMware Workstation software. Press OK to restart the virtual machine or Cancel to power off the virtual machine.”
虚拟机串口设置Serial Port2为\\.\pipe\com_1
boot.ini设置为multi(0) disk(0) rdisk(0) partition(1) \WINDOWS="Microsoft Windows XP Professional -Debug" /fastdetect /debugport=COM1 /baudrate=115200
(debugport=COM2也报错)
windbg快捷方式目标为D:\WinDDK\7600.16385.1\Debuggers\windbg.exe -k com:port=\\.\pipe\com_1,baud=115200,pipe
问题已解决。
是boot.ini里的debug启动项的格式不对:
multi(0) disk(0) rdisk(0) partition(1) \WINDOWS="Microsoft Windows XP Professional -Debug" /fastdetect /debugport=COM1 /baudrate=115200
前半段复制系统默认的就对了。