Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging

The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.

Check out The OSR Learning Library at:

Hypervisor debugging problem

vls1729vls1729 Member Posts: 1


I am attempting to setup a hypervisor debugging lab and having an issue with setting up the debugging connection.

My setup includes my host machine running windows 11 and a guest machine running windows 10/server 2019.
The debugger I am using is Windbg.

I have attempted to configure the setup with both VMware workstation and Hyper-V using the following:

  1. For COM serial connection:

    bcdedit /hypervisorsettings serial DEBUGPORT:1 BAUDRATE:115200
    bcdedit /set hypervisordebug on

    bcdedit /set dbgtransport kdhvcom.dll

    bcdedit /dbgsettings serial DEBUGPORT:1 BAUDRATE:115200
    bcdedit /debug on

  2. For network debugging:

    bcdedit /set hypervisordebug on
    bcdedit /hypervisorsettings NET HOSTIP: PORT:50000

    Bcdedit /debug yes
    Bcdedit /dbgsettings net hostip: port:50002

In both cases, kernel debugging works but the debugging session with the hypervisor does not work. There is no error or response.
Windbg simply waits for connection:

Microsoft (R) Windows Debugger Version 10.0.25877.1004 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.

Using NET for debugging
Opened WinSock 2.0
Using IPv4 only.
Waiting to reconnect...

I have disabled the firewalls but don't assume it to be the cause since the kernel debugging does goes through.
Secure boot is turned off at least in the VM/Hyper-V settings.

I will be grateful if someone who came across a similar issue can point me in the right direction or point me to some troubleshooting direction

Thanks a lot

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 13-17 May 2024 Live, Online
Developing Minifilters 1-5 Apr 2024 Live, Online
Internals & Software Drivers 11-15 Mar 2024 Live, Online
Writing WDF Drivers 20-24 May 2024 Live, Online