Vmware: configure host profile to match with different physical hosts

Enterprise Plus licences adds host profiling as a way to keep hosts settings managed.

Since writing from scratch host profiles is hard, we use as reference one of our hosts.

Every time we have to changing a setting, for example a new portgroup:

  1. Configure new portgroup
  2. Test
  3. Update host profile and apply to other hosts in the cluster.

This works great as long as all our servers hardware are the same.

As our Emulex Hbas are not the same model, we are having this error:

 

vmware_host_profile_error_hba

Your host is missing 2 vmnic PCI devices required by the profile. Your host model may be different from the reference host

vmware_host_profile_error_hba

To avoid this issue, we have disabled two items in host profiles:

  • Device alias configuration
  • Storage configuration

vmware_host_profile_error_hba_002

More in Vmware Knowledge Base

Vmware: Instalación de parches de servidor

VMWare ESXi
VMWare ESXi

Instalación de parches con powershell

Es necesario descargar el parche en local, y descomprimirlo.

Connect-ViServer host1.myorg.org
$host | Install-VMHostPatch -LocalPath ESXi550-201502001/metadata.zip

Instalación de parches por ssh

Activar ssh vía cli

$host = Start-VMHostService -HostService ($_ | Get-VMHostService | Where { $_.Key -eq "TSM-SSH" } )

Vía ssh:

vim-cmd hostsvc/maintenance_mode_enter
esxcli software vib install -d "/var/tmp/ESXi550-201502001.zip"
esxcli software vib list
vim-cmd hostsvc/maintenance_mode_enter