SlideShare a Scribd company logo
1 of 10
Download to read offline
Debugging BSODs during Windows installation
Igor Derzhavets, igord@daynix.com
Yan Vugenfirer, yan@daynix.com
Daynix Computing LTD
Daynix Computing LTD
Agenda
Motivation
Walkthrough guide
Daynix Computing LTD
Motivation
On a new hardware or with new features of the
hypervisor Windows might crash or hang during
the installation
Enable live debugging
Enable gathering and analysis of crash dumps
Daynix Computing LTD
Configuring debuggee
Extract the content of installation media to your local directory
([PATH])
Use bcdedit.exe from target OS or later
Enable serial debugging:
bcdedit.exe -store [PATH]bootbcd /set "{default}" debug on
Enable serial port debug transport (can be USB or Net):
bcdedit.exe -store [PATH]bootbcd /dbgsettings SERIAL
DEBUGPORT:1 BAUDRATE:115200
Daynix Computing LTD
Repackaging the media
Install Windows Assessment and Deployment Kit (ADK)
- http://www.microsoft.com/en-us/download/
details.aspx?id=30652
Create ISO image for debugged installation by oscdimg
utility from ADK:
oscdimg.exe –l[Disc_Label] -m -u2 –b[PATH]boot
etfsboot.com [PATH] RemasterdWinInstall.iso
Daynix Computing LTD
Configuring the debugger host
Start WinDbg host VM or run WinDbg on physical
machine connected to debuggee)
Add the following to QEMU command line:
-chardev socket,id=serial0,path=/tmp/1022895-
serial0,server,nowait -device isa-
serial,chardev=serial0,id=serial0
Daynix Computing LTD
Install from media and debug
If using QEMU, run guest with following command
line addition:
-chardev socket,id=serial0,path=/tmp/1022895-
serial0 -device isa-
serial,chardev=serial0,id=serial0
Daynix Computing LTD
Running WinDbg
Run WinDbg on the
debugging host
Start kernel debug from
"File->Kernel Debug...-
>COM" menu with shown
settings
Use .dump command to
create crash dump if
needed
Daynix Computing LTD
Links
Kernel debugging over serial: https://
msdn.microsoft.com/en-us/library/windows/hardware/
ff556867(v=vs.85).aspx
How to create bootable Windows 8 ISO DVD using
Oscdimg.exe: http://www.windowsvalley.com/create-
bootable-windows-8-iso-dvd/Edit
Kernel Debugging with Qemu and WinDbg: http://
resources.infosecinstitute.com/kernel-debugging-
qemu-windbg/
Happy debugging
45

More Related Content

More from Yan Vugenfirer

Advanced NDISTest options
Advanced NDISTest optionsAdvanced NDISTest options
Advanced NDISTest options
Yan Vugenfirer
 

More from Yan Vugenfirer (7)

Rebuild presentation during Docker's Birthday party
Rebuild presentation during Docker's Birthday partyRebuild presentation during Docker's Birthday party
Rebuild presentation during Docker's Birthday party
 
Contributing to open source using Git
Contributing to open source using GitContributing to open source using Git
Contributing to open source using Git
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Microsoft Hardware Certification Kit (HCK) setup
Microsoft Hardware Certification Kit (HCK) setupMicrosoft Hardware Certification Kit (HCK) setup
Microsoft Hardware Certification Kit (HCK) setup
 
UsbDk at a Glance 
UsbDk at a Glance UsbDk at a Glance 
UsbDk at a Glance 
 
Advanced NDISTest options
Advanced NDISTest optionsAdvanced NDISTest options
Advanced NDISTest options
 
QEMU Development and Testing Automation Using MS HCK - Anton Nayshtut and Yan...
QEMU Development and Testing Automation Using MS HCK - Anton Nayshtut and Yan...QEMU Development and Testing Automation Using MS HCK - Anton Nayshtut and Yan...
QEMU Development and Testing Automation Using MS HCK - Anton Nayshtut and Yan...
 

Recently uploaded

Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
panagenda
 

Recently uploaded (20)

TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptxBT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024
 

Debugging BSODs during Windows installation

  • 1. Debugging BSODs during Windows installation Igor Derzhavets, igord@daynix.com Yan Vugenfirer, yan@daynix.com Daynix Computing LTD
  • 3. Daynix Computing LTD Motivation On a new hardware or with new features of the hypervisor Windows might crash or hang during the installation Enable live debugging Enable gathering and analysis of crash dumps
  • 4. Daynix Computing LTD Configuring debuggee Extract the content of installation media to your local directory ([PATH]) Use bcdedit.exe from target OS or later Enable serial debugging: bcdedit.exe -store [PATH]bootbcd /set "{default}" debug on Enable serial port debug transport (can be USB or Net): bcdedit.exe -store [PATH]bootbcd /dbgsettings SERIAL DEBUGPORT:1 BAUDRATE:115200
  • 5. Daynix Computing LTD Repackaging the media Install Windows Assessment and Deployment Kit (ADK) - http://www.microsoft.com/en-us/download/ details.aspx?id=30652 Create ISO image for debugged installation by oscdimg utility from ADK: oscdimg.exe –l[Disc_Label] -m -u2 –b[PATH]boot etfsboot.com [PATH] RemasterdWinInstall.iso
  • 6. Daynix Computing LTD Configuring the debugger host Start WinDbg host VM or run WinDbg on physical machine connected to debuggee) Add the following to QEMU command line: -chardev socket,id=serial0,path=/tmp/1022895- serial0,server,nowait -device isa- serial,chardev=serial0,id=serial0
  • 7. Daynix Computing LTD Install from media and debug If using QEMU, run guest with following command line addition: -chardev socket,id=serial0,path=/tmp/1022895- serial0 -device isa- serial,chardev=serial0,id=serial0
  • 8. Daynix Computing LTD Running WinDbg Run WinDbg on the debugging host Start kernel debug from "File->Kernel Debug...- >COM" menu with shown settings Use .dump command to create crash dump if needed
  • 9. Daynix Computing LTD Links Kernel debugging over serial: https:// msdn.microsoft.com/en-us/library/windows/hardware/ ff556867(v=vs.85).aspx How to create bootable Windows 8 ISO DVD using Oscdimg.exe: http://www.windowsvalley.com/create- bootable-windows-8-iso-dvd/Edit Kernel Debugging with Qemu and WinDbg: http:// resources.infosecinstitute.com/kernel-debugging- qemu-windbg/