Here is a really quick howto if you want to kernel debug a virtual pc image on your machine.
- on virtual pc modify the boot.ini file. Add the following:
/DEBUG /DEBUGPORT=COM the number of the COM port that you want to use for debugging /BAUDRATE=115200
Boot.ini then will look like this:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows Server 2003, Enterprise" /fastdetect
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows Server 2003, Enterprise" /fastdetect/DEBUG /DEBUGPORT=COM2/BAUDRATE=115200
- Configure the serial port for virtual PC
Virtual PC 2004
- Start Virtual PC 2004.
Click the virtual machine that you want to configure, and then click Settings.
- In the Setting list, click the serial port that you want to configure, click Physical serial port, and then click to clear the Wait for modem command to open port check box if it is selected.
- Click Named pipe, and then type \\.\pipe\ name that you want to assign to the named pipe in the Named pipe box. For example, type \\.\pipe\com2 .
- Click OK.
Virtual Server 2005
- Start the Virtual Server Administration Website program. To do this, click Start, point to All Programs, point to Microsoft Virtual Server, and then click Virtual Server Administration Website.
- Under Virtual Machines, point to Configure, and then click the virtual machine that you want to modify.
- Click the COM ports link.
- Under the serial port that you want to configure for debugging, click Physical computer serial port, and then click to clear the Wait for modem command to open port check box.
- Click Named pipe, and then type \\.\pipe\ name that you want to assign to the named pipe in the Named pipe box. For example, type \\.\pipe\com2 .
- Click OK.
- start windbg
Windbg -k com:port=\\.\pipe\ pipe name ,pipe,resets=0,reconnect
Source:
How to debug the Virtual Server service on a computer that is running Virtual Server 2005 or Virtual PC 2004, part 1 of 2