UserManual For VMwareESXi PDF
UserManual For VMwareESXi PDF
UserManual For VMwareESXi PDF
Installation and configuration for Winpower in the VMware ESXi (paid version) .................... 1
1 Overview................................................................................................................................. 2
2 Configuring for VMware ESXi ................................................................................................. 3
2.1 Installing and configuring the vMA ................................................................................. 3
2.2 Configuring VMs startup/shutdown automatically ......................................................... 3
2.3 Configuring the port ........................................................................................................ 5
3 Configuring for Winpower ...................................................................................................... 5
3.1 Winpower installation and start...................................................................................... 5
3.2 Winpower Communication Configuration ...................................................................... 5
3.2.1 USB Communication ................................................................................................. 5
3.2.2 RS232 Communication ............................................................................................. 9
3.3 Configuration for shutdown script ................................................................................ 12
4 Shutdown Sequence ............................................................................................................. 13
1 Overview
Shutdown Sequence
The full name for the vMA is vSphere Management Assistant, it is released by the VMware
company to manage the vSphere
The script shutdownESXi.sh is used to notify the local ESXi host and the remote ESXi hosts
to shut down.
If the script shutdownESXi.sh is executed on the general OS, the executed permission will be
refused
The Virtual Machine on the ESXi host are shut down automatically by the ESXi host with the
Allow virtual machines to start and stop automatically with the system function, they are
not shut down by the script shutdownESXi.sh
When runs the shutdownESXi.sh to notify the ESXi hosts to shut down, it needs to provide
the ESXi hosts username and password to pass through the verification.
Run the config.pl to save the ESXi hosts IP address and corresponding username and
password, the information is saved in the hostlist. Multi-ESXi hosts are supported.
The ESXi hosts will accept the shutdown notification from vMA with right password and take
effect to shut down
Start the VMware Client, select File > Deploy OVF Template, Click the browse button,
select the OVF document.
Start vMA, the default user name is vi-admin. Set the password for the first login.
Select Allow virtual machines to start and stop automatically with the system checkbox.
Move up the virtual machines to the Automatic Startup list
The virtual machines will start/stop when the host start/shutdown automatically.
Note: if the shutdown is selected in the Shutdown Action, make sure the VMware tools
are installed for each virtual machine.
Please refer to the official website for more VMware tools information.
If the OS is Windows, right click one of the VMs, click Guest -> Install/Upgrade VMware
Tools
After the VMware tools installation, the VMware tools status will be changed to OK from
the Summary
Open the UDP ports by the following command if the ports are disabled:
For example, open the UDP port 2199:
iptables -I INPUT -p udp --dport 2199 -j ACCEPT
iptables -I OUTPUT -p udp --dport 2199 -j ACCEPT
Power off the vMA, right click it, choose the option Upgrade Virtual Hardware, update
the Virtual Machine Version
Choose the vMA, add the USB device by the Summary->Edit setting->add->USB
device, make sure the UPS is connected.
Restart the ESXi host after adding the USB controller and USB device
Auto search the UPS via the remote Winpower manager on the Windows.
Choose the Winpower agent of the vMA under the LAN or WAN tree structure, Act as
Administrator, click the System->Auto Search Device. The UPS can be added under
the LAN or WAN after searching. (The localhost is the host name of the vMA, it is the
Winpower agent inside vMA)
Choose the Winpower agent of the vMA, Act as Administrator, open the Shutdown
Parameter dialog , and make sure the Run Command File before shutdown checkbox
is chose.
Power off the vMA, right click it, choose the option Upgrade Virtual Hardware
Power off the vMA ,Add the serial port by the Summary->Edit setting->add->Serial
Port->Use physical serial port, the serial port name is /dev/char/serial/uart0 as
default.
Choose the Winpower agent of the vMA, Act as Administrator, open the Shutdown
Parameter dialog, and make sure the Run Command File before shutdown checkbox is
chose
Note:
Winpower supports multi-hosts shutdown but the other ESXi hosts should be set refer to
section 2.2 Configuring VMs startup/shutdown automatically
The VMware host information will be saved in hostlist document.
Enter the command: cat hostlist, get the input hosts information
Note: The password will be encrypted.
4 Shutdown Sequence
After the correct configuration, when the UPS need to shut down the system, the VMware will
act as following sequence example, the guest OS will also shutdown properly.