我在雪豹Mac上运行Postgres和Bloomberg的VM XP虚拟机(不幸的是,bberg只是Windows )。下面是虚拟机的IP Config:
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : localdomain
IP Address. . . . . . . . . . . . : 172.16.179.130
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 172.16.179.2不幸的是,在同一个mac (当然是虚拟机之外)的终端上,ping没有看到IP地址:
users-imac:~ thomasbrowne$ ping 172.16.179.130
PING 172.16.179.130 (172.16.179.130): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3因此,我无法从虚拟机外部访问Postgres数据库。我正在运行“共享此Mac的网络连接(NAT)”作为虚拟机的网络选项,Mac通过wifi连接到网络,在该网络中它获得一个动态IP地址。我该做些什么吗?提前谢谢你的帮助。
发布于 2009-10-11 23:06:45
您可以尝试桥接而不是NATing接口。桥接意味着它将从mac所在的同一个局域网获得IP,而不是从VMWare NATed接口获得IP。
https://serverfault.com/questions/73485
复制相似问题