从主机远程登录VirtualBox上的Solaris 11

时间:2014-11-21 09:48:58

标签: unix virtualbox solaris telnet

我想做什么?

是从主机和其他使用相同网络的人员telnet到安装在VirtualBox上的Solaris 11服务器。

问题?

我无法通过putty或tera术语连接到虚拟solaris 11 telnet。

它会让我连接超时。

**** Tera term connection setup ****
Host : 10.0.2.15
Port : 23
Service : Telnet
SSH version : SSH2
Protocol : UNSPEC


**** Putty connection setup ****
Host : 10.0.2.15
Port : 23
Connection type: Telnet

Related Information

我在Windows 8.1 pro O / S的VM VirtualBox(4.3.18)上设置了Solaris 11,我通过终端设置了telnet,

sudo pkg install /service/network/telnet
.
.
( after the installation was completed )
svcadm enable telnet

这使得telnet配置正确,我可以看到这个状态消息......

svcs - a | grep telnet
online        3:09:16     svc:/network/telnet:default

似乎没问题,23号端口处于活动状态并正在侦听。这是港口的状态。

root@solaris:~$ netstat -an | grep LISTEN
127.0.0.1.5999             *.*                  0      0  128000      0 LISTEN
127.0.0.1.4999             *.*                  0      0  128000      0 LISTEN
      *.111                *.*                  0      0  128000      0 LISTEN
      *.111                *.*                  0      0  128000      0 LISTEN
      *.23                 *.*                  0      0  128000      0 LISTEN
      *.22                 *.*                  0      0  128000      0 LISTEN
127.0.0.1.631              *.*                  0      0  128000      0 LISTEN
127.0.0.1.62126            *.*                  0      0  128000      0 LISTEN
127.0.0.1.25               *.*                  0      0  128000      0 LISTEN
127.0.0.1.587              *.*                  0      0  128000      0 LISTEN
127.0.0.1.36514            *.*                  0      0  128000      0 LISTEN
      *.34657              *.*                  0      0  128000      0 LISTEN
127.0.0.1.62132            *.*                  0      0  128000      0 LISTEN
127.0.0.1.45497            *.*                  0      0  128000      0 LISTEN
127.0.0.1.35337            *.*                  0      0  128000      0 LISTEN
127.0.0.1.51040            *.*                  0      0  128000      0 LISTEN
127.0.0.1.47604            *.*                  0      0  128000      0 LISTEN
127.0.0.1.50925            *.*                  0      0  128000      0 LISTEN
127.0.0.1.38960            *.*                  0      0  128000      0 LISTEN
127.0.0.1.41803            *.*                  0      0  128000      0 LISTEN
127.0.0.1.38624            *.*                  0      0  128000      0 LISTEN
127.0.0.1.37266            *.*                  0      0  128000      0 LISTEN
127.0.0.1.47491            *.*                  0      0  128000      0 LISTEN
127.0.0.1.59097            *.*                  0      0  128000      0 LISTEN
127.0.0.1.46758            *.*                  0      0  128000      0 LISTEN
127.0.0.1.35703            *.*                  0      0  128000      0 LISTEN
127.0.0.1.57959            *.*                  0      0  128000      0 LISTEN
127.0.0.1.58703            *.*                  0      0  128000      0 LISTEN
127.0.0.1.54041            *.*                  0      0  128000      0 LISTEN
::1.5999                                *.*                               0      0  128000      0 LISTEN      
      *.111                             *.*                               0      0  128000      0 LISTEN      
      *.23                              *.*                               0      0  128000      0 LISTEN      
      *.22                              *.*                               0      0  128000      0 LISTEN      
::1.631                                 *.*                               0      0  128000      0 LISTEN      
::1.25                                  *.*                               0      0  128000      0 LISTEN      
      *.54242                           *.*                               0      0  128000      0 LISTEN  

VirtualBox上的Solaris 11的网络信息是......

DHCP Address : 10.0.2.15
Subnet Mask : 255.255.255.0
Default Route : [            ] ( blank )

root@solaris:~$ netstat -rn

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface 
-------------------- -------------------- ----- ----- ---------- --------- 
default              10.0.2.2             UG        3       5147 net0      
10.0.2.0             10.0.2.15            U         3          0 net0      
127.0.0.1            127.0.0.1            UH        2        956 lo0       

Routing Table: IPv6
  Destination/Mask            Gateway                   Flags Ref   Use    If   
--------------------------- --------------------------- ----- --- ------- ----- 
::1                         ::1                         UH      2       0 lo0   
fe80::/10                   fe80::a00:27ff:fe09:faf3    U       2       0 net0  

网络似乎很好,我可以通过预先安装的FireFox浏览互联网。

VirtualBox网络配置如下所示

connected to NAT
Adopter type : Intel PRO/1000 MT Desktop (82540EM)
random mode : false
MAC address : 08002709FAF3
Port Forwarding setting : none.

我的主机网络状态是......

DHCP enable: true
IPv4 Address: 192.168.1.85
IPv4 Subnet Mask: 255.255.255.0
IPv4 Default Gateway: 192.168.1.1
IPv4 DHCP Server: 192.168.1.1
IPv4 DNS Server: 168.126.63.1, 168.126.63.2

我应该向您提供有关telnet配置的更多信息吗?

似乎是什么问题?我怎样才能解决这个问题?

1 个答案:

答案 0 :(得分:0)

除非您配置反向转发端口,否则在使用NAT时无法访问VM服务。

最简单的解决方法是将虚拟网卡从NAT切换到网桥模式,在这种情况下,您的虚拟机将从您的局域网中可见。