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

Comments

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

Popular posts from this blog

Google Appengine

Blackberry Playbook

What is up with RIM?