[an error occurred while processing this directive] VMware Workstation for Windows NT and Windows 2000 Networking Support [an error occurred while processing this directive] [an error occurred while processing this directive]
 
VMware Workstation for Windows NT and Windows 2000 Networking Support


Overview

Each virtual machine can have its own distinct network configuration. There are four choices for configuring networking:

  • No networking
  • Host-only networking
  • Bridged networking
  • Custom networking

No networking simply means a virtual machine is run in isolation; it will not be able to communicate with the host operating system or any other virtual machine running on the host. This option is useful if you want complete isolation for testing or security purposes. To setup your virtual machine in this way, simply do not install a network interface adapter when configuring the virtual machine.

Host-only networking means a virtual machine can communicate with the host operating system and any other virtual machines set up to use host-only networking, but the virtual machine cannot communicate with any systems off the host machine without the use of a proxy server. This facility is most useful when the host is itself isolated or when you want to isolate your virtual machines from systems outside the host computer. This configuration is analogous to how corporations connect their internal networks to the Internet with a firewall and proxy services. To set up a virtual machine in this way, you need to install a network interface adapter and mark it as "host-only." Once the guest operating system is installed you may then need to do some additional configuration work that is described below.

Bridged networking means a virtual machine runs on a virtual network that is "connected" to an existing physical network. This permits a virtual machine to appear as a full-fledged host on an existing physical network.

A bridged virtual machine may transparently use any of the services available on the network that it is bridged to: printers, file servers, gateways, etc. Likewise, when a virtual machine is bridged, any physical host -- or other virtual machine configured with bridged networking -- can use resources on that virtual machine. This is the most commonly used networking configuration. To manually configure bridged networking you need to install a network interface adapter and mark it as "bridged." Once the guest operating system is installed, you may then need to do some additional configuration work, which is described below.

Custom networking refers to any network configuration other than described above. For example, a collection of virtual machines, possibly on multiple physical hosts, might be configured on a private virtual network. This might be done to set up a private file sharing environment or for testing a group of virtual machines in an isolated network environment. Configuration of custom networking requires a thorough understanding of networking concepts and potentially the implementation of some simple user-level applications. Setting up custom networking is not detailed in this document. If you want to set up your own custom network environment and have trouble doing so, please file an incident.


What You Will See on the Host

VMware Workstation networking support is done on the host machine through a virtual network device driver that implements four Windows NT/Windows 2000 devices: VMnet0, VMnet1, VMnet2, and VMnet3. Each of these devices is logically associated with a virtual Ethernet hub through which any number of virtual machines and the host may communicate. By convention VMnet0 is used for bridged networking, VMnet1 is used for host-only networking, and the other two interfaces are available for custom network configurations. The driver that implements these devices is a standard Windows NT/Windows 2000 device driver that appears in the Devices control panel as the "VMnet" device.

In addition to the above devices there is one service, the VMnet Bridge service, and a second Windows NT/Windows 2000 device driver that interfaces virtual network devices to the Windows NT/Windows 2000 network protocols.

The VMnet bridge service connects virtual network hubs to Windows NT/Windows 2000 network adapters so that virtual machines on the hubs appear as if they were connected to the physical networks associated with the adapters. This service is started when a user logs in to the system; an entry for each bridged network hub will appear in the Services control panel as the "VMnet Bridge" service.

The second Windows NT/Windows 2000 device driver provides the support for host-only networking; it is an NDIS driver that implements virtual Windows NT/Windows 2000 Ethernet adapter cards that connect virtual network hubs to the Windows NT/Windows 2000 protocols. These adapters are managed using the normal Windows NT/Windows 2000 mechanisms.

To add an adapter on a Windows NT host, bring up the Network control panel, click the Adapter tab, then click Add. Protocol bindings, network addresses, and related configuration are all done through the Network control panel.

The NDIS device driver can be seen in the Devices control panel as the "Virtual Ethernet Adapter Driver" device. It is automatically started at system boot if one or more virtual Ethernet adapters have been configured.

To add an adapter on a Windows 2000 host, use the Add/Remove Hardware wizard. For a detailed description of the process, see this tech note.


What You Will See on the Guest Operating System

Network support on the guest operating system appears through the virtual Ethernet adapter(s) that are configured for the virtual machine. Each device appears to the operating system as an AMD PCNET PCI adapter. Most operating systems will recognize this virtual hardware and automatically configure use of the appropriate device driver. The main issue in completing network configuration in the guest operating system is assigning a network address for the virtual machine.


More Details about Host-only Networking

Setting up host-only networking on the guest operating system
Host-only networking means a virtual machine can communicate with the host operating system and any other virtual machines set up to use host-only networking, but the virtual machine cannot communicate with any systems off the host machine without the use of a proxy server. This is done by creating a private virtual network on which the host and all host-only configured virtual machines reside. Typically all the parties on this private network use the TCP/IP protocol suite, although there is no requirement for this. Regardless of the communication protocols used, each virtual machine and the host must be assigned addresses on the private network. This can be done "statically" (that is, by consulting a fixed database) or "dynamically" using protocols such as the Dynamic Host Configuration Protocol (DHCP). When host-only networking is enabled at the time VMware Workstation is installed, a virtual Ethernet network adapter is added through the Network Control Panel Application (NCPA). The IP address for this adapter, and hence the network number to use for the virtual network, is automatically selected as an unused private IP network number. This value can be viewed by going to the Protocols dialog in the NCPA and selecting Properties.. for the TCP/IP Protocols or by running the ipconfig utility from a command prompt. VMware Workstation for Windows NT and Windows 2000 comes with a DHCP server that automatically assigns IP addresses to guest operating systems on host-only networks. Note that the server assigns IP addresses only to virtual machines running on a host-only network; it will not service virtual (or physical) machines residing on bridged networks.

