2.0

Table Of Contents
VMware Server User’s Guide
174 VMware, Inc.
Serial Port Debugging Usage Examples
YoucanuseDebuggingToolsforWindows(WinDbg)orthecommandlineKernel
Debugger(KD)todebugkernelcodeinavirtualmachineoveravirtualserialport.You
candownloadDebuggingToolsforWindowsfromtheWindowsDDKWebsiteat
http://www.microsoft.com/whdc/devtools/debugging/default.mspx.
Thefollowingexamplesillustratehow
touseavirtualserialporttodebugkernelcode:
WiththedebuggingapplicationontheVMwareServerhost(Windowshostonly)
Withthedebuggingapplicationinanothervirtualmachineonthesame
VMware Serverhost(LinuxorWindows)
Eitherofthesemethodsenablesyoutodebugkernelcodeonasinglesystem,instead
ofrequiringtwophysicalcomputers,amodem,oraserialcable.
Debugging an Application in a Virtual Machine from the Windows or
Linux Host
Inthisexample,youhavekernelcodetodebuginavirtualmachine(calledthetarget
virtualmachine)andarerunningWinDbgorKDonyourWindowshost.
To prepare the target virtual machine
Followthestepsin“ConnectingaVirtualMachinewithanApplicationontheHost
System”onpage 170,andconfigurethevirtualmachine’svirtual
serialportasfollows:
FortheNearEnd,selectIsaserver.
SelectYieldCPUonpoll.Thekernelinthetargetvirtualmachineusesthevirtual
serialportinpolledmode,notinterruptmode.
To prepare the host
Beforeyoubegin,makesurethatyouhaveaversionofDebuggingToolsforWindows
thatsupportsdebuggingoverapipe.Youmusthaveversion4.0.18.0or
higher.
To debug an application using WinDbg or KD
1Poweronthevirtualmachine.
2Edittheserialport.
3Makesurethattheserialportisconnected.