如何将 VMWare 来宾连接到 Internet?

swi*_*ift 5 vmware networking windows-xp

我在 Ubuntu 12.04 中的 VMware 上使用 WinXP。

需要通过Host-onlyNAT桥接连接使用一些可靠的算法将 VMware XP box 连接到 Internet 。

请为我建议 1 个网卡(Atheros)的正确方法。

Rob*_*ans 6

最常见的解决方案是在来宾操作系统上使用两个网络接口。一个桥接,另一个仅主机。通过这种方式,无论您是否有外部网络连接,您都可以获得双向的主机-访客连接。

此处的 VMWare 帮助页面上有详细说明。

如果 VMWare 不支持桥接到 Atheros 无线,我知道 Virtualbox 支持。


上面链接中的解决方案(“删除 Linux 主机上的主机虚拟适配器”)和配置 VMware 虚拟网络的通用向导:

1

成为 root 并运行 VMware Workstation 配置脚本。

su
vmware-config.pl
Run Code Online (Sandbox Code Playgroud)

2

关注以下问题

Do you want networking for your Virtual Machines? (yes/no/help) [yes]
Run Code Online (Sandbox Code Playgroud)

Yes如果您仍想在虚拟机中使用任何网络,请回答,然后继续下一个问题。

否则,回答No删除所有网络。

3

如果您回答Yes,脚本会提示您选择向导或编辑器来编辑您的网络配置。选择编辑器。这是在不删除所有虚拟网络适配器的情况下删除虚拟网络适配器的唯一方法。

Would you prefer to modify your existing networking configuration using the wizard  
or the editor? (wizard/editor/help) [wizard] editor
Run Code Online (Sandbox Code Playgroud)

4

您会看到已配置的虚拟网络列表。选择与您要禁用的适配器对应的网络。

The following virtual networks have been defined:

. vmnet0 is bridged to eth0
. vmnet1 is a host-only network on subnet 172.16.155.0.
. vmnet8 is NAT network on a private subnet 172.16.107.0.

Which virtual network do you wish to configure? (0-99) 1
Run Code Online (Sandbox Code Playgroud)

5

系统可能会提示您保留此虚拟网络。如果您确定要删除它,请回答Yes问题。

The network vmnet1 has been reserved for a host-only network. You may change it,
but it is highly recommended that you use it as a host-only network.
Are you sure you want to modify it? (yes/no) [no] yes
Run Code Online (Sandbox Code Playgroud)

6

当提示有关虚拟网络的类型时,选择None虚拟网络将被删除。

What type of virtual network do you wish
to set vmnet1? (bridged,hostonly,nat,none) [hostonly] none 
Run Code Online (Sandbox Code Playgroud)