VMware ESX Server 2.0
Features | Documentation | Knowledge Base | Discussion Forums
Prev
Contents
Last
Next 
Network Load Balancing
Network Load Balancing
What Is Network Load Balancing?
What Is Network Load Balancing?
Network Load Balancing is a Windows 2000 Advanced Server feature. By using Network Load Balancing to build a server cluster, you can enhance the availability of Internet server programs, such as those used on Web, proxy, domain name service (DNS), FTP, virtual private network (VPN) and streaming media servers. Network Load Balancing can help you scale your server's performance.
NLB can be used in unicast or multicast modes. If the cluster is operating in unicast mode (the default), ordinary network communication among cluster hosts is not possible unless each cluster host has at least two network adapters.
Creating Multinode Network Load Balancing Clusters on ESX
Server
Creating Multinode Network Load Balancing Clusters on ESX
Server
This section covers procedures for creating a Network Load Balancing cluster using nodes running in virtual machines. These virtual machines can be located on one or more ESX Server machines.
Creating the First Node's Base Virtual Machine
Creating the First Node's Base Virtual Machine
- Access the VMware Management Interface at https://<hostname>/ and log on as the user who will own the virtual machine.
- Click Add Virtual Machine.
- Keep the default Guest Operating System selection of Microsoft Windows 2000 Server.
Note: This example uses Microsoft Windows 2000 Server as the guest operating
system. You may substitute another Windows operating system that supports
Microsoft Cluster Service.
- Change the Display Name field to describe the virtual machine for example, MSCS Node 1 (Portsaid).
- Change the Location of the virtual machine configuration file to
/home/<user>/vmware/cluster1/cluster1.vmx.
- Click Next.
- Choose the number of processors you want the guest operating system to use, up to 2.
- Change Memory to show the amount of RAM you want to allocate to this virtual machine.
- Click Next.
- Click Blank to create a new virtual disk.
- Choose the VMFS volume on which you want to store the virtual disk.
- Give the virtual disk file a unique name for example, cluster1.dsk.
- If you need a primary SCSI disk larger than 4GB, enter the appropriate value in the Capacity field.
- Choose the virtual SCSI node to which you want to attach the virtual disk.
- By default, the disk mode is set to persistent. Click Persistent to verify the disk mode.
- Click Next.
You have created the virtual machine.
The hardware tab for this virtual machine appears. Use it to add hardware devices.
Network Device Configuration
You must add another virtual network adapter the cluster nodes will use to communicate with each other.
- On the hardware tab for this virtual machine, click Add Device.
- Click Network Adapter.
- From the Device Binding drop-down list, choose vmnic1.
Note: If all nodes of the cluster will reside on the same ESX Server machine, you
may use vmnet_0 for the second network adapter. This allows all nodes to
communicate with each other on a private virtual network connected to the
vmnet_0 virtual switch.
- Click OK.
You have finished creating and configuring the first node virtual machine.
Installing the Guest Operating System
Installing the Guest Operating System
Now you need to install Windows 2000 Advanced Server in the virtual machine.
- Insert the Windows 2000 Advanced Server CD in the ESX Server machine's CD-ROM drive.
- In the management interface, click the blue terminal icon next to the virtual machine's name to launch the remote console.
- Log on using the user account that created the virtual machine or as root.
- Click Power On.
- Install Windows 2000 Advanced Server on the disk connected to scsi0.
- Accept all the default options during the installation. You may opt to install the applications at this time. Network Load Balancing is installed by default.
- When the installation is completed, install VMware Tools in the guest operating system.
- Remove the Windows 2000 Advanced Server CD from the server's CD-ROM drive.
Cloning the Virtual Machine
Cloning the Virtual Machine
Now that you have a virtual machine with Windows 2000 Advanced Server installed, you can save time by cloning this virtual machine as follows:
- Run sysprep.exe, which is available on the Windows 2000 CD in the \support\tools\deploy.cab file. This strips the security ID assigned to the guest operating system and resets the machine information as well as the TCP/IP network configuration.
- Shut down the guest operating system and power off the virtual machine.
- On the management interface's Overview page, click Manage Files.
- Drill down to the vmfs folder then the vms folder. This may take some time to refresh.
- Select the check box next to the cluster1.dsk file.
- Click Copy.
- Click Paste.
- When the copy process is complete, select the check box next to the file copy of cluster1.dsk.
- Click Edit Properties.
- Change the filename to cluster2.dsk.
- Click OK.
- Close the Manage Files window.
This concludes the cloning process. Now continue with creating the second node virtual machine
Cloning the Virtual Machine, an Alternate Method
Cloning the Virtual Machine, an Alternate Method
- Run sysprep.exe, which is available on the Windows 2000 CD in the \support\tools\deploy.cab file. This strips the security ID assigned to the guest operating system and resets the machine information as well as the TCP/IP network configuration.
- Shut down the guest operating system and power off the virtual machine.
- At the ESX Server console, log on as root.
- Change directories: cd /vmfs/vms
This changes the current directory to the VMFS partition where you created the virtual disk.
- Create a copy of the virtual disk: cp cluster1.dsk cluster2.dsk
This creates a copy of the virtual disk. You may repeat this command using a different target filename if you want to create more than one copy.
This concludes the cloning process. Now continue with creating the second node virtual machine
Cloning the Virtual Machine to Another ESX Server Machine
Cloning the Virtual Machine to Another ESX Server Machine
This section assumes that you are planning to run each node of an eight-node cluster on a separate ESX Server machine. If you are planning to run a different number of nodes on each ESX Server machine, adjust the procedure accordingly.
- Run sysprep.exe, which is available on the Windows 2000 CD in the \support\tools\deploy.cab file. This strips the security ID assigned to the guest operating system and resets the machine information as well as the TCP/IP network configuration.
- Shut down the guest operating system and power off the virtual machine.
- At the ESX Server console (on a machine other than the one where you created the first node), log on as root.
- Change directories: cd /vmfs/vms
This changes the current directory to the VMFS partition where you want to create the virtual disk.
- Use the ftp command: ftp <first-ESX-Server-Hostname>
- Change directories: cd /vmfs/vms
- Set the type to binary: bin
- Type: hash on
- Retrieve the virtual disk file: get cluster1.dsk
This transfers a copy of the virtual disk to the second ESX Server machine's VMFS partition.
- Quit the ftp session: bye
- Rename the virtual disk file: mv cluster1.dsk cluster9.dsk
This renames the virtual disk file to cluster9.dsk. This assumes that this ESX Server machine will host nodes 9 and up.
Repeat this command using a different target file name if you want to create more than one copy.
This concludes the cloning process. Now continue with creating the second node virtual machine
Repeat step 3- step 11 on each ESX Server machine that will participate in the cluster.
Creating the Second Node Virtual Machine
Creating the Second Node Virtual Machine
Create a new virtual machine as follows:
- On the management interface's Overview page, click Add Virtual Machine.
- Keep the default Guest Operating System selection of Microsoft Windows 2000 Server.
- Change the Display Name field to describe the virtual machine for example, MSCS Node 2 (Kena).
- Change the Location of the virtual machine to
/home/<user>/vmware./cluster2/cluster2.vmx.
- Click Next.
- Choose the number of processors you want the guest operating system to utilize, up to 2.
- Change Memory to show the amount of RAM you want to allocate to this virtual machine.
- Click Next.
- Click Existing to attach an existing virtual disk to this virtual machine.
- From the Virtual Disk Image drop-down list, choose cluster2.dsk.
- Choose the virtual SCSI node to which you want to attach the virtual disk.
- Click Next.
Network Device Configuration
You need to add another network adapter that the cluster nodes will use to communicate with each other.
- On the hardware tab for this virtual machine, click Add Device.
- Click Network Adapter.
- From the Device Binding drop-down list, choose vmnic1.
Note: If all nodes of the cluster will reside on the same ESX Server machine, you
may use vmnet_0 for the second network adapter. This allows all nodes to
communicate with each other on a private virtual network connected to the
vmnet_0 virtual switch.
- Click OK.
You have finished creating and configuring the new node's virtual machine.
Go to the management interface's Overview page. Both virtual machines should be listed and shown as powered off.
You may repeat this procedure at each ESX Server machine on which you created copies of the virtual disk.
Configuring the Network Load Balancing Cluster
Configuring the Network Load Balancing Cluster
You can cluster up to 32 nodes using Network Load Balancing To configure the cluster, follow this procedure for each node that will join the cluster.
- Using the management interface connected to the first ESX Server machine, launch the remote console for the first node.
- Power on the virtual machine.
- Follow the Windows 2000 Server mini-setup prompts to enter the Windows 2000 Advanced Server serial number and the host name and IP addresses.
- At the end of the process, Windows automatically reboots.
- Log on to the Windows 2000 Advanced Server virtual machine as Administrator.
- Open Network and Dial-up Connections.
- Right-click the local area connection on which you will install Network Load Balancing and choose Properties. The Local Area Connection Properties dialog box appears.
- Under Components checked are used by this connection, select the Network Load Balancing check box.
- Click Properties.
- On the Cluster Parameters tab, configure cluster operations using these parameters:
- After you have finished, click OK. You return to the Local Area Connection Properties dialog box.
- Click OK again to return to the Local Area Connection Status dialog box.
- Right-click the local area connection on which Network Load Balancing is to be installed, and click Properties.
- Select Internet Protocol (TCP/IP), then click Properties.
- Set up TCP/IP for Network Load Balancing. For more information and links to procedures for setting up TCP/IP for Network Load Balancing on single and multiple network adapters, see Related Topics in the Network Load Balancing Help.
Note: You must add Cluster's Primary IP Address to the list of IP Addresses
bound to the adapter.
- Repeat these steps on each host to be used in your Network Load Balancing cluster.
Prev
Contents
Last
Next 
|