Note: The software installer for VMware Workstation for Windows NT and Windows 2000 has a known problem where it does not properly set up the host-only networking option when it is installed on Windows 2000 hosts. If you want to configure virtual machines to use the host-only networking option on Windows 2000 hosts, you must first install the VMware Workstation software on the host machine, then install the basic host-only network adapter afterwards. For details on how to manually install the basic host-only network adapter on Windows 2000 (RC1 or later) hosts, see this technical note.

Selecting IP addresses for virtual machines on a host-only network
You have two choices for setting up IP addresses for virtual machines on a host-only network: dynamic assignment using DHCP or static assignment. Using DHCP to assign IP addresses is simpler and more automatic than statically assigning them. Most Windows operating systems, for example, come preconfigured to use DHCP at boot time so they'll be functional the first time they are booted, without additional configuration. (Using this option requires you to have a DHCP server installed on your host.) If, however, you want your virtual machines to communicate with each other using names instead of IP addresses, you need to set up a naming convention, a name server on the host machine, or both. In that case it may be simpler just to use static IP addresses.

VMware recommends that if you have virtual machines you intend to use frequently or for extended periods of time, you assign them static IP addresses or configure the host-only DHCP server so it always assigns the same IP address to the virtual machine. For virtual machines that you do not expect to keep for long, use DHCP and let it allocate an IP address. A useful convention is to split up the available IP addresses on a host-only network. (VMware Workstation always uses a Class C address for host-only networks.)

Range Address Use Example
<net>.1 host machine 192.168.0.1
<net>.2-<net>.127 static addresses 192.168.0.1-192.168.0.127
<net>.128-<net>.254 DHCP-assigned 192.168.0.128-192.169.0.254
<net>.255 broadcasting 192.168.0.255

(where <net> is the network number assigned to your host-only network.)

Avoiding IP packet leakage in a host-only network
Each host-only network is intended to be confined to the host machine on which it is set up. That is, no packets sent by virtual machines on this network should "leak out" to a physical network attached to the host. Packet leakage can occur only if a machine actively forwards packets. Note that this can be true of the host machine or any virtual machine running on the host-only network.

Windows NT systems are capable of forwarding IP packets they receive but that are not addressed to them. By default, however, these systems come with IP packet forwarding disabled. If you find packets leaking out of a host-only network, check if forwarding has been enabled on the host machine, and if it is enabled, disable it. This is done by starting the NCPA and bringing up the TCP/IP Properties dialog; the checkbox for enabling/disabling IP forwarding is found on the tab labeled Routing.

Finally, be aware that virtual machines may leak packets as well. For example, if you use Dial-Up Networking support in a virtual machine and packet forwarding is enabled, host-only network traffic may leak out through the dial-up connection.


More Details about Bridged Networking

Setting up bridged networking on the guest operating system
Bridged networking means a virtual machine appears just like any other host on the physical network. You need to configure operating system support for the virtual Ethernet adapter and then either assign a fixed network address or enable use of DHCP for dynamic address assignment. Assigning a network address is done according to local conventions -- if your site runs DHCP, you may choose to enable DHCP use; otherwise you will need to consult a network administrator to obtain a network address. Be aware that if the host machine is set up to boot multiple operating systems and you run one or more of them in virtual machines, you will need to configure each operating system with a unique network address. (Many people assign all systems the same address since they assume only one will be running at a time.)


Changing the MAC Address of a Virtual Machine

When a virtual machine is powered on, VMware Workstation automatically assigns it a MAC address. The software guarantees that virtual machines will be assigned unique MAC addresses within a given host system. However, the software does not guarantee that a given virtual machine will be assigned the same MAC address every time it is powered on. In addition, VMware Workstation does its best, but cannot guarantee, to automatically assign unique MAC addresses for virtual machines running across multiple host systems.

If you want to guarantee that the same MAC address is assigned to a given virtual machine every time, or want to guarantee a unique MAC address for each virtual machine within a networked environment, you can assign it manually instead of allowing VMware Workstation to assign it automatically. It is possible to manually assign the same, unique MAC address to any virtual machine by adding the following line to its configuration file:

    ethernet0.address = 00:50:56:XX:YY:ZZ

where XX is a valid hex number between 00h and 3Fh, and YY and ZZ are valid hex numbers between 00h and FFh. Because VMware Workstation virtual machines do not support arbitrary MAC addresses, the above format must be used.

Note: So long as you choose XX:YY:ZZ unique among your hard-coded addresses (where XX is a valid hex number between 00h and 3Fh, and YY and ZZ are valid hex numbers between 00h and FFh), conflicts between the automatically assigned MAC addresses and the manually assigned ones should never occur.

[an error occurred while processing this directive]