Tuesday, November 08, 2005

Kernel debugging on one machine using Virtual PC 2004 SP1 & Windows XP

You no longer need to buy another machine or a copy of SoftIce to do full kernel debugging using two machines. This is a good setup for learning & hobby projects.

Setup target VM
  1. Go to My Computer -> Properties -> Advanced -> Settings (Startup and Recovery) -> Edit
  2. Add '/DEBUG /DEBUGPORT=COM1' to the end of the settings in the boot file.

Setup host machine.

  1. Edit settings for VM, configure COM1 to use a named pipe. Eg. "bkslash-bkslash-dot-\pipe\debug"
  2. Start KD by running "kd -y SRV*c:\websymbols*http://msdl.microsoft.com/download/symbols -k com:pipe,port=\\.\pipe\debug,resets=0,reconnect" or equivalent command.
  3. Restart target VM, you should see a message in KD saying "Connected to Windows XP..."

Reference: http://blogs.msdn.com/virtual_pc_guy/archive/2005/10/20/482413.aspx

2 comments:

Anonymous said...

New Flickr Galleries
A Badge Collection For My Blog: next Today, I reactivated the photo galleries /AD page .
Find out how to buy and sell anything, like things related to quality assurance highway construction on interest free credit and pay back whenever you want! Exchange FREE ads on any topic, like quality assurance highway construction!

Anonymous said...

The commad has "resets=o" . It should be 0.