Changes

Jump to: navigation, search

Managing VMware Virtual Networks and Adapters

5,077 bytes added, 18:33, 14 October 2008
Managing VMware Server Host Virtual Adapters
</pre>
The ''vmware-config.pl'' script requires that all virtual machines be powered off and VMware services stopped before configuration settings are changed. If the script delects detects running virtual machines, it will display the following message and provide the option to shutdown them all down:
<pre>
</pre>
Once the virtual machines have been powered off,the VMware services stopped and the license terms accepted, vmware-config.pl will ask if you want to change the network settings for the host: <pre>You have already setup networking. Would you like to skip networking setup and keep your old settings as they are?(yes/no) [yes] </pre> Enter ''no'' to proceed to with network configuration, at which point the script ask whether networking is to be provided for the virtual machines running on the host. To disable all networking answer ''no'', otherwise accept the default, ''yes''.  The next prompt provides options for different way to configure existing settings. At this prompt select the ''editor'' option: <pre>Would you prefer to modify your existing networking configuration using the wizard or the editor? (wizard/editor/help) [wizard] editor</pre> At this point, vmware-config.pl will display the currently configured virtual networks: <pre> The following virtual networks have been defined: . vmnet0 is bridged to eth0. vmnet1 is a host-only network on private subnet 192.168.103.0.. vmnet8 is a NAT network on private subnet 172.16.86.0. Do you wish to make any changes to the current virtual networks settings? (yes/no) [no] </pre> Answer ''yes'' to proceed and at the subsequent prompt, enter the number of a network (an existing network must be referenced to make changes, or a new number entered to add a new virtual network). At this point it is important to keep in mind that vmnet0 is the bridged network, vmnet1 host-only and vmnet8 NAT. All other numbers between 2 and 255 are available for new virtual networks.  To add a new virtual network (and corresponding host virtual adapter), enter a number which is not already in use and press enter. The script will then ask for the type of virtual network to be used, bridged, hostonly, nat or none: <pre>Which virtual network do you wish to configure? (0-254) 6 What type of virtual network do you wish to set vmnet6? (bridged,hostonly,nat,none) [none]</pre> Enter the required type of virtual network and press enter to proceed. Finally, the script will prompt for the name of the virtual network. The selection of a descriptive and unique name is important to avoid later confusion when administering virtual machines and networks: <pre>Configuring a bridged network for vmnet6. Please specify a name for this network. [Bridged]</pre> If bridged networking is selected it will be necessary to decide which physical network device on the host should be bound to the virtual network to provide access to the external network. The script will list all detected network devices and prompt for a selection. Note that if a host network adapter is already in use by another virtual network it will unavailable for use in the new virtual network. In this case, it will be necessary to select another physical network device, or install an additional network card into the host. In the case of new NAT or Host Only virtual networks a private subnet will need to be allocated to the virtual network. One may be provided manually, or the script instructed to probe the network to identify an unused subnet: <pre>Probing for an unused private subnet (this can take some time)... The subnet 172.16.125.0/255.255.255.0 appears to be unused. The following virtual networks have been defined: . vmnet0 is bridged to eth0. vmnet1 is a host-only network on private subnet 192.168.103.0.. vmnet6 is a host-only network on private subnet 172.16.125.0.. vmnet8 is a NAT network on private subnet 172.16.86.0.</pre> Once a suitable subnmet has been identified, the new virtual network and associated host virtual adapter will be created, and the new list of adapters displayed as illustrated above.  To remove a virtual network and host adapter from the configuration repeat the above steps, selecting the number of the virtual network to be removed, and enter ''none'' when asked to define the virtual network type. For example, the following transcript shows the removal of the vmnet6 network created in the preceding steps: <pre>Do you want networking for your virtual machines? (yes/no/help) [yes]  Would you prefer to modify your existing networking configuration using the wizard or the editor? (wizard/editor/help) [editor]  The following virtual networks have been defined: . vmnet0 is bridged to eth0. vmnet1 is a host-only network on private subnet 192.168.103.0.. vmnet6 is a host-only network on private subnet 172.16.125.0.. vmnet8 is a NAT network on private subnet 172.16.86.0. Do you wish to make any changes to the current virtual networks settings? (yes/no) [yes]  Which virtual network do you wish to configure? (0-254) 6 What type of virtual network do you wish to set vmnet6? (bridged,hostonly,nat,none) [hostonly] none Removing a host-only network for vmnet6. The following virtual networks have been defined: . vmnet0 is bridged to eth0. vmnet1 is a host-only network on private subnet 192.168.103.0.. vmnet8 is a NAT network on private subnet 172.16.86.0.</pre>
1,798
edits

Navigation menu