Frequently Asked Question

WinPower on VMware ESX 3.5/4.0/4.1

Last Updated 3 years ago
This section describes the installation and configuration of the Software on a VMware ESX Server. Software allows you to connect VMware ESX 3.5/4.0/4.1 with a UPS through the RS232 or USB port.

Please note: When you want to connect VMware ESX 4.0/4.1 with a UPS through USB port, you should execute the command to activate the usb.o on your System to make the USB communication normal, and then restart the VMware ESX 4.0/4.1 server. The command: esxcfg-module -s "libusb_support=1" usb.o

If you don’t want to input the command above, you can start the agent of software after first installation. And then restart the VMware ESX 4.0/4.1 server, the USB communication will be normal.

The software will be monitored and configured by a remote Agent on either a Microsoft Windows or Linux platform.

The software notifies the VMware server of power events or UPS alerts with pop up broadcast information on the console. It also safely shuts down the VMware ESX server and the guest operating system.

Before the VMware ESX system shuts down, use the shutdown.sh script to shut down the guest operating system.

All operations are tested on VMware server with two guest operating systems (Windows 2003 and Windows XP), when the certain conditions exist, such as:
  • UPS Battery is low
  • Battery backup time is reached
Tested operations include:
  • Safely shuts down the VMware server
  • Safely shuts down the guest operating system
  • Software notifies the VMware server of power events or the UPS alert

Installation
This section provides information about installing and configuring Software on a VMware server and installing VMware Tools on a guest operating system.

Prerequisites
  • VMware ESX Server with 125 MB free space for the software.
  • VMware Infrastructure client must be installed on different machine.

Software Installation

To install the software:

1. Download the software from the Website

2. Enter the command to install software:

tar –zxvf PowerWalker_setup_Linux.tar.gz

cd /mnt/Linux

./setup_console.bin

3 Start the Agent. From the installation path, enter the command:

./agent start


Installing VMware Tools on a Microsoft Windows Guest

To install the VMware Tools for a Microsoft Windows guest:

1. On the VM Templates page, move the pointer over the virtual machine template name and select View Console from the menu.

2. Insert and start the Microsoft Windows operating system installation CD.

3. Log in to the guest operating system inside the virtual machine console, and then click Install VMware Tools.

4. From within the guest operating system, click OK to confirm that you want to install VMware Tools and launch the Install Shield wizard.

▲ If auto-run is enabled in the guest operating system (the default setting for Microsoft Windows operating systems), a window opens.

▲ If auto-run is not enabled, run the VMware Tools installer. Click Start > Run and enter D:\setup.exe, where D: is the first virtual CD-ROM drive.

5. Follow the on-screen instructions.

▲ On Microsoft Windows Server 2003, the SVGA driver is installed automatically, and the guest operating system uses it after it reboots.

▲ After you install VMware Tools, Microsoft Windows 2000 and Microsoft Windows XP guest operating systems must be rebooted to use the new driver.

Installing VMware Tools on a Linux Guest

The VMware Tools installation package is on the VMware server installation CD on the path \VMware\RPMS.

To install the VMware Tools for a Linux guest:

1. On the VM Templates page, move the pointer over the virtual machine template name and select View Console from the menu.

2. Insert and start the VMware server installation CD.

3. Log in to the guest operating system inside the virtual machine console, and then click Install VMware Tools.

4. Mount the CD with the command:

mount /dev/cdrom /mnt

5. Install the package with the command:

cd /mnt/VMware/RPMS

rpm –Uvh VMware-esx-tools-***.i386.rpm

NOTE: The package name is likely to be different.

6. Configure the VMware Tools with the command:

Vmware-config-tools.pl

7. Enter number: 1

8. Start the VMware Tools with the command:

Vmware-toolbox &

VMware Tools on the summary row displays OK, if the tools are available (refer to the following figure 4.7.1):
image
Figure 4.7.1

Configuration

This section explains configuration for the Software and for the VMware server.

Software Configuration

The VMware server works in console mode and can’t be used for configuration. Use a remote agent with the same software version to configure the VMware server.

1. Start the manager interface on the remote software Agent in the Microsoft Windows operating system.

2. If the two Agents are in the same LAN, the VMware server client will be added to the topology automatically. Otherwise, add the Agent manually (select Monitor Remote Device from the Monitor menu). The software will auto search the UPS when the Agent starts for the first time after installation.

If the search fails:

▲ Select the VMware Server Agent from the tree view.

▲ Acting as the Administrator, select “Auto Search Device” from “System” menu. The UPS connected with VMware server appears in the LAN tree view.

3. Select Shutdown Settings from the Device menu. Set the battery backup time, and select the Begin Shutdown Immediately if Battery Low check box and the Run Command File before Shutdown check box (refer to figure 4.7.2).
image
Figure 4.7.2

VMware Server Configuration

All hardware elements must have an operational network configuration that allows them to communicate freely with each other. Software uses TCP and UDP for communication with UPS.

1. Confirm that the following UDP ports are opened on the ESX server Firewall:2198, 2199, 2200

2. Confirm that the following TCP ports are opened on the ESX server Firewall: 2099

For Example:

esxcfg-firewall -o 2198,udp,in,UPSMS

esxcfg-firewall -o 2099,tcp,in,UPSMS

3. If you want to disable the firewall permanently, enter the command: chkconfig iptables off

4.To disable the firewall temporarily, enter the command: service iptables stop

Please Wait!

Please wait... it will take a second!