To set up a virtual machine so it can be debugged with Microsoft WinDbg:
In the vSphere Client, right-click the virtual machine and click Edit Settings.
Select the serial port and enter com_1 in the pipe.
Add this line to the virtual machine's boot.ini file to include an option to load the debugger at boot time:
/debug /debugport=com_1 /baudrate=11520
For example:
[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="Microsoft Windows XP Professional" /fastdetect multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional - Debug" /fastdetect /debugport=com_1 /baudrate=115200
Note: For Windows Vista, Windows 2008, Windows 7 and later, you need to edit the boot loader with the bcdedit tool.
Reboot the virtual machine and select the new boot.ini option.
On the windows host machine, start the Microsoft WinDbg with the command:
Note: The preceding link was validated as of May 9, 2011. If you find the link to be broken, provide feedback on the article and a VMware employee will update the article as necessary.
For information how to set up a virtual serial port for debugging purposes, see Add a Serial Port to a Virtual Machine in the Virtual Machine Administration Guide.