红联Linux门户
Linux帮助

[VirtualBox]Linux host访问guest服务

发布时间:2015-02-18 10:20:06来源:linux网站作者:sagittar

VirtualBox的guest一般默认为使用NAT,这样host就不能ping guest或者是访问guest的服务。一种解决办法是把guest的网络设置从NAT改成Bridged Adapter。另一种方法则是为guest新加一个Host-only Adapter,如下图:
[VirtualBox]Linux host访问guest服务

以上图片上传到红联Linux系统教程频道中。

设置好,启动guest,为guest新加的Apapter设置ip,例如192.168.56.2,因为host端的ip一般会被自动设为192.168.56.1。