远程访问 VirtualBox:无法通过远程桌面连接

发布于 2024-12-08 03:08:20 字数 737 浏览 1 评论 0原文

我有一个主机(Windows 7)和一个 VirtualBox(客户操作系统是 Ubuntu),它使用 NAT 适配器。
我的主机也在本地网络(DHCP)中。

我已经设置了与 VB 的 ssh 连接,并且我还可以从来宾操作系统访问 Internet。

现在我想与在 Tomcat 6 上运行的 Hudson 建立远程连接,而 Tomcat 6 在 Ubuntu 上运行。
我已经尝试过:

  1. VB ->设置->显示->远程显示 -> 选中启用 3389 端口上的服务器。
  2. 在我同事的计算机(Windows 7)上打开 Start ->;程序->配件->远程桌面连接
    这样我就可以使用 NAT 适配器,我的主机和来宾具有相同的 IP。
    我尝试连接到 myIpAddress:3389,但它无法执行此操作(不能使用全局 ID,也不能使用本地 ID)[但是它设法使用本地 ip 连接到主机] 。

嗯,另一种变体是使用 Bridge 适配器。
但是当我尝试启动虚拟机时出现错误:

Unknown configuration node 
"//ssh" found in the configuration of IntNet instance #0 (VER_CGGM_CONFIG_UNKNOWN_NODE)

有人遇到这个问题吗?

I have a host (Windows 7) and a VirtualBox on it (guest OS is Ubuntu), that uses the NAT adapter.
Also my host is in the local network (DHCP).

I have already set the ssh connection to the VB and also I have an Internet access from the guest OS.

Now I want to establish a remote connection to the Hudson which is running on Tomcat 6 which, in turn, is running on Ubuntu.
I have tried this:

  1. VB -> Settings -> Display -> Remote Display -> checked enable server on 3389 port.
  2. On my collegue's computer (Windows 7) opened Start -> Program -> Accessories -> Remote Desktop Connection.
    So that I use the NAT adapter my host and guest have the same ip.
    I have tried to connect to myIpAddress:3389, but it can't do this (not with the global id, nor with the local) [However It managed to connect to the host with the local ip].

Well, the other variant was to use the Bridge adapter.
But When I try to start the VM there is an error:

Unknown configuration node 
"//ssh" found in the configuration of IntNet instance #0 (VER_CGGM_CONFIG_UNKNOWN_NODE)

Did anybody face this problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

醉城メ夜风 2024-12-15 03:08:20

我的猜测是远程显示端口与您的主机Win7远程桌面服务或Windows防火墙冲突。我建议仔细检查防火墙设置并将 VirtualBox 中的远程显示端口切换为 3390 之类的端口(或其他一些未使用的端口)。我认为将 Windows 主机的远程显示端口更改为 3389 以外的端口是“最佳实践”。

至于桥接适配器的错误,看起来您仍然有一个来自 NAT 配置的端口转发,但无法消失。将适配器配置切换回 NAT 并清除所有存在的设置 - 尝试添加新规则,然后保存,如果没有显示则将其删除,以确保更新 XML 配置文件。

My guess is the the remote display port is conflicting with your host Win7 remote desktop service or the windows firewall. I would suggest double checking the firewall settings and switching the remote display port in VirtualBox to something like 3390 (or some other unused port). I would consider it a "best practice" to change the Remote Display port to something other than 3389 with a Windows host.

As for the error with the bridged adapter, It would appear that you still have a port forward from the NAT configuration sticking around that is having trouble going away. Switch the adapter configuration back to NAT and clear out any settings that are present - trying adding a new rule, then saving and then removing it if none are showed to ensure the XML config file is updated.

冰魂雪魄 2024-12-15 03:08:20

在 Windows 防火墙中以无头模式运行时,端口 5000-5010 自动打开,请尝试将端口设置为其中之一,而不是尝试使用您的 IP 地址:Portyouchoosen

when running in Headless mode in windows firewall ports 5000-5010 are opened automatically try setting your port to one of these than try yourIPaddress:Portyouchoosen

望笑 2024-12-15 03:08:20

对于 Linux:

# ssh -X user@yourserver

# VirtualBox

它将从远程服务器打开 VirtualBox GUI。
与远程桌面一样快。

For linux:

# ssh -X user@yourserver

# VirtualBox

It will open an VirtualBox GUI from remmote server.
Just as fast as remote desktop.

亢潮 2024-12-15 03:08:20

你可以试试这个:

ssh user@ip -p portnumber

You can try this:

ssh user@ip -p portnumber
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文