Beruflich Dokumente
Kultur Dokumente
Eaton UPS: Download of VMware ESXi & Guests and Hosts Step By Step
NOTE: The Esxi should be unlocked
On VMware ESXI we need to install pre-defined Virtual machine
Because ESXI does not have Administrative console for hypervisor
A pre-defined Virtual machine called: vSphere Management Assistant (vMA)
Need to be downloaded from the Vmware Site, to The local drive of yours
For Example -> D:\ Vmware_VIMA_Vma
Download the vSphere Management Assistant 4.0.0 , see link below
http://www.vmware.com/support/developer/vima/
How to import it
Open the Vsphere, Click on File then -> Deploy OVF Template
Browse to the folder on your local disk where was downloaded, should be the OVF file
When finish will show on the inventory a guest machine -> vSphere Management Assistant
Power it on, and follow the instructions, vi-admin is a given user, then it asks a password
Then give IP into your LAN, can with DHCP or without Dhcp
For Root: sudo s then give the password for vi-admin
For installing Eaton Ups into vMA
Go to this link:
http://powerquality.eaton.com/pp/registration_app.asp
Now on the Upper left of the screen will see the Language and the OS to choose
Pick English for language and VMware for OS
Will see the first one: Intelligent Power Protector V.1.10rpm Software installer
X86_64 for Vmware pay version of ESXI 4.0 & 4.10 (Vsphere4 & 4.10)
Click on it, and then I agree then will download the file:
Ipp-linux-1.10.045-1.x86_64.rpm
Upload the package with Winscp software to the vMA guest machine, once is there
Putty to the vMa client
sudo s
Before installing the rpm check if Firewall ports are opened, if not see below, between lines
At the end, connect to Intelligent Power Protector using your web browser. by typing :
http://<@IP-or-name-of-vMA>:4679/ (for a HTTP access)
https://<@ IP-or-name-of-vMA>:4680/ (For a HTTPS access
Click Auto discover, (to discover the power source) if fails, do it manually by Address Scan, then write the
IP
Logon admin admin (the default password is admin) and click on Shutdown
You should be able to see under configuration, a Power source defined
Click on it then EDIT Shutdown configuration ,
Shutdown type: Script
Shutdown Script: /ups/<Name_of_script>.sh
Define the script on vMA write:
vi <Name_of_script>.sh
has inside the one row or more depending of the number of ESXi hosts needed to download:
ssh root@<IP_Of_ESXI_1> /sbin/shutdown.sh
ssh root@<IP_Of_ESXI_2> /sbin/shutdown.sh
ssh root@<IP_Of_ESXI_3> /sbin/shutdown.sh
where ESXI_1 is one ESXi host,
that means will run on each ESXI the command -> /sbin/shutdown.sh
but the Script is located on vMA guest machine under folder /ups/ in this case
The shutdown will download the ESXI host and guests VMs see the Pdf document to define download and
startup order of VMs guests on ESXI host (Also has the full documentation)
http://download.mgeops.com/install/linux/ipp/IPP_how_to_vmware_esxi_en_2.pdf
For avoiding asking password when the script runs, will define keys as the following: see between lines
-------------------------------------------------------------------------------------------------------------------------------------Generate Private & Public Keys to Logon on the ESXI from the vMA without Password
Create your sshkey (puttykeygen or ssh-keygen) on the client, on the vMa machine
Logon as root, and under root folder write: ssh-keygen
Will create a
/root/.ssh
and
is_rsa.pub
Repeat this
Place the keyfile (id_rsa.pub) from the client to the host (Each ESXi) , into the .ssh folder created
Goto the ESXi host .ssh folder run this command
for Every ESXi
chmod 0600 -R /.ssh
Every ESXi
on the ESXi
Repeat this
-------------------------------------------------------------------------------------------------------------------------------------important NOTE: Every folder (like /.ssh) and all folders added manually will be removed Automatically
by the Esxi, each time the Esxi reboots
To overcome this read the following:
At booting time, the script /etc/rc.local is executed. Furthermore its possible to modify this script and it still
survives the reboot.
1) Copy the /.shh folder to /vmfs/volumes/datastore1/
see command
cp r /.shh/ /vmfs/volumes/datastore1/
/etc/rc.local file
->
cp -r
which is also available for ESXi 5.1 except some details listed below :
SOFTWARE USED :
ESXi 5.1 downloaded from VMWare website (no need for a custom image with Dell R310). Be
careful ! If you run an ESXi 5.0U1, it can't work because there is a bug with this version : autostart/stop of VMs guests doesn't have any effect ! You'll need to patch or upgrade...
vSphere Management Assistant 5.1 Released 10 SEP 2012 -->
http://www.vmware.com/support/developer/vima/
Nouveau Intelligent Power Protector v1.26 Installateur logiciel rpm
x86_64 pour VM-Ware ESX 4.0 & version payante de VM-ware ESXi 4.0, 4.1 & 5.0
(vSphere 4.0, 4.1 & 5.0) --> http://pqsoftware.eaton.com/explore/fra/ipp/default_fr.htm?lang=fr
HARDWARE USED :
Dell PowerEdge R310
UPS EATON 5PX 1000Va