这里有人使用Linux主机/VMWare/VirtualKD调试环境吗? [英] Does anyone here uses Linux host/VMWare/VirtualKD debug environment?

查看:66
本文介绍了这里有人使用Linux主机/VMWare/VirtualKD调试环境吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人在运行VMWare Workstation 8(带有Win7来宾)的Linux主机上成功安装 VirtualKD 的成功经验?

Does anyone had a successful experience with VirtualKD setup on Linux host running VMWare Workstation 8 (with Win7 guests)?

尽管有很多关于该VirtualKD的速度"和其他好处"的令人赞赏的评论,但其中大多数来自Windows/VirtualBox用户,我真的不想浪费我的时间来尝试获得它可以在不受支持的配置上工作.

Despite the facts there's a lot of admiring comments about 'speed' and 'other benefits' of that VirtualKD, most of them come from Windows/VirtualBox users, and I really don't want to waste my time on trying to get it working on unsupported configuration.

P.S.官方VirtualKD论坛具有类似的主题,其中两个仍未答复年,所以决定在这里征求评论.

P.S. Official VirtualKD forum has a similar thread that is still unanswered for two years, so decided to ask for reviews here.

P.P.S.我的实际问题是,VMWare的基于套接字的COM端口调试非常慢.与将相同的输出打印到DbgView相比,将调试输出从debuggee复制到调试器机器要花费10到20倍的时间.

推荐答案

是否有人在运行VMWare Workstation 8(带有Win7来宾)的Linux主机上成功安装VirtualKD?

Does anyone had a successful experience with VirtualKD setup on Linux host running VMWare Workstation 8 (with Win7 guests)?

VirtualKD是仅限Windows的应用程序.论坛上的发布者通过将Unix套接字重定向到TCP来解决仅Windows的问题,因此允许Windows客户端通过网络连接.

VirtualKD is a Windows-only application. The poster on the forum has worked around the problem of it being Windows-only by redirecting a Unix socket to TCP, therefore allowing Windows clients to connect over the network.

我已经使用 socat 使用tcp套接字成功桥接了两个VM.我在/tmp 中创建了管道,并在它们之间运行了 socat ;一个虚拟机可以调试另一个虚拟机.

I've used socat to successfully bridge two VMs using a tcp socket. I created pipes in /tmp and ran socat between them; one VM can then debug the other.

在我的情况下,因为我已将调试器配置为使用串行连接,所以我受到串行连接的速率限制.我还没有尝试过VirtualKD风格的设置.但是,我敢打赌,这行不通.从 VirtualKD对VMWare内部的解释,客户端代码基本上是使用管理程序提供的功能.VirtualBox必须由VirtualKD修补;我希望这是为VirtualBox客户端提供此类功能.

In my case, because I'd configured the debugger to use serial connections I was rate limited by the serial connections. I haven't tried the VirtualKD-style setup; however, my bet is it won't work. From the VirtualKD explanation of its internals on VMWare, the client-side code is basically using hypervisor provided functionality. VirtualBox has to be patched by VirtualKD; I expect this is to provide such functionality to VirtualBox clients.

坏消息是,这最终意味着Linux主机管理程序(主机上的VMware/VirtualBox)必须知道如何处理该信息并将其传递到适当的位置.默认情况下,它不会执行此操作.

The bad news is this means, ultimately, that the Linux host hypervisor (VMware/VirtualBox on the host) must know to process that information and pass it out to the appropriate location. By default, it won't know how to do this.

这篇关于这里有人使用Linux主机/VMWare/VirtualKD调试环境吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