VMware Workstation 3.2
Features | Documentation | Knowledge Base | Discussion Forums
Prev
Contents
Last
Next 
Setting Up Two Separate Host-Only Networks
Setting Up Two Separate Host-Only Networks
For some configurations, you may need to set up more than one host-only network on the same host computer.
You may, for example, want to have two virtual machines connected to one host-only network, and at the same time have other virtual machines connected to another host-only network so the network traffic on each network is isolated.
Or you may want to test routing between two virtual networks. Or test a virtual machine with multiple network interface cards - without using any physical Ethernet adapters.
On Windows hosts, the first host-only network is set up automatically when you install VMware Workstation.
On Linux hosts, the first host-only network was set up when you ran the vmware-config.pl script after you installed VMware Workstation, provided you agreed to install host-only networking. If you did not agree to use host-only networking, you need to run the script again to set up host-only networking.
To set up the second host-only network, follow the steps outlined below for your host operating system.
Setting Up the Second Host-Only Interface - Windows NT Host
Setting Up the Second Host-Only Interface - Windows NT Host
Follow these steps to set up the second host-only interface on Windows NT.
-
Open a command prompt window. Change to the VMware Workstation programs folder. If you accepted the default path, use this command:
cd C:\Program Files\VMware\Programs
-
Run the following command:
vnetconfig -ih vmnet2
Setting Up the Second Host-Only Interface - Windows 2000 Host
Setting Up the Second Host-Only Interface - Windows 2000 Host
-
Open the Control Panel (Start > Settings > Control Panel).
-
Start the Add/Remove Hardware Wizard from the Control Panel.
Note: You must have sufficient privileges to do this.
-
Click Next to continue past the Welcome screen.
-
Select Add/Troubleshoot a Device and click Next.
-
Wait while Windows searches for new Plug and Play devices, then select Add a New Device from the Choose a Hardware Device screen and click Next.
-
Select No, I want to select the hardware from a list and click Next.
-
Select Network Adapters from the list and click Next.
-
Select VMware, Inc. from the manufacturers list on the Select Network Adapter screen to get the list of available host-only network adapters. Select VMware Virtual Ethernet Adapter (for VMnet2) and click Next.
-
Click Next in the Start Hardware Installation screen.
-
Click Yes when prompted that the Microsoft digital signature is not present for the software about to be installed.
-
Click Finish on the screen that indicates the adapter has been installed.
Setting Up the Second Host-Only Interface - Windows XP or Windows .NET Server Host
Setting Up the Second Host-Only Interface - Windows XP or Windows .NET Server Host
-
Start the Add Hardware Wizard.
Start > Control Panel > Add Hardware
Note: You must have sufficient privileges to do this.
-
Click Next.
-
When prompted, select Yes, I have already connected the hardware.
-
On the screen that lets you select the hardware, select Add a new hardware device, then click Next.
-
Select Install the hardware that I manually select from a list (Advanced).
-
Select Network Adapter.
-
Select VMware, Inc. as the manufacturer.
-
Select the host-only adapter for the appropriate VMnet.
-
Click Yes when prompted that the Microsoft digital signature is not present for the software about to be installed.
-
Click Finish on the screen that indicates the adapter has been installed.
Setting Up the Second Host-Only Interface - Linux Host
Setting Up the Second Host-Only Interface - Linux Host
-
As root (su), run the VMware Workstation configuration script.
/usr/bin/vmware-config.pl
-
Use the wizard to modify your configuration. After asking about a NAT network, the script asks:
Do you want to be able to use host-only networking in your virtual machines?
Answer Yes.
The wizard reports on host-only networks that you have already set up on the host or, if none is present, configures the first host-only network.
-
The wizard asks:
Do you wish to configure another host-only network?
Answer Yes.
Repeat this step until you have as many host-only networks as you want. Then answer No.
-
Complete the wizard. When it is finished, it restarts all services used by VMware Workstation.
-
Run ifconfig. You should see at least four network interfaces - eth0, lo, vmnet1 and vmnet2. If the VMnet interfaces do not show up immediately, wait for a minute, then run the command again. These four interfaces should have different IP address on separate subnets.
Configuring the Virtual Machines
Configuring the Virtual Machines
Now you have two host-only interfaces (VMnet1 and VMnet2). You are ready to configure your virtual machines for one of the following scenarios:
-
The virtual machine is configured with one virtual Ethernet adapter, and that virtual adapter is connected to the default host-only interface (VMnet 1).
-
The virtual machine is configured with one virtual Ethernet adapter, and that virtual adapter is connected to the newly created host-only interface (VMnet2).
-
The virtual machine is configured with two virtual Ethernet adapters. One virtual adapter is connected to the default host-only interface (VMnet1) and the other virtual adapter is connected to the newly created host-only interface (VMnet2).
Scenario 1 - Connect to the Default Host-Only Interface
Scenario 1 - Connect to the Default Host-Only Interface
-
Create the virtual machine using the New Virtual Machine Wizard (on a Windows host) or Configuration Wizard (on a Linux host) or use an existing virtual machine.
-
Launch VMware Workstation and open the virtual machine.
-
Edit the configuration using the Configuration Editor (Settings > Configuration Editor).
Windows host: Select Network Adapter, then select Host-only (VMnet1) from the drop-down list on the right.
If no network adapter is shown in the list of devices, click Add, then use the Add Hardware Wizard to add an adapter.
Linux host: Click the + sign to expand the Ethernet Adapters list and select the first adapter. From the Connection Type drop-down list on the right, select Host-only.
If the list of devices indicates the adapter is not installed, click Install.
Scenario 2 - Connect to the Newly Created Host-Only Interface
Scenario 2 - Connect to the Newly Created Host-Only Interface
-
Create the virtual machine using the New Virtual Machine Wizard (Windows hosts) or Configuration Wizard (Linux hosts) or use an existing virtual machine.
-
Launch VMware Workstation and open the virtual machine.
-
Edit the configuration using the Configuration Editor (Settings > Configuration Editor).
Windows host: Select Network Adapter, then select Custom (VMnet2) from the drop-down list on the right.
If no network adapter is shown in the list of devices, click Add, then use the Add Hardware Wizard to add an adapter.
Linux host: Click the + sign to expand the Ethernet Adapters list and select the first adapter. From the Connection Type drop-down list on the right, select Custom. In the VMnet field, type /dev/vmnet2.
If the list of devices indicates the adapter is not installed, click Install.
Scenario 3 - Connect to Two Host-Only Interfaces
Scenario 3 - Connect to Two Host-Only Interfaces
-
Create the virtual machine using the New Virtual Machine Wizard (on a Windows host) or Configuration Wizard (on a Linux host) or use an existing virtual machine.
-
Launch VMware Workstation and open the virtual machine.
-
Edit the configuration using the Configuration Editor (Settings > Configuration Editor).
Windows host: Select the first network adapter in the list of devices, then select Host-only (VMnet1) from the drop-down list on the right. Select the second network adapter in the list of devices, then select Custom (VMnet2) from the drop-down list on the right.
If you need to add one or more network adapters, click Add, then use the Add Hardware Wizard to add an adapter.
Linux host: Click the + sign to expand the Ethernet Adapters list and select the first adapter. From the Connection Type drop-down list on the right, select Host-only.
If the list of devices indicates the adapter is not installed, click Install.
Select the second adapter and, from the Connection Type drop-down list on the right, select Custom. In the VMnet field, type /dev/vmnet2.
If the list of devices indicates the adapter is not installed, click Install.
At this point you can power on the virtual machine and install your guest operating system. In scenarios 1 and 2 you see one AMD PCNet Family Adapter. In scenario 3 you see two AMD PCNet Family Adapters within the guest. Configure the Ethernet adapters as you would physical adapters on a physical computer, giving each an IP address on the appropriate VMnet subnet.
On Windows hosts, you can open a command prompt and run ipconfig /all to see what IP addresses each host-only network is using.
On Linux hosts, you can open a terminal and run ifconfig to see what IP addresses each host-only network is using.
Prev
Contents
Last
Next 
|