kd on Windows 7 with VMware Server 1.x

Has anyone successfully attached kd to a Windows 7 system running on VMware
Server 1.x?

I’ve enabled kernel debugging, and according to bcdedit /dbgsettings it
looks as follows:

debugtype: Serial
debugPort: 1
baudRate: 115200

As usual, I’ve created a serial port that goes to a named pipe of the form
\.\pipe\com1, and I’ve instructed WinDbg to connect to that named pipe.
This is what I’ve always done to this day, but for some reason the debugger
never breaks in when I select the Debug configuration in the Windows boot
menu.

I know VMware has issues with Windows 7 in general (like losing network
connectivity after returning from standby), but I’m wondering if anyone has
had problems with attaching a kernel debugger.

Did you:

bcdedit /set debug on?

(Better yet, does it say ‘debugger enabled’ (or whatever) in the boot menu?)

mm

Yes. And running kdbgctrl.exe -c says:
Kernel debugger is enabled.

On Mon, Oct 5, 2009 at 10:23 AM, wrote:

> Did you:
>
> bcdedit /set debug on?
>
> (Better yet, does it say ‘debugger enabled’ (or whatever) in the boot
> menu?)
>
> mm
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

What’s ctrl-alt-d show for protocol debugging spew?

  • S

From: Soren Dreijer
Sent: Monday, October 05, 2009 8:26
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] kd on Windows 7 with VMware Server 1.x

Yes. And running kdbgctrl.exe -c says:
Kernel debugger is enabled.

On Mon, Oct 5, 2009 at 10:23 AM, > wrote:
Did you:

bcdedit /set debug on?

(Better yet, does it say ‘debugger enabled’ (or whatever) in the boot menu?)

mm


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Well, the debugger never gets connected. It just sits there:

Waiting for pipe \.\pipe\com1
Waiting to reconnect…

On Mon, Oct 5, 2009 at 10:53 AM, Skywing wrote:

> What’s ctrl-alt-d show for protocol debugging spew?
>
> - S
>
> ------------------------------
> From: Soren Dreijer
> Sent: Monday, October 05, 2009 8:26
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] kd on Windows 7 with VMware Server 1.x
>
> Yes. And running kdbgctrl.exe -c says:
> Kernel debugger is enabled.
>
> On Mon, Oct 5, 2009 at 10:23 AM, wrote:
>
>> Did you:
>>
>> bcdedit /set debug on?
>>
>> (Better yet, does it say ‘debugger enabled’ (or whatever) in the boot
>> menu?)
>>
>> mm
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

You should still get debug spew with ctrl-alt-d if you try a break in or the like.

Does the target halt waiting for the debugger?

  • S

From: Soren Dreijer
Sent: Monday, October 05, 2009 9:10
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] kd on Windows 7 with VMware Server 1.x

Well, the debugger never gets connected. It just sits there:

Waiting for pipe \.\pipe\com1
Waiting to reconnect…

On Mon, Oct 5, 2009 at 10:53 AM, Skywing > wrote:
What’s ctrl-alt-d show for protocol debugging spew?

- S

________________________________
From: Soren Dreijer >
Sent: Monday, October 05, 2009 8:26
To: Windows System Software Devs Interest List >
Subject: Re: [ntdev] kd on Windows 7 with VMware Server 1.x

Yes. And running kdbgctrl.exe -c says:
Kernel debugger is enabled.

On Mon, Oct 5, 2009 at 10:23 AM, > wrote:
Did you:

bcdedit /set debug on?

(Better yet, does it say ‘debugger enabled’ (or whatever) in the boot menu?)

mm


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Hitting ctrl+alt+d when sitting on the desktop doesn’t do anything. How do I
‘try a break in’?

The target halts for like 10 seconds waiting for the debugger before
continuing.

On Mon, Oct 5, 2009 at 11:22 AM, Skywing wrote:

