I'm trying to set up kernel debugging on a physical hardware/desktop to test the new WinDbg Preview. Here's the steps:
I'm using a desktop with Intel DG41TY board.
Installed Windows 10 Pro build 1803. (Off USB, created using media creation tool.)
The board has a supported network card:
PCI\VEN_10EC&DEV_8168&SUBSYS_D6128086&REV_03
Prepped up that debuggee for kernel debugging via Ethernet cable by running the following from an elevated
cmd
(where192.168.1.29
is the debugger machine IP address):bcdedit /debug on bcdedit /dbgsettings net hostip:192.168.1.29 port:50000 key:1.2.3.4 bcdedit /set "{dbgsettings}" busparams 3.0.0
I set it all up to the default boot configuration because that PC was not supposed to have a monitor, mouse or keyboard, so that it could boot up into a debugging mode by default. (For further control I was assuming to remote-desktop into it.)
Connected it via an Ethernet cable to my Windows 10 Pro laptop.
On the debugger laptop, I was using new, Windows Store version of WinDbg Preview:
Debugger client version: 1.0.1805.17002 Debugger engine version: 10.0.17674.1000
In WinDbg I set up network kernel debugging as such:
I'm not sure what that new "Target" field meant, I assumed it to be the target machine (or debuggee) so I gave it that desktop's IP address:
Then rebooted the debuggee desktop ... and nothing happened. Windows 10 hung up during the boot process. I assumed that I didn't set something right on the debuggee side, closed WinDbg and tried to reboot the debuggee machine. But it hung up during the boot again.
At this point I disconnected the Ethernet cable and had to reboot it using the power button on that desktop. It failed one more time, and then Windows blue menu came up saying that it failed to automatically recover and needs to reset. (I can't remember the exact wording.)
So about 2 hours later, it recovered and that desktop (debuggee) can now boot, but it wiped out everything that I installed on it. (I can recover all of my installed software since it was a brand new installation.)
So I'm wondering if I was doing something wrong, and if anyone else dealt with the same issue?
PS. I'm just trying to avoid wasting 2+ hrs for such a reset in the future.
EDIT: I was able to replace an HDD in this test PC with an SSD, then reinstall Windows 10 from scratch, and repeat the steps I described above. When I enabled kernel network debugging, that PC started booting visibly slower (about 2 minutes vs. original 15-20 sec.)
After that as soon as I connected an Ethernet cable from that test PC to my Windows 10 laptop with WinDbg Preview waiting for connection, the booting process never completed. WinDbg Preview never connected to that remote PC either.
After a while I disconnected the Ethernet cable and forced the reboot by holding down the power button. This time the boot process froze up after about 2-3 minutes of seeing the spinning dots. Here's the exact screen:
Then when I force-rebooted it again, it showed:
then:
and eventually:
(Luckily this time I created a restore point before doing the tests above. Restore points were off by default in Windows 10. So after clicking "Advanced options" I was able to restore from a restore point.)
The C:\Windows\System32\LogFiles\Srt\SrtTrail.txt
file mentioned in the screenshot above contains the following:
Startup Repair diagnosis and repair log
---------------------------
Number of repair attempts: 1
Session details
---------------------------
System Disk = \Device\Harddisk0
Windows directory = C:\Windows
AutoChk Run = 0
Number of root causes = 1
Test Performed:
---------------------------
Name: Check for updates
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: System disk test
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: Disk failure diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 16 ms
Test Performed:
---------------------------
Name: Disk metadata test
Result: Completed successfully. Error code = 0x0
Time taken = 296 ms
Test Performed:
---------------------------
Name: Disk metadata test
Result: Completed successfully. Error code = 0x0
Time taken = 16 ms
Test Performed:
---------------------------
Name: Target OS test
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: Volume content check
Result: Completed successfully. Error code = 0x0
Time taken = 63 ms
Test Performed:
---------------------------
Name: Boot manager diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: System boot log diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 15 ms
Root cause found:
---------------------------
Boot critical file c:\efi\microsoft\boot\resources\custom\bootres.dll is corrupt.
Repair action: File repair
Result: Failed. Error code = 0x57
Time taken = 2328 ms
---------------------------
---------------------------
Additionally, if anyone at Microsoft wants me to email you the entire C:\Windows\System32\LogFiles\Srt
folder, I can do so upon request.
sos yes
) to see what gets loaded. I'd also recommend to enable/bootdebug
- at least temporarily - until you figure out what's wrong (it's not strictly needed for ordinary kernel mode debugging, though).