Web 访问虚拟机
它们是一种从主机访问安装在虚拟机(例如 vmware)上的 Web 服务器(例如 Windows Server 2003)的方法吗?
Is their a way to access a web server such as windows server 2003 installed on a virtual box such as vmware from the host machine?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
如果将虚拟机配置为使用桥接网络而不是 NAT,它将在主机“旁边”拥有自己的 IP 地址,而不是在主机“后面”使用本地 IP 地址。 然后您可以使用该 IP 号连接到虚拟机。
(免责声明:我已经使用 VMware 工作站好几年了,但没有使用他们的服务器产品。)
If you configure your virtual machine to use bridged networking, instead of NAT, it will have its own IP address "beside" the host machine, instead of a local IP address "behind" it. Then you can connect to the virtual machine, using that IP number.
(Disclaimer: I've used VMware workstation for several years, but not their server products.)
如果VMware设置为使用桥接网络,那么每个客户操作系统实际上都有自己的IP地址,就像brien所说,你只需将浏览器指向该地址即可。
If VMware is set to use bridged networking, then each guest OS effectively has its own IP address, like brien said, you just point your browser to that address.
IP地址应该可以做到。
IP address should do it.
我遇到了同样的问题。 您必须在虚拟机中将网络连接设置为“桥接模式”。 然后你必须找出你的网络服务器的IP。
有时网络服务器会重定向到特定的 URL。 在这种情况下,您可以在 C:/Windows/System32/drivers/etc/hosts 中编辑您的主机文件,并使用重定向的 URL 添加您的 IP,如下所示:
然后您的主机可以访问 Web 服务器。 即使是以太网的参与者也可以访问网络服务器。
I faced the same issue. You have to set your networkconnection to "bridged mode" in your VM. Then you have to find out the IP of your Webserver.
Sometimes Webservers have a redirect to a specific URL. In this case you can edit your host-file in C:/Windows/System32/drivers/etc/hosts and add your IP with the redirected URL like this:
Then your Host can go to the Webserver. Even participants of your Ethernet can access the Webserver.
是的,您应该只能指向虚拟机的 IP 地址。
您的虚拟机网络是如何配置的?
Yes, you should just be able to point to the IP address of the VM.
How is your VM networking configured?
我在所有地方都这样做,只需确保虚拟机配置了IP即可。
I am doing this all over the place, just make sure that the vm has an ip configured.
我相信 vmware(工作站?)还内置了一个虚拟网络客户端(VNC),您可以连接到它 - 通过转到虚拟机的配置属性来启用它,并且在最后一个选项卡中有一个复选框。
i believe vmware (workstation?) also has built in a virtual network client (VNC) that you can connect to - enable it by going to the configuration properties of the vm, and in the last tab there is a checkbox for it.