> You should still get debug spew with ctrl-alt-d if you try a break in or
> the like.
>
> Does the target halt waiting for the debugger?
>
> - S
>
> ------------------------------
> From: Soren Dreijer
> Sent: Monday, October 05, 2009 9:10
>
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] kd on Windows 7 with VMware Server 1.x
>
> Well, the debugger never gets connected. It just sits there:
>
> Waiting for pipe \.\pipe\com1
> Waiting to reconnect…
>
> On Mon, Oct 5, 2009 at 10:53 AM, Skywing wrote:
>
>> What’s ctrl-alt-d show for protocol debugging spew?
>>
>> - S
>>
>> ------------------------------
>> From: Soren Dreijer
>> Sent: Monday, October 05, 2009 8:26
>> To: Windows System Software Devs Interest List
>> Subject: Re: [ntdev] kd on Windows 7 with VMware Server 1.x
>>
>> Yes. And running kdbgctrl.exe -c says:
>> Kernel debugger is enabled.
>>
>> On Mon, Oct 5, 2009 at 10:23 AM, wrote:
>>
>>> Did you:
>>>
>>> bcdedit /set debug on?
>>>
>>> (Better yet, does it say ‘debugger enabled’ (or whatever) in the boot
>>> menu?)
>>>
>>> mm
>>>
>>> —
>>> NTDEV is sponsored by OSR
>>>
>>> For our schedule of WDF, WDM, debugging and other seminars visit:
>>> http://www.osr.com/seminars
>>>
>>> To unsubscribe, visit the List Server section of OSR Online at
>>> http://www.osronline.com/page.cfm?name=ListServer
>>>
>>
>> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging
>> and other seminars visit: http://www.osr.com/seminars To unsubscribe,
>> visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

I just installed Windows 7 in a local VM rather than using it through VMware
Server and the debugger breaks in just fine. I suspect the version of VMware
Server that we’re using here at work might not be compatible with Windows 7.

Thanks for the suggestions guys.

On Mon, Oct 5, 2009 at 11:49 AM, Soren Dreijer wrote:

> Hitting ctrl+alt+d when sitting on the desktop doesn’t do anything. How do
> I ‘try a break in’?
>
> The target halts for like 10 seconds waiting for the debugger before
> continuing.
>
>
> On Mon, Oct 5, 2009 at 11:22 AM, Skywing wrote:
>
>> You should still get debug spew with ctrl-alt-d if you try a break in or
>> the like.
>>
>> Does the target halt waiting for the debugger?
>>
>> - S
>>
>> ------------------------------
>> From: Soren Dreijer
>> Sent: Monday, October 05, 2009 9:10
>>
>> To: Windows System Software Devs Interest List
>> Subject: Re: [ntdev] kd on Windows 7 with VMware Server 1.x
>>
>> Well, the debugger never gets connected. It just sits there:
>>
>> Waiting for pipe \.\pipe\com1
>> Waiting to reconnect…
>>
>> On Mon, Oct 5, 2009 at 10:53 AM, Skywing wrote:
>>
>>> What’s ctrl-alt-d show for protocol debugging spew?
>>>
>>> - S
>>>
>>> ------------------------------
>>> From: Soren Dreijer
>>> Sent: Monday, October 05, 2009 8:26
>>> To: Windows System Software Devs Interest List
>>> Subject: Re: [ntdev] kd on Windows 7 with VMware Server 1.x
>>>
>>> Yes. And running kdbgctrl.exe -c says:
>>> Kernel debugger is enabled.
>>>
>>> On Mon, Oct 5, 2009 at 10:23 AM, wrote:
>>>
>>>> Did you:
>>>>
>>>> bcdedit /set debug on?
>>>>
>>>> (Better yet, does it say ‘debugger enabled’ (or whatever) in the boot
>>>> menu?)
>>>>
>>>> mm
>>>>
>>>> —
>>>> NTDEV is sponsored by OSR
>>>>
>>>> For our schedule of WDF, WDM, debugging and other seminars visit:
>>>> http://www.osr.com/seminars
>>>>
>>>> To unsubscribe, visit the List Server section of OSR Online at
>>>> http://www.osronline.com/page.cfm?name=ListServer
>>>>
>>>
>>> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging
>>> and other seminars visit: http://www.osr.com/seminars To unsubscribe,
>>> visit the List Server section of OSR Online at
>>> http://www.osronline.com/page.cfm?name=ListServer
>>>
>>> —
>>> NTDEV is sponsored by OSR
>>>
>>> For our schedule of WDF, WDM, debugging and other seminars visit:
>>> http://www.osr.com/seminars
>>>
>>> To unsubscribe, visit the List Server section of OSR Online at
>>> http://www.osronline.com/page.cfm?name=ListServer
>>>
>>
>> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
>> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
>> the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>
>

That would your problem - until you break in, nothing happens.

Either:

a.) press ctrl-break
b.) select ‘break in’ from the ‘debug menu’

Good luck,

mm

Try Hyper-V or the free MS Virtual PC instead of VMWare.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

I probably explained it inaccurately. I wasn’t talking about the debugger
not breaking in automatically – what I meant was that it never attached to
the OS in the first place, which means there’s nothing to break into.

On Mon, Oct 5, 2009 at 11:51 AM, wrote:

> That would your problem - until you break in, nothing happens.
>
> Either:
>
> a.) press ctrl-break
> b.) select ‘break in’ from the ‘debug menu’
>
>
> Good luck,
>
> mm
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

I do this daily with VMWare Server 2.0 and Workstation 6.5x.

As for VMWare Server 1.x, well, I don?t use it.

Good Luck,

Dave Cattley

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Soren Dreijer
Sent: Monday, October 05, 2009 11:17 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] kd on Windows 7 with VMware Server 1.x

Has anyone successfully attached kd to a Windows 7 system running on VMware
Server 1.x?

I’ve enabled kernel debugging, and according to bcdedit /dbgsettings it
looks as follows:

debugtype: Serial
debugPort: 1
baudRate: 115200

As usual, I’ve created a serial port that goes to a named pipe of the form
\.\pipe\com1, and I’ve instructed WinDbg to connect to that named pipe.
This is what I’ve always done to this day, but for some reason the debugger
never breaks in when I select the Debug configuration in the Windows boot
menu.

I know VMware has issues with Windows 7 in general (like losing network
connectivity after returning from standby), but I’m wondering if anyone has
had problems with attaching a kernel debugger.
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Right. Sounds like it was an issue with 1.x.

On Mon, Oct 5, 2009 at 1:50 PM, David R. Cattley wrote:

> I do this daily with VMWare Server 2.0 and Workstation 6.5x.
>
>
>
> As for VMWare Server 1.x, well, I don?t use it.
>
>
>
> Good Luck,
>
> Dave Cattley
>
>
>
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] *On Behalf Of *Soren Dreijer
> Sent: Monday, October 05, 2009 11:17 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] kd on Windows 7 with VMware Server 1.x
>
>
>
> Has anyone successfully attached kd to a Windows 7 system running on VMware
> Server 1.x?
>
> I’ve enabled kernel debugging, and according to bcdedit /dbgsettings it
> looks as follows:
>
> debugtype: Serial
> debugPort: 1
> baudRate: 115200
>
> As usual, I’ve created a serial port that goes to a named pipe of the form
> \.\pipe\com1, and I’ve instructed WinDbg to connect to that named pipe.
> This is what I’ve always done to this day, but for some reason the debugger
> never breaks in when I select the Debug configuration in the Windows boot
> menu.
>
> I know VMware has issues with Windows 7 in general (like losing network
> connectivity after returning from standby), but I’m wondering if anyone has
> had problems with attaching a kernel debugger.
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

To begin from, Vmware Server v.1 does not support Win7 guests.
The first version to officially support Win7 is Workstation & Player 7.0
Release candidate (published couple of days ago).

Regards,
–pa

“Soren Dreijer” wrote in message news:xxxxx@ntdev…
> Has anyone successfully attached kd to a Windows 7 system running on
> VMware
> Server 1.x?
>
> I’ve enabled kernel debugging, and according to bcdedit /dbgsettings it
> looks as follows:
>
> debugtype: Serial
> debugPort: 1
> baudRate: 115200
>
> As usual, I’ve created a serial port that goes to a named pipe of the form
> \.\pipe\com1, and I’ve instructed WinDbg to connect to that named pipe.
> This is what I’ve always done to this day, but for some reason the
> debugger
> never breaks in when I select the Debug configuration in the Windows boot
> menu.
>
> I know VMware has issues with Windows 7 in general (like losing network
> connectivity after returning from standby), but I’m wondering if anyone
> has
> had problems with attaching a kernel debugger.
>