通过 IP 连接到 VirtualBox 上的 QNX [英] Connect to QNX on VirtualBox via IP

查看:50
本文介绍了通过 IP 连接到 VirtualBox 上的 QNX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过 8000 端口上的 IP 从在 Windows 7(同一台计算机)上运行的 Momentics IDE 连接到在 VirtualBox 上运行的 QNX Neutrino OS (qconn).我试图获取这个虚拟机的IP地址,它似乎和我的真机一样,在它上面不起作用.预先感谢您的帮助.

I would like to connect to QNX Neutrino OS (qconn) running on the VirtualBox from the Momentics IDE running on the Windows 7 (the same computer) via IP on 8000 port. I tried to get IP address of this virtual machine, and it seems to be the same as my real machine's and it doesn't work on it. Thank you in advance for your help.

推荐答案

所以,澄清一下:

  • 您使用 Windows 7 作为主机操作系统
  • QNX Neutrino RTOS 在虚拟机中运行
  • 在 Windows 主机上使用 Momentics,您想在 IDE 中连接到 QNX 目标
  • 假设您的 Windows 7 机器的 IP 地址是 192.168.1.101(通过开始 ==> 运行... ==> cmd ==> ipconfig 获得)

首先,将 QNX OS 虚拟机的网络类型设置为 NAT(网络地址转换).然后,您需要设置端口转发(请参阅此 URL:http://www.rustyrazorblade.com/2010/12/virtualbox-4-nat-port-forwarding-gui/).

First, have the network type for your QNX OS VM set to NAT (Network Address Translation). Then, you need to setup port forwarding (please see this URL: http://www.rustyrazorblade.com/2010/12/virtualbox-4-nat-port-forwarding-gui/).

完成后,您应该能够通过在 Momentics 中指定以下 QCONN 目标,从 Windows 7 中的 Momentics IDE 连接到 QNX VM:

Once you've finished, you should be able to connect from the Momentics IDE in Windows 7 to the QNX VM by specifying the following QCONN target in Momentics:

目标:127.0.0.1:8000主机名:QNX_NTO

Target: 127.0.0.1:8000 HOSTNAME: QNX_NTO

您设置的转发将导致端口 8000 上到 127.0.0.1:8000(Windows 主机环回连接)的所有连接自动重定向到您的 QNX 虚拟机.

The forwarding you setup will cause all connections to 127.0.0.1:8000 (the Windows host loopback connection) on port 8000 to be automatically redirected to your QNX VM.

我自己做了这个并且它奏效了.希望这对您有所帮助.

I've done this myself and it worked. Hope this helps for you.

干杯!

这篇关于通过 IP 连接到 VirtualBox 上的 QNX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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