两个 win2k 虚拟机之间的通信
我对虚拟机的研究不多,我需要一些帮助来解决虚拟机问题。这是我的设置。
- 我有两个 Linux 系统,每个系统上都安装了 Virtual Box VB1 和 VB2。
- 在每个虚拟框中创建两个来宾 Windows 2000 虚拟机。
- 配置以太网适配器以使用桥接适配器进行网络连接。
我正在 VB1 上的 win2k 来宾之一上运行 corba 服务器,并在 VB2 上的 win2k 来宾之一上运行客户端。在运行客户端时,我收到连接被拒绝异常
。仅当我在两个不同的虚拟机上运行服务器和客户端时才会发生这种情况。
I have not worked much on virtual machines and I need some help in resolving the virtual machine problem. Here is my set up.
- I have two linux systems with Virtual Box VB1 and VB2 installed on each one.
- Created two guest windows 2000 virtual machines in each of the virtual box.
- Configured the ethernet adapter to use Bridge adapter for network connections.
I am running to run a corba server on one of the win2k guest on VB1 and running a client on one of the win2k guest on VB2. On running the client I get connection refused exception
. This happens only when I run the server and client on two different virtual boxes.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
“连接被拒绝”仅仅意味着客户端无法打开到服务器计算机的 TCP/IP 连接。这可能是由于以下任一原因造成的:
这是一个网络问题,因此要诊断它,您应该尝试增加客户端上的日志记录以确保确保它连接到正确的主机/端口。如果这没有帮助,请增加服务器上的日志记录以确保它正在侦听正确的端口。
另外,如果您的 CORBA 应用程序使用不安全的 IIOP,那么您可以随时在客户端上打开 ethereal 嗅探来查看它连接到的地方。
"Connection refused" simply means that the client cannot open a TCP/IP connection to the server computer. That could be due to any of the following reasons:
This is a networking issue, so to diagnose it you should try and increase the logging on your client to make sure it's connecting to the right host/port. If that doesn't help, increase the logging on the server to make sure it's listening on the correct port.
Also, if your CORBA application is using insecure IIOP then you could always turn on ethereal sniffing on your client box to see where it's connecting to.
好吧,我自己解决了这个问题。问题在于配置虚拟机。我必须在每个虚拟机中使用“桥接网络适配器”作为NIC卡,之前我使用NAT..所以这解决了问题。
Ok, I myself resolved the issue. The issue was with configuring the virtual machines. I had to use "Bridge Network Adapter" as a NIC card in each of the vm, earlier I was using NAT.. so this solved the problem.