1.关闭强制驱动程序签名
bcdedit /set loadoptions DDISABLE_INTEGRITY_CHECKS
2.开启系统测试模式
bcdedit /set testsigning on
3.安装驱动
sc create TestDriver binpath= "c:windowssystem32driversTestDriver.sys" type= kernel start= demand
type= {own | share | kernel | filesys | rec | adapt | interacttype= {own | share}}
start= {boot | system | auto | demand | disabled}
sc start TestDriver
sc stop TestDriver
4.配置虚拟机调试
bcdedit /bootdebug on
bcdedit /debug on
bcdedit /dbgsettings NET HOSTIP:ip PORT:port [KEY:key] [nodhcp] [newkey] [/start startpolicy] [/noumex]
bcdedit /dbgsettings LOCAL [/start startpolicy] [/noumex]
bcdedit /dbgsettings SERIAL [DEBUGPORT:port] [BAUDRATE:baud] [/start startpolicy] [/noumex]
bcdedit /dbgsettings USB [TARGETNAME:targetname] [/start startpolicy] [/noumex]
bcdedit /dbgsettings 1394 [CHANNEL:channel] [/start startpolicy] [/noumex] NOTE: The 1394 TRANSPORT IS DEPRECATED
例子:
bcdedit /dbgsettings serial debugport:1 baudrate:115200
bcdedit /dbgsettings usb targetname:myTarget
bcdedit /dbgsettings net hostip:10.125.5.10 port:50000
bcdedit /dbgsettings NET HOSTIPV6:2001:48:d8:2f:5e:c0:42:28:4f5b PORT:50000
windbg -k com:pipe,port=\.pipecom_1,resets=0,reconnect