2.0

Table Of Contents
VMware, Inc. 175
Chapter 8 Configuring Virtual Machine Hardware
4Confirmthepathandfilenameforthepipe.Dependingonthehostsystem,enter
oneofthefollowing:
OnWindowshosts:Thepipenamemustbeintheformat
\\.\pipe\<namedpipe>.Thenamemustbeginwith\\.\pipe\.
OnLinuxhosts:Thepipenamemustbe/tmp/<socket>oranotherUNIX
socketnameofyourchoice.
5Atthecommandpromptonthehostsystem,dooneofthefollowing:
IfyouareusingWinDbg,enterthefollowing:
windbg -k com:port=\\.\pipe\<namedpipe>,pipe
IfyouareusingKD,enterthefollowing:
kd -k com:port=\\.\pipe\<namedpipe>,pipe
6PressEntertostartdebugging.
Debugging an Application in a Virtual Machine from Another Virtual
Machine
Inthisexample,youhavekernelcodetodebuginavirtualmachine(thetargetvirtual
machine)andarerunningDebuggingToolsforWindows(WinDbg)orKernelDebugger
(KD)inanothervirtualmachine(thedebuggervirtualmachine)onthesamehost.
Thissetupisusefulifyouarerunning
VMwareServeronaLinuxhost.Thedebugger
virtualmachinemustberunningDebuggingToolsforWindows(WinDbg)orKernel
Debugger(KD)inaWindowsguestoperatingsystem.
To prepare the target virtual machine
1Followthestepsfortheservervirtualmachinein“ConnectingTwoVirtual
Machines”onpage 172.
2Whenyouconfigurethetarget
virtualmachine’svirtualserialport,youmustselect
YieldCPUonpoll.Thekernelinthetargetvirtualmachineusesthevirtualserial
portinpolledmode,notinterruptmode.
To prepare the debugger virtual machine
1MakesurethatyouhavedownloadedDebuggingToolsforWindows.
2Followthestepsfortheclientvirtualmachinein“Connecting
TwoVirtual
Machines”onpage 172.