WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] How to use windbg to debug XEN windows XP domainU under Suse

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] How to use windbg to debug XEN windows XP domainU under Suse 10sp2?
From: mengjian <mengjian@xxxxxxxxxx>
Date: Thu, 06 Aug 2009 20:46:54 +0800
Delivery-date: Thu, 06 Aug 2009 05:48:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcoWk/ojYKN1nGLnRLCSMLXocliAtQ==

I found this article on http://wiki.xensource.com/xenwiki/XenWindowsGplPv, but windbg display com8 reconnect forever.

AND RxBytes always 0.

Thank you

 

Using the windows debugger under Xen

Set up Dom0

1.      Change/add the serial line to your Windows DomU config to say serial='pty'

2.      Add a line to /etc/services that says 'windbg_domU 4440/tcp'. Change the domU bit to the name of your windows domain.

3.      Add a line to /etc/inetd.conf that says 'windbg_domU stream tcp nowait root /usr/sbin/tcpd xm console domU'. Change the domU bit to the name of your domain. (if you don't have an inetd.conf then you'll have to figure it out yourself... basically we just need a connection to port 4440 to connect to the console on your DomU)

4.      Restart inetd.

Set up the machine you will be debugging on - another Windows machine that can connect to your Dom0 from.

1.      Download the windows debugger from Microsoft and install.

2.      Download the 'HW Virtual Serial Port' application from HW Group and install. Version 3 appears to be out, but i've only ever used 2.5.8.

Boot your DomU

1.      xm create DomU (or whatever you normally use to start your DomU)

2.      Press F8 when you get to the windows text boot menu and select debugging mode, then boot. The system should appear to hang before the splash screen starts

Start HWVSP

1.      Start the HW Virtual Serial Port application

2.      Put the IP address or hostname of your Dom0 in under 'IP Address'

3.      Put 4440 as the Port

4.      Select an unused COM port under 'Port Name' (I just use Com8)

5.      Make sure 'NVT Enable' in the settings tab is unticked

6.      Save your settings

7.      Click 'Create COM'. If all goes well it shuold say 'Virtual serial port COM8 created' and 'Connected device <hostname>'

Run the debugger

1.      Start windbg on your other windows machine

2.      Select 'Kernel Debug' from the 'File' menu

3.      Select the COM tab, put 115200 in as the baud rate, and com8 as the port. Leave 'Pipe' and 'Reconnect' unticked

4.      Click OK

5.      If all goes well, you should see some activity, and the HWVSP counters should be increasing. If nothing happens, or if the counters start moving and then stop, quit windbg, delete the com port, and start again from 'Start HWVSP'. Not sure why but it doesn't always work the first time.

 

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] How to use windbg to debug XEN windows XP domainU under Suse 10sp2?, mengjian <=