Windows 更新后,VirtualBox 无法从主机连接到客户机

Windows 更新后,VirtualBox 无法从主机连接到客户机

我无法从主机连接到客户机。在我的 PC 获得 Creators Update 之前,一切都运行正常。

我的设置:

  • VirtualBox 5.1.22
  • 托管 Windows 10
  • 访客 Centos 7

主机上配置了 Host-Only 网络

Ethernet adapter VirtualBox Host-Only Network #2:

Connection-specific DNS Suffix  . :
Link-local IPv6 Address . . . . . : fe80::183b:f81b:7b2e:5e61%18
IPv4 Address. . . . . . . . . . . : 192.168.56.101
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

客人:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:a0:03:e2 brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.4/24 brd 10.0.2.255 scope global dynamic enp0s3
       valid_lft 1122sec preferred_lft 1122sec
    inet6 fe80::bad8:ceda:69cd:e25e/64 scope link 
       valid_lft forever preferred_lft forever
3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:8f:67:3b brd ff:ff:ff:ff:ff:ff
    inet 192.168.56.101/24 brd 192.168.56.255 scope global dynamic enp0s8
       valid_lft 731sec preferred_lft 731sec
    inet6 fe80::55b5:dc8b:786b:bcd3/64 scope link 
       valid_lft forever preferred_lft forever

我可以 ping 客户机,但是当我尝试访问 Web 服务器或 ssh 时出现“连接被拒绝”错误。

ssh [email protected]
ssh: connect to host 192.168.56.101 port 22: Connection refused

防火墙已禁用。

有任何想法吗?

相关内容