Problems using COM1 as a pipe to WinDbg

Discussions related to using VirtualBox on Windows hosts.
Post Reply
JeanLu
Posts: 4
Joined: 19. Oct 2009, 17:57
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: XP, Debian

Problems using COM1 as a pipe to WinDbg

Post by JeanLu »

Hi,

I have an issue trying using a Virtual machine XP on an XP host. My goal is to perform kernel debugging using COM1 as a pipe to WinDbg.
It works... for some seconds; I can see several traces my driver generates and then the VM is blocked (no reaction with the mouse inside the OS under debug, Virtual Box GUI is OK) and Windbg has no control on the machine (it did not step into some breakpoint for instance).

Anyone experienced this? What can I do to investigate?

I used COM1 as a pipe for a very simple program and it did work. May be Windbg configuration has to be improved? I'm starting Windbg like this:
"C:\Program Files\Debugging Tools for Windows (x86)\windbg.exe" -b -k com:pipe,port=\\.\pipe\VirtualDbg,resets=0,reconnect

Thanks,
Jean
JeanLu
Posts: 4
Joined: 19. Oct 2009, 17:57
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: XP, Debian

Re: Problems using COM1 as a pipe to WinDbg

Post by JeanLu »

Hi again,

just to add that I use the lastest VirtualBox 3.0.8.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Problems using COM1 as a pipe to WinDbg

Post by Perryg »

Take a look at chapter 3.7.8. Serial ports of the VBox users guide. In particular the section 2. where it discusses a helper application. Maybe this will help.
JeanLu
Posts: 4
Joined: 19. Oct 2009, 17:57
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: XP, Debian

Re: Problems using COM1 as a pipe to WinDbg

Post by JeanLu »

Hi,

thanks for the response. I found VirtualKD, a tool that solves (greatly!) my issue:
http://virtualkd.sysprogs.org/

Thanks,
Jean
Post Reply