Powering on virtual machine from esxcli

If it gets difficult to power on a virtual machine from the vSphere client, vim-cmd offers the possibility to perform this task after connecting on the ESXi host using ssh.

Here are a couple of useful vim-cmd commands:

List all the VMs on the ESXi host:
vim-cmd vmsvc/getallvms

Get VM status using its id:
vim-cmd vmsvc/power.getstate vm_id

Power on a VM using its id:
vim-cmd vmsvc/power.on vm_id

Sources:

https://kb.vmware.com/s/article/1038043

http://nigelhickey.com/power-vm-via-ssh

Lost connectivity to the device mpx.vmhba32:C0:T0:L0 backing the boot filesystem

usb_module_not_available_on_esxi_hp_hosts

This issue appeared on HP blade Proliant XL170r Gen9 running ESXi 6.0.0, 4192238.
Make sure that your blades have their firmwares updated to the latest version.
Have a look at iLO self-Test Results :

Before firmwares upgrade :
hpe_ilo_diagnostics_before_firmwares_upgrade

After firmwares upgrade :
hpe_ilo_diagnostics_after_firmwares_upgrade

Retrieve a ticket to register the Virtual SAN VASA Provider

If you get a message within your vSphere client “Retrieve a ticket to register the Virtual SAN VASA Provider” for each of your ESXi host, this is a bug that appeared in vCenter Server 6.0 Update 2.
This bug is known but harmless. No patch available to fix it for now.

More details in this KB :

VMWare KB2145308 : Retrieve a ticket to register the Virtual SAN VASA Provider

Deploying VMware tools with Puppet on Linux servers

There are two possible ways to install VMware tools on Linux servers. Either you install them through the VSphere client, either you can automate this task with Puppet. VMware has provided special repositories for all the Linux distribution flavors :  VMware Operating System Specific Packages (OSPs)

Here are the main steps to complete this installation :

->Download the public keys of the VMware OSPs repositories :

rpm –import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub

rpm –import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-DSA-KEY.pub

->Add a  new repo for YUM in /etc/yum.repos.d/ :

cat /etc/yum.repos.d/vmware-tools.repo
[vmware-tools]
name=VMware Tools
baseurl=http://packages.vmware.com/tools/esx/5.1/rhel6/x86_64
enabled=1
gpgcheck=1

->Fetch the metapackage vmware-tools-esx-nox and it will install all the required dependencies.

Here is now an example of a working Puppet manifest to deploy and install the VMware Tools on Linux servers running RHEL 6.4  :

cat vmwaretools.pp

class vmwaretools {
        exec { “Fetching RSA key”:
        command => “rpm –import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub”,
        path => “/sbin:/bin”
        }

        exec { “Fetching DSA key”:
        command => “rpm –import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-DSA-KEY.pub”,
        path => “/sbin:/bin”
        }

        exec { “Setting VMWare yum repo” :
        command => “echo -e \”[vmware-tools]\nname=VMware Tools\nbaseurl=http://packages.vmware.com/tools/esx/5.1/rhel6/x86_64\nenabled=1\ngpgcheck=1\” > /etc/yum.repos.d/vmware-tools.repo”,
        path => “/sbin:/bin”
        }

        package { “vmware-tools-esx-nox”:
          ensure => “installed”
        }
}

Do not forget to reload the puppetmaster on the server where it is located :

service puppetmaster reload

More information about VMware OSPs repositories : Read more

HP Proliant servers and RAM memory set up management

It may be very critical to make the most out of the maximum memory capacity (up to 1TB) in the Proliant servers. To deal with, as a reminder, please find below some useful links you should add in your bookmarks :

http://partsurfer.hp.com

HP Servers memtool

http://h18004.www1.hp.com/products/servers/options/memory-description.html

http://h20000.www2.hp.com/bc/docs/support/SupportManual/c01702744/c01702744.pdf

ftp://ftp.hp.com/pub/c-products/servers/options/Memory_Why_Buy_4AA0-4216ENW.pdf

ftp://ftp.hp.com/pub/c-products/servers/options/c00256943.pdf

http://h20000.www2.hp.com/bc/docs/support/SupportManual/c01702744/c01702744.pdf

ftp://ftp.hp.com/pub/c-products/servers/options/Memory-Config-Recommendations-for-Intel-Xeon-5500-Series-Servers-Rev1.pdf