0
我有兩個虛擬機運行CentOS 6.7 VMWare Fusion,我試圖部署廚師(服務器&工作站)。 ping和ssh之間的兩個虛擬機工作正常,但是當我去knife client list
它說,它無法找到主機的路線。捲曲和遠程登錄也不起作用。一些信息:在OS X Yosemite上運行的VMWare Fusion,禁用了防火牆,兩臺虛擬機上的網絡設置都是「與我的Mac共享」。 nestat -puntal | grep nginx
服務器上得到:虛擬機之間的SSH和ping工作,telnet和捲曲不
tcp 0 0 0.0.0.0:9680 0.0.0.0:* LISTEN 1091/nginx
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1091/nginx
tcp 0 0 0.0.0.0:9683 0.0.0.0:* LISTEN 1091/nginx
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 1091/nginx
ifconfig
:
eth0 Link encap:Ethernet HWaddr 00:0C:29:5A:9E:EE
inet addr:172.16.20.131 Bcast:172.16.20.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe5a:9eee/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:231 errors:0 dropped:0 overruns:0 frame:0
TX packets:114 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:29039 (28.3 KiB) TX bytes:14305 (13.9 KiB)
錯誤:蠻力解決方案的
[[email protected] ~]# knife client list
ERROR: Errno::EHOSTUNREACH: No route to host - connect(2) for "chefsrv1" port 443
[[email protected] ~]# curl chefsrv1
curl: (7) couldn't connect to host
[[email protected] ~]# ping chefsrv1
PING chefsrv1.localdomain (172.16.20.131) 56(84) bytes of data.
64 bytes from 172.16.20.131: icmp_seq=1 ttl=64 time=0.685 ms
64 bytes from 172.16.20.131: icmp_seq=2 ttl=64 time=0.335 ms
64 bytes from 172.16.20.131: icmp_seq=3 ttl=64 time=0.319 ms
'service iptables status'? –