| To: | xen-devel@xxxxxxxxxxxxxxxxxxx |
|---|---|
| Subject: | [Xen-devel] How to use windbg to debug XEN windows XP domainU under Suse 10sp2? |
| From: | mengjian <mengjian@xxxxxxxxxx> |
| Date: | 2009年8月10日 11:02:47 +0800 |
| Delivery-date: | 2009年8月09日 20:06:43 -0700 |
| Envelope-to: | www-data@xxxxxxxxxxxxxxxxxxx |
| List-help: | <mailto:xen-devel-request@lists.xensource.com?subject=help> |
| List-id: | Xen developer discussion <xen-devel.lists.xensource.com> |
| List-post: | <mailto:xen-devel@lists.xensource.com> |
| List-subscribe: | <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
| List-unsubscribe: | <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
| Sender: | xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
| Thread-index: | AcoWk/ojYKN1nGLnRLCSMLXocliAtQC0eEdw |
I found this article on http://wiki.xensource.com/xenwiki/XenWindowsGplPv , but windbg display com8 reconnect forever.
AND RxBytes always 0,and when my windbg connect traget, then connection established, but Xmangager ‘s remote window disconnect.
This is my xinetd config. The last line is my config ?windbg_ghost.
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
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 Dom
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
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-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [Xen-devel] How can I add new custom hyper-calls to a specific DomU ? , kazushi takahashi |
|---|---|
| Next by Date: | RE: [Xen-devel] [pvops-dom0] Adding MCA logging support in pv_ops , Ke, Liping |
| Previous by Thread: | [Xen-devel] How can I add new custom hyper-calls to a specific DomU ? , kazushi takahashi |
| Next by Thread: | [Xen-devel] Problem with migrating/saving 2.6.30 vanilla kernel with multiple VCPUs , Denis Chapligin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |