Changes

Jump to: navigation, search

Managing VMware Virtual Networks and Adapters

482 bytes added, 18:48, 29 May 2016
m
Text replacement - "<google>BUY_VMWARE_SERVER_2_BOTTOM</google>" to "<htmlet>vmware</htmlet>"
<table border="0" cellspacing="0" width="100%">
<tr>
<td width="20%">[[VMware Server Virtual Network Architecture|Previous]]<td align="center">[[VMware Server 2.0 Essentials|Table of Contents]]<td width="20%" align="right">[[VMware Server NAT Configuration|Next]]</td>
<tr>
<td width="20%">VMware Server Virtual Network Architecture<td align="center"><td width="20%" align="right">VMware Server NAT Configuration</td>
</table>
<hr>
 
 
<htmlet>vmware</htmlet>
 
 
As outlined in the chapter entitled [[VMware Server Virtual Network Architecture]], VMware Server provides two types of virtual network adapter. ''Virtual network adapters'' are installed into virtual machines and provide a mechanism for guest operating systems to establish network communications. ''Host virtual adapters'', on the other hand, are installed in the host operating system and are used to establish communication between the host operating system and virtual machines running in VMware Server based NAT and HostOnly based virtual networks.
== Adding a New Virtual Network Adapter to a Virtual Machine ==
VMware Server 2 increased the number of virtual network adapters that can be added to a virtual machine from 4 to 10. Although the VI Web Access new virtual machine wizard allows virtual network adapters to be added to configured into a virtual machine it is quite common to need to add additional adapters later in the lifecycle of the virtual machine. Fortunately, VMware Server makes the addition of virtual network adapters quick and easy to achieve.
The first step in the process is to log into the VI Web Access management interface (details of which are covered in the [[A Guided Tour of the VMware Server 2.0 Infrastructure Web Access Interface]] chapter of this book). Once logged in, identify and select the required virtual machine from the ''Inventory'' panel. Just as a physical computer system needs to be shutdown and powered off before the cover is removed and a new network adapter card installed, the virtual machine must be powered off before a new virtual network adapter can be added. The currently select virtual machine may be shutdown by clicking the power off button in the VI web Web Access toolbar, or by selecting the ''Power off'' link in the ''Commands'' panel of the workspace.
Once the virtual machine status panel indicates that the virtual machine has been successfully powered off, click on the ''Add Hardware'' link in the ''Commands'' panel to invoke the VMware Add Hardware Wizard. The wizard is generic in that it allows a variety of different virtual hardware devices to be added to a virtual machine in addition to a virtual network adapter. To proceed with the device installation click on the link labeled ''Network Adapter'' to proceed to the network adapter properties screen as illustrated in the following figure:
In order to be of use to the guest operating system, the virtual network adapter must be connected to a virtual network. The ''Network Connection'' drop down menu provides a list of virtual networks currently configured within the VMware Server environment. These were either selected during the Vmware VMware Server installation process, or subsequently configured by an administrator. If all virtual network options were configured during installation then ''NAT'', ''HostOnly'' and ''Bridged'' virtual networks should be available for the virtual network adapter to connect to. In the absence of a required virtual network on Linux systems, run the '''vmware-config.pl''' script as super-user and configure the missing virtual network type. Assuming the required virtual network is listed in the connections menu, select it and then choose whether the new virtual network device is to be automatically connected to the virtual machine at power on.
Finally, click ''Next'' to proceed to the ''Ready to complete'' screen and review the configuration summary information listed. if If the virtual machine is to be power on automatically immediately after the new virtual network adapter has been added, set the ''Power on your vietual virtual machine now'' option before clicking on the ''Finish'' button. The new virtual machine will subsequently power up with the new virtual network adapter installed and, subject to the configuration settings, connected to the selected virtual network. The new adapter will also be listed in the ''Hardware'' panel of the selected virtual machine, together with the name of the network to which it is currently connected.
== Removing Virtual Network Adapters ==
Once the ''Remove'' option have has been selected a dialog will appear seeking confirmation that the virtual device is to be removed from the virtual machine. Selection of the ''Yes'' button will proceed with the removal process. The virtual network adapter will disappear from the virtual machine's hardware list and will be absent next time the virtual machine is powered on.
== Modifying Virtual Network Adapter Settings ==
In addition to adding and removing virtual network adapters , it is also possible to configure the current settings of existing adapters. The virtual machine may be power powered on or off during the editing phase, although the range of options available for configuration differs depending on the current power state (for example, it is not possible to configure the MAC address settings when the virtual machine is powered on).
To modify the settings of a particular virtual network adapter, select the virtual machine to which it is connected from the VI Web Access inventory list, click on the down arrow next to the required device in the ''Hardware'' panel and select the ''Edit...'' menu option. This will invoke the network adapter settings dialog as illustrated in the following figure:
In the above figure, the virtual machine is currently powered on causing the ''MAC Address'' settings to be disabled (since it is unwise to change the MAC address of a device while it is in operation). Conversely, had the virtual machine been powered off the options to connect or disconnect the virtual network adapter would have been disabled. An overview of the various settings available is as follows:
* '''Connect''' - This setting is only active when the virtual machine is in the ''powered on'' state. If the virtual network adapter is not currently connected to the designated virtual network, this option establishes a connection.
* '''Disconnect''' - Also only active when the virtual machine is powered on. Disconnects the virtual machine from the designated virtual network "(much like unplugging the network cable from a physical network interface card).
* '''Connect at power on''' - Controls whether the virtual network adapter is automatically connected to the specified virtual network when the virtual machine is powered on.
Host virtual adapters are installed by VMware Server to enable the host to communicate with the virtual machines which are connected to HostOnly and NAT based virtual networks. By default, two host virtual adapters are configured, one for each of these two virtual networks. Additional host virtual adapters may be installed, and existing adapters may be enabled, disabled and removed.
On Windows hosts, virtual host adapters are managed using the ''Manage Virtual Networks'' tool which is accessed via ''Start -> Programs -> VMware Server -> Manage Virtual Networks''. Once the tool has loaded, select the ''''Host Virtual Adapters'' tab to view a list of currently configured adapters. To remove, enable or disable a virtual adapter, simply select it from the list and click on the appropriate button beneath the list. To add a new host virtual adapter, click on the ''Add...'' button and select an available VMnet setting to assign to the new adapter.
Host virtual adapters are managed on Linux systems using the ''vmware-config.pl'' script which much be run as super-user, for example:
</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 prompt to change the network settings for the host:
<pre>
</pre>
Enter ''no'' to proceed to with network configuration, at which point the script will 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 ways to configure existing settings. At this prompt select the ''editor'' option:
<pre>
</pre>
If bridged networking is selected it will be necessary to decide which physical network device on the host should will 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>
Once a suitable subnmet subnet 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:
. vmnet8 is a NAT network on private subnet 172.16.86.0.
</pre>
 
 
<htmlet>vmware</htmlet>

Navigation menu