1.运行target虚机,在kvm命令中添加-serial tcp::9000,server,nowait参数,启动好之后,修改boot.ini(XP)文件,添加
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP
Professional- with debug" /noexecute=alwaysoff /fastdetect /debug
/debugport=com1 /baudrate=115200
bcdedit /dbgsettings SERIAL DEBUGPORT:1 BAUDRATE:115200
Windows 7:
bcdedit /debug ONbcdedit /dbgsettings SERIAL DEBUGPORT:1 BAUDRATE:115200
2.运行debug虚机,在kvm命令中添加-serial tcp:localhost:9000参数,启动好之后,运行windbg,选择“kernel debug...",默认COM1即可;3.重启target虚机,启动菜单选择"Microsoft Windows XP Professional- with debug";4.在windbg中添加,用于加载windows系统的符号表;