UserManual For VMware ESXi
UserManual For VMware ESXi
Installation and configuration for software in the VMware ESXi (paid version) ....................... 1
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
2 Configuring for VMware ESXi
Select “Allow virtual machines to start and stop automatically with the system” checkbox.
For each virtual machine, set delay startup for 10 seconds
For each virtual machine, set delay shutdown for 30 seconds
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
2.3 Configuring the port
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
For the USB pass through is available for the vmware esxi 4.1 (The Virtual Machine Version
should be 7 or later, otherwise update the VM version firstly)
For more information refer to the website:
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&ex
ternalId=1010675
The Virtual Machine Version should be 7 or later, otherwise update the VM version firstly:
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.
If the vMotion function is enable, select “Support vMotion while device is connected”
checkbox
Choose the Software agent of the vMA, Act as Administrator ,open the “Shutdown
Parameter” dialog , make sure the “Run Command File before shutdown” checkbox is
chose
3.2.2 RS232 Communication
For the serial port pass through is available for the vmware esxi 4.1 (The Virtual Machine
Version should be 7 or later, otherwise update the VM version firstly)
For more information refer to the website:
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&ex
ternalId=1010675
The Virtual Machine Version should be 7 or later, otherwise update the VM version firstly:
Power off the vMA, right click it. Choose the option “Upgrade Virtual Hardware”
Power off the vMA, right click it. 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.
Restart the vMA after adding the serial port
Auto search the UPS via the remote agent on the windows
Choose the Software agent of the vMA under the LAN or WAN tree structure (The
localhost is the host name of the vMA, it is the Software agent of vMA), Act as
Administrator ,open the “System”->”Com Port Setting”, add the serial port name. The
serial port name is “/dev/char/serial/uart0” as default.
Click the “System”->”Auto Search Device”, the UPS can be added under the localhost
after searching
Choose the software agent of the vMA, Act as Administrator ,Open the “Shutdown
Parameter” dialog, make sure the “Run Command File before shutdown” checkbox is
chose
3.2.3 USB-RS232 Communication
For the USB-RS232 pass through is available for the vmware esxi 4.1 (The Virtual Machine
Version should be 7 or later, otherwise update the VM version firstly)
For more information refer to the website:
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&ex
ternalId=1010675
The Virtual Machine Version should be 7 or later, otherwise update the VM version firstly:
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”, Choose “prolific USB-Serial Controller”, make sure the UPS is connected.
If the vMotion function is enable, select “Support vMotion while device is connected”
checkbox
Choose the software agent of the vMA, Act as Administrator ,open the “Shutdown
Parameter” dialog , make sure the “Run Command File before shutdown” checkbox is
chose
3.3 Configuration for shutdown script
Note:
Software supports multi-hosts shutdown,but the other ESXi hosts should be set refer to
section “2.2 Configuring VMs startup/shutdown automatically”
4 Shutdown Sequence