Update VMware ESXi 5.x com vCLI

Como no post anterior, o VMware ESXi 5 também pode ser atualizado através do vCLI. Nesta versão alguns comandos mudaram, mas o conceito permanece o mesmo.

Para o ESXi 5.0 em diante a forma básica de aplicação de updates continua na mesma linha, por não estar utilizando o vCenter não temos a centralização na aplicação dos updates. Além disso, todas as máquinas virtuais hospedadas no servidor ainda precisam ser paradas para aplicar o update.

Para mim, a aplicação do update continua da mesma forma, primeiro temos que verificar a versão atual do VMware que estamos rodando. Na imagem abaixo (destacado em vermelho) você pode ver que estou com VMware ESXi 5.0.0, 768111. Isso quer dizer, ESXi versão 5.0 com build number  768111.

Update-VMware-5-01

Como disse no post anterior verifique o build number que você está rodando e aquele a qual você deseja atualizar. O VMware vai fazer a crítica se você tentar atualizar com uma versão anterior, mas você pode evitar o tempo perdido só cuidando o build number.

Isso se torna mais evidente quando atualizamos com patch bundles. Se você observar no site do VMware irá encontrar a lista de todos os updates disponíveis ordenados por tipo, assim ao fazer download de um bundle patch observe se o build number é maior do que aquele que você está rodando no seu ESXi.

O próximo passo é verificar o que está instalado ou já foi atualizado no seu ESXi. Diferentemente dos comandos para a versão 4.1, na versão 5.x usamos o comando esxcli.exe –server=xxx.xxx.xxx.xxx software vib list. Este comando retorna a lista de todos os componentes do VMware e as suas versões correntes, também retorna todos os updates aplicados. No meu caso o retorno foi o seguinte:

c:\Programas\VMware\Client\VMware-VCLI-5v1-x32\bin>esxcli.exe --server=192.168.1.10 software vib list
Enter username: root
Enter password:
Name                  Version                             Vendor  Acceptance Level  Install Date
--------------------  ----------------------------------  ------  ----------------  ------------
ata-pata-amd          0.3.10-3vmw.500.0.0.469512          VMware  VMwareCertified   2012-01-08
ata-pata-atiixp       0.4.6-3vmw.500.0.0.469512           VMware  VMwareCertified   2012-01-08
ata-pata-cmd64x       0.2.5-3vmw.500.0.0.469512           VMware  VMwareCertified   2012-01-08
ata-pata-hpt3x2n      0.3.4-3vmw.500.0.0.469512           VMware  VMwareCertified   2012-01-08
ata-pata-pdc2027x     1.0-3vmw.500.0.0.469512             VMware  VMwareCertified   2012-01-08
ata-pata-serverworks  0.4.3-3vmw.500.0.0.469512           VMware  VMwareCertified   2012-01-08
ata-pata-sil680       0.4.8-3vmw.500.0.0.469512           VMware  VMwareCertified   2012-01-08
ata-pata-via          0.3.3-2vmw.500.0.0.469512           VMware  VMwareCertified   2012-01-08
block-cciss           3.6.14-10vmw.500.0.0.469512         VMware  VMwareCertified   2012-01-08
ehci-ehci-hcd         1.0-3vmw.500.1.11.623860            VMware  VMwareCertified   2012-08-05
esx-base              5.0.0-1.18.768111                   VMware  VMwareCertified   2012-08-05
esx-tboot             5.0.0-0.0.469512                    VMware  VMwareCertified   2012-01-08
ima-qla4xxx           2.01.07-1vmw.500.0.0.469512         VMware  VMwareCertified   2012-01-08
ipmi-ipmi-devintf     39.1-4vmw.500.0.0.469512            VMware  VMwareCertified   2012-01-08
ipmi-ipmi-msghandler  39.1-4vmw.500.0.0.469512            VMware  VMwareCertified   2012-01-08
ipmi-ipmi-si-drv      39.1-4vmw.500.0.0.469512            VMware  VMwareCertified   2012-01-08
misc-cnic-register    1.1-1vmw.500.0.0.469512             VMware  VMwareCertified   2012-01-08
misc-drivers          5.0.0-1.18.768111                   VMware  VMwareCertified   2012-08-05
net-be2net            4.0.88.0-1vmw.500.0.7.515841        VMware  VMwareCertified   2012-08-05
net-bnx2              2.0.15g.v50.11-5vmw.500.0.0.469512  VMware  VMwareCertified   2012-01-08
net-bnx2x             1.61.15.v50.1-1vmw.500.0.0.469512   VMware  VMwareCertified   2012-01-08
net-cnic              1.10.2j.v50.7-2vmw.500.0.0.469512   VMware  VMwareCertified   2012-01-08
net-e1000             8.0.3.1-2vmw.500.1.18.768111        VMware  VMwareCertified   2012-08-05
net-e1000e            1.1.2-3vmw.500.1.11.623860          VMware  VMwareCertified   2012-08-05
net-enic              1.4.2.15a-1vmw.500.0.0.469512       VMware  VMwareCertified   2012-01-08
net-forcedeth         0.61-2vmw.500.0.0.469512            VMware  VMwareCertified   2012-01-08
net-igb               2.1.11.1-3vmw.500.0.0.469512        VMware  VMwareCertified   2012-01-08
net-ixgbe             2.0.84.8.2-10vmw.500.0.0.469512     VMware  VMwareCertified   2012-01-08
net-nx-nic            4.0.557-3vmw.500.1.11.623860        VMware  VMwareCertified   2012-08-05
net-r8168             8.013.00-3vmw.500.0.0.469512        VMware  VMwareCertified   2012-01-08
net-r8169             6.011.00-2vmw.500.0.0.469512        VMware  VMwareCertified   2012-01-08
net-s2io              2.1.4.13427-3vmw.500.0.0.469512     VMware  VMwareCertified   2012-01-08
net-sky2              1.20-2vmw.500.0.0.469512            VMware  VMwareCertified   2012-01-08
net-tg3               3.110h.v50.4-4vmw.500.0.0.469512    VMware  VMwareCertified   2012-01-08
ohci-usb-ohci         1.0-3vmw.500.0.0.469512             VMware  VMwareCertified   2012-01-08
sata-ahci             3.0-6vmw.500.1.11.623860            VMware  VMwareCertified   2012-08-05
sata-ata-piix         2.12-4vmw.500.1.11.623860           VMware  VMwareCertified   2012-08-05
sata-sata-nv          3.5-3vmw.500.0.0.469512             VMware  VMwareCertified   2012-01-08
sata-sata-promise     2.12-3vmw.500.0.0.469512            VMware  VMwareCertified   2012-01-08
sata-sata-sil         2.3-3vmw.500.0.0.469512             VMware  VMwareCertified   2012-01-08
sata-sata-svw         2.3-3vmw.500.0.0.469512             VMware  VMwareCertified   2012-01-08
scsi-aacraid          1.1.5.1-9vmw.500.1.11.623860        VMware  VMwareCertified   2012-08-05
scsi-adp94xx          1.0.8.12-6vmw.500.0.0.469512        VMware  VMwareCertified   2012-01-08
scsi-aic79xx          3.1-5vmw.500.0.0.469512             VMware  VMwareCertified   2012-01-08
scsi-bnx2i            1.9.1d.v50.1-3vmw.500.0.0.469512    VMware  VMwareCertified   2012-01-08
scsi-fnic             1.5.0.3-1vmw.500.0.0.469512         VMware  VMwareCertified   2012-01-08
scsi-hpsa             5.0.0-17vmw.500.0.0.469512          VMware  VMwareCertified   2012-01-08
scsi-ips              7.12.05-4vmw.500.0.0.469512         VMware  VMwareCertified   2012-01-08
scsi-lpfc820          8.2.2.1-18vmw.500.0.0.469512        VMware  VMwareCertified   2012-01-08
scsi-megaraid-mbox    2.20.5.1-6vmw.500.0.0.469512        VMware  VMwareCertified   2012-01-08
scsi-megaraid-sas     5.34-1vmw.500.1.11.623860           VMware  VMwareCertified   2012-08-05
scsi-megaraid2        2.00.4-9vmw.500.0.0.469512          VMware  VMwareCertified   2012-01-08
scsi-mpt2sas          06.00.00.00-6vmw.500.1.11.623860    VMware  VMwareCertified   2012-08-05
scsi-mptsas           4.23.01.00-5vmw.500.1.18.768111     VMware  VMwareCertified   2012-08-05
scsi-mptspi           4.23.01.00-5vmw.500.0.0.469512      VMware  VMwareCertified   2012-01-08
scsi-qla2xxx          901.k1.1-14vmw.500.0.0.469512       VMware  VMwareCertified   2012-01-08
scsi-qla4xxx          5.01.03.2-3vmw.500.0.0.469512       VMware  VMwareCertified   2012-01-08
uhci-usb-uhci         1.0-3vmw.500.0.0.469512             VMware  VMwareCertified   2012-01-08
tools-light           5.0.0-1.18.768111                   VMware  VMwareCertified   2012-08-05

c:\Programas\VMware\Client\VMware-VCLI-5v1-x32\bin>

Observe que o esx-base está rodando a versão 5.0.0-1.18.768111, que coincide com o reportado através do vSphere client. Também podemos encontrar a linha com esx-tboot em versão diferente da esx-base. Recomendo a leitura deste post que contêm informações importantes sobre a organização do VMware, a sua estrutura e como a aplicação de updates funciona.

Verificando o build number do update evitamos problemas, observe que o build number a ser atualizado é maior que o do servidor:

Update-VMware-5-02

Diferentemente do update do ESXi 4.1, na versão 5.1 o arquivo contendo o update pode ser lido pelo vCLI de diversas fontes. Na realidade para versão 5.x em diante o vCLI é só uma ponte para o ESXi, os comandos não são mais executados remotamente, mas sim enviados ao servidor. Assim o arquivo de update tem que estar disponível para o servidor e não mais para o computador remoto de onde iremos disparar o comando.

Com esta mudança precisamos deixar o arquivo em um datastore acessível pelo servidor a ser atualizado. Pode ser em um disco local do servidor ou em um Storage, desde que o servidor tenha acesso a ele diretamente. Segundo a documentação da VMware arquivo pode ser acessado pelo servidor através da internet, eu prefiro deixar ele acessível diretamente no servidor para evitar o gasto de banda (caso tenha que atualizar em mais um servidor).

Após identificar e fazer o download do update correto suba ele ao servidor (através do vSphere Client, NFS, SCP…). Para fazer através do vSphere Client basta ir na aba “Configuration”, selecionar a opção “Storage”, marcar Datastore desejado e clicar com o botão direito do mouse e selecionar “Browse Datastore” e depois fazer o “Upload”. A imagem abaixo procura demonstrar isso (marcações em vermelho).

Update-VMware-5-03

Neste post estou rodando os comandos a partir de um computador remoto, mas eles poderiam ter sido rodados diretamente do servidor. Com isso, alguns comandos precisam de comandos relativos do servidor, principalmente os relacionados ao caminho do datastore onde o arquivo com o update está. No meu caso o caminho é /vmfs/volumes/4e4fd1a4-334ba7cc-c9d0-b8ac6ffc84d2. Você pode encontrar o caminho do seu datastore através do vSphere Client, basta selecionar o datastore ver seus detalhes. Observe na imagem abaixo:

Update-VMware-5-04

Depois disso, podemos verificar o conteúdo update que será instalado. O comando esxcli.exe –server=xxx.xxx.xxx.xxx software sources vib list -d <caminho>/<patch> nos dá o seu conteúdo. Este comando mudou em relação ao da versão 4.1, aqui o comando faz um crítica do update com as versões presentes no servidor a ser atualizado (através da diretiva –server). Isso ocorre, pois como update é acumulativo ele tem todas as versões atualizadas e lançadas até agora. Assim algumas atualizações podem não ser necessárias.

Observe abaixo o retorno do comando executado no servidor que irei atualizar. Alguns já estão com o status de “Installed”, enquanto outros estão com “Update”.

c:\Programas\VMware\Client\VMware-VCLI-5v1-x32\bin>esxcli.exe --server=192.168.1.10 software sources vib list -d /vmfs/volumes/4e4fd1a4-334ba7cc-c9d0-b8ac6ffc84d2/Patchs/update-from-esxi5.0-5.0_update02.zip
Enter username: root
Enter password:
Name                  Version                             Vendor  Release DateAcceptance Level  Status
--------------------  ----------------------------------  ------  ----------------------------  ---------
net-ixgbe             2.0.84.8.2-10vmw.500.0.0.469512     VMware  2011-08-19VMwareCertified   Installed
net-nx-nic            4.0.557-3vmw.500.1.11.623860        VMware  2012-02-17VMwareCertified   Installed
scsi-rste             2.0.2.0088-1vmw.500.1.11.623860     VMware  2012-02-17VMwareCertified   New
misc-drivers          5.0.0-2.26.914586                   VMware  2012-11-18VMwareCertified   Update
ata-pata-atiixp       0.4.6-3vmw.500.0.0.469512           VMware  2011-08-19VMwareCertified   Installed
scsi-megaraid2        2.00.4-9vmw.500.0.0.469512          VMware  2011-08-19VMwareCertified   Installed
uhci-usb-uhci         1.0-3vmw.500.0.0.469512             VMware  2011-08-19VMwareCertified   Installed
net-r8168             8.013.00-3vmw.500.0.0.469512        VMware  2011-08-19VMwareCertified   Installed
ohci-usb-ohci         1.0-3vmw.500.0.0.469512             VMware  2011-08-19VMwareCertified   Installed
ipmi-ipmi-si-drv      39.1-4vmw.500.2.26.914586           VMware  2012-11-18VMwareCertified   Update
net-e1000             8.0.3.1-2vmw.500.1.18.768111        VMware  2012-06-29VMwareCertified   Installed
scsi-qla4xxx          5.01.03.2-3vmw.500.0.0.469512       VMware  2011-08-19VMwareCertified   Installed
ata-pata-sil680       0.4.8-3vmw.500.0.0.469512           VMware  2011-08-19VMwareCertified   Installed
scsi-mptspi           4.23.01.00-5vmw.500.0.0.469512      VMware  2011-08-19VMwareCertified   Installed
scsi-aic79xx          3.1-5vmw.500.0.0.469512             VMware  2011-08-19VMwareCertified   Installed
esx-tboot             5.0.0-2.26.914586                   VMware  2012-11-18VMwareCertified   Update
scsi-mpt2sas          06.00.00.00-6vmw.500.1.11.623860    VMware  2012-02-17VMwareCertified   Installed
net-bnx2              2.0.15g.v50.11-5vmw.500.0.0.469512  VMware  2011-08-19VMwareCertified   Installed
ata-pata-serverworks  0.4.3-3vmw.500.0.0.469512           VMware  2011-08-19VMwareCertified   Installed
net-s2io              2.1.4.13427-3vmw.500.0.0.469512     VMware  2011-08-19VMwareCertified   Installed
scsi-fnic             1.5.0.3-1vmw.500.0.0.469512         VMware  2011-08-19VMwareCertified   Installed
scsi-lpfc820          8.2.2.1-18vmw.500.0.0.469512        VMware  2011-08-19VMwareCertified   Installed
scsi-hpsa             5.0.0-17vmw.500.0.0.469512          VMware  2011-08-19VMwareCertified   Installed
scsi-aacraid          1.1.5.1-9vmw.500.1.11.623860        VMware  2012-02-17VMwareCertified   Installed
scsi-lpfc820          8.2.2.1-18vmw.500.2.26.914586       VMware  2012-11-18VMwareCertified   Update
net-igb               2.1.11.1-3vmw.500.0.0.469512        VMware  2011-08-19VMwareCertified   Installed
esx-base              5.0.0-2.26.914586                   VMware  2012-11-18VMwareCertified   Update
misc-drivers          5.0.0-1.22.821926                   VMware  2012-08-26VMwareCertified   Update
net-bnx2x             1.61.15.v50.1-2vmw.500.2.26.914586  VMware  2012-11-18VMwareCertified   Update
net-forcedeth         0.61-2vmw.500.0.0.469512            VMware  2011-08-19VMwareCertified   Installed
scsi-qla2xxx          901.k1.1-14vmw.500.0.0.469512       VMware  2011-08-19VMwareCertified   Installed
sata-sata-sil         2.3-3vmw.500.0.0.469512             VMware  2011-08-19VMwareCertified   Installed
net-tg3               3.123b.v50.1-1vmw.500.2.26.914586   VMware  2012-11-18VMwareCertified   Update
scsi-adp94xx          1.0.8.12-6vmw.500.0.0.469512        VMware  2011-08-19VMwareCertified   Installed
net-sky2              1.20-2vmw.500.0.0.469512            VMware  2011-08-19VMwareCertified   Installed
scsi-megaraid-mbox    2.20.5.1-6vmw.500.0.0.469512        VMware  2011-08-19VMwareCertified   Installed
tools-light           5.0.0-2.26.914586                   VMware  2012-11-18VMwareCertified   Update
net-igb               2.1.11.1-3vmw.500.2.26.914586       VMware  2012-11-18VMwareCertified   Update
ipmi-ipmi-msghandler  39.1-4vmw.500.0.0.469512            VMware  2011-08-19VMwareCertified   Installed
ata-pata-amd          0.3.10-3vmw.500.0.0.469512          VMware  2011-08-19VMwareCertified   Installed
ipmi-ipmi-devintf     39.1-4vmw.500.0.0.469512            VMware  2011-08-19VMwareCertified   Installed
net-e1000e            1.1.2-3vmw.500.1.11.623860          VMware  2012-02-17VMwareCertified   Installed
ipmi-ipmi-si-drv      39.1-4vmw.500.0.0.469512            VMware  2011-08-19VMwareCertified   Installed
scsi-megaraid-sas     5.34-1vmw.500.1.11.623860           VMware  2012-02-17VMwareCertified   Installed
sata-sata-promise     2.12-3vmw.500.0.0.469512            VMware  2011-08-19VMwareCertified   Installed
scsi-ips              7.12.05-4vmw.500.0.0.469512         VMware  2011-08-19VMwareCertified   Installed
net-be2net            4.0.88.0-1vmw.500.0.7.515841        VMware  2011-12-15VMwareCertified   Installed
ata-pata-cmd64x       0.2.5-3vmw.500.0.0.469512           VMware  2011-08-19VMwareCertified   Installed
sata-sata-svw         2.3-3vmw.500.0.0.469512             VMware  2011-08-19VMwareCertified   Installed
ata-pata-via          0.3.3-2vmw.500.0.0.469512           VMware  2011-08-19VMwareCertified   Installed
esx-tboot             5.0.0-0.0.469512                    VMware  2011-08-19VMwareCertified   Installed
ata-pata-pdc2027x     1.0-3vmw.500.0.0.469512             VMware  2011-08-19VMwareCertified   Installed
sata-sata-nv          3.5-3vmw.500.0.0.469512             VMware  2011-08-19VMwareCertified   Installed
misc-cnic-register    1.1-1vmw.500.0.0.469512             VMware  2011-08-19VMwareCertified   Installed
scsi-mptsas           4.23.01.00-5vmw.500.1.18.768111     VMware  2012-06-29VMwareCertified   Installed
sata-ata-piix         2.12-4vmw.500.1.11.623860           VMware  2012-02-17VMwareCertified   Installed
net-enic              1.4.2.15a-1vmw.500.0.0.469512       VMware  2011-08-19VMwareCertified   Installed
ehci-ehci-hcd         1.0-3vmw.500.1.11.623860            VMware  2012-02-17VMwareCertified   Installed
net-bnx2x             1.61.15.v50.1-1vmw.500.0.0.469512   VMware  2011-08-19VMwareCertified   Installed
ata-pata-hpt3x2n      0.3.4-3vmw.500.0.0.469512           VMware  2011-08-19VMwareCertified   Installed
block-cciss           3.6.14-10vmw.500.0.0.469512         VMware  2011-08-19VMwareCertified   Installed
sata-ahci             3.0-6vmw.500.1.11.623860            VMware  2012-02-17VMwareCertified   Installed
net-cnic              1.10.2j.v50.7-2vmw.500.0.0.469512   VMware  2011-08-19VMwareCertified   Installed
esx-base              5.0.0-1.25.912577                   VMware  2012-11-16VMwareCertified   Update
net-ixgbe             2.0.84.8.2-11vmw.500.2.26.914586    VMware  2012-11-18VMwareCertified   Update
ima-qla4xxx           2.01.07-1vmw.500.0.0.469512         VMware  2011-08-19VMwareCertified   Installed
tools-light           5.0.0-1.25.912577                   VMware  2012-11-16VMwareCertified   Update
net-tg3               3.110h.v50.4-4vmw.500.0.0.469512    VMware  2011-08-19VMwareCertified   Installed
scsi-bnx2i            1.9.1d.v50.1-3vmw.500.0.0.469512    VMware  2011-08-19VMwareCertified   Installed
net-r8169             6.011.00-2vmw.500.0.0.469512        VMware  2011-08-19VMwareCertified   Installed
net-e1000e            1.1.2-3vmw.500.2.26.914586          VMware  2012-11-18VMwareCertified   Update

c:\Programas\VMware\Client\VMware-VCLI-5v1-x32\bin>

Seguindo na instalação, temos que verificar se será necessário deixar o servidor ESXi em modo de manutenção. Para a versão 5.x do ESXi poucos updates necessitam deste modo, para verificar execute o comando a seguir esxcli.exe –server=xxx.xxx.xxx.xxx software sources vib get -d <caminho>/<patch>. No meu caso o retorno foi o seguinte (ele está resumido por ter mais de mil linhas):

c:\Programas\VMware\Client\VMware-VCLI-5v1-x32\bin>esxcli.exe --server=192.168.1.10 software sources vib get -d /vmfs/volumes/4e4fd1a4-334ba7cc-c9d0-b8ac6ffc84d2/Patchs/update-from-esxi5.0-5.0_update02.zip
Enter username: root
Enter password:
VMware_bootbank_net-ixgbe_2.0.84.8.2-10vmw.500.0.0.469512
   Name: net-ixgbe
   Version: 2.0.84.8.2-10vmw.500.0.0.469512
   Type: bootbank
   Vendor: VMware
   Acceptance Level: VMwareCertified
   Summary: ixgbe: net driver for VMware ESX
   Description: Intel Oplin 10GigE Network Driver
   Release Date: 2011-08-19
   Depends: vmkapi_2_0_0_0, com.vmware.driverAPI-9.2.0.0
   Conflicts:
   Replaces:
   Provides:
   Maintenance Mode Required: True
   Hardware Platforms Required:
   Live Install Allowed: False
   Live Remove Allowed: False
   Stateless Ready: True
   Overlay: False
   Tags: driver, module
   Payloads: net-ixgb

VMware_bootbank_net-nx-nic_4.0.557-3vmw.500.1.11.623860
   Name: net-nx-nic
   Version: 4.0.557-3vmw.500.1.11.623860
   Type: bootbank
   Vendor: VMware
   Acceptance Level: VMwareCertified
   Summary: Updates the ESX 5.0.0 net-nx-nic
   Description: For build information, see KB  http://kb.vmware.com/kb/2010822
   Release Date: 2012-02-17
   Depends: vmkapi_2_0_0_0, com.vmware.driverAPI-9.2.0.0
   Conflicts:
   Replaces:
   Provides: com.netxen.nx_nic-9.2.0.0
   Maintenance Mode Required: True
   Hardware Platforms Required:
   Live Install Allowed: False
   Live Remove Allowed: False
   Stateless Ready: True
   Overlay: False
   Tags: driver, module, category:bugfix, severity:critical
   Payloads: net-nx-n
...
...
VMware_bootbank_net-igb_2.1.11.1-3vmw.500.0.0.469512
   Name: net-igb
   Version: 2.1.11.1-3vmw.500.0.0.469512
   Type: bootbank
   Vendor: VMware
   Acceptance Level: VMwareCertified
   Summary: igb: net driver for VMware ESX
   Description: Intel(R) Gigabit Ethernet Network Driver
   Release Date: 2011-08-19
   Depends: vmkapi_2_0_0_0, com.vmware.driverAPI-9.2.0.0
   Conflicts:
   Replaces:
   Provides:
   Maintenance Mode Required: True
   Hardware Platforms Required:
   Live Install Allowed: False
   Live Remove Allowed: False
   Stateless Ready: True
   Overlay: False
   Tags: driver, module
   Payloads: net-igb
VMware_bootbank_esx-base_5.0.0-1.25.912577
   Name: esx-base
   Version: 5.0.0-1.25.912577
   Type: bootbank
   Vendor: VMware
   Acceptance Level: VMwareCertified
   Summary: Updates the ESX 5.0.0 esx-base
   Description: For build information, see KB  http://kb.vmware.com/kb/2033767
   Release Date: 2012-11-16
   Depends:
   Conflicts:
   Replaces:
   Provides: cim.CMPI = 1.0, cim.CMPI = 2.0, cim.DMTF.DSP1004 = 1.0.0-1.0, cim.DMTF.DSP1030 = 1.0.0-1.0, cim.DMTF.DSP1022 = 1.0.0-1.0, cim.DMTF.DSP1013 = 1.0.1-1.0, cim.DMTF.DSP1054 = 1.1.0-0.5, cim.DMTF.DSP1025 = 1.0.0-1.0, cim.SNIA.DSP1025.Job_Control = 1.1.0-0.5, cim.DMTF.DSP1075 = 1.0.0-0.5, cim.DMTF.DSP1011 = 1.0.2-1.0, cim.DMTF.DSP1027 = 1.0.1-1.0, cim.DMTF.DSP1015 = 1.0.1-1.0, cim.DMTF.DSP1033 = 1.0.0-1.0, cim.DMTF.DSP1010 = 1.0.0-1.0, cim.DMTF.DSP1009 = 1.0.0-1.0, cim.DMTF.DSP1023 = 1.0.0-1.0, cim.DMTF.DSP1026 = 1.0.0-1.0, jumpstart = 1, jumpstart = 2, esxcli = 1.0.0, hostprofile = 5.0.0, com.vmware.dvfilter-2.0.0.0, com.vmware.vds-2.0.0.0, uwglibc-2.5-34-1, uwglibc64-2.5-34-1, libvmkuser-5.0.0-1, uwvmkcall-5.0.0-1, vmkepsecapi_2.0.0.0, vmkapi_2_0_0_0, esximage = 1.0, esx-version = 5.0.0-1.25.912577
   Maintenance Mode Required: False
   Hardware Platforms Required:
   Live Install Allowed: False
   Live Remove Allowed: False
   Stateless Ready: True
   Overlay: False
   Tags: category:security, severity:security
   Payloads: BOOTIA32.EFI, BOOTx64.EFI, README, b, efiboot.img, esximage.zip, extlinux, isoinfo, isolinux.bin, k, mboot.c32, mbr.bin, mcopy, menu.c32, metadata.xml, osl.txt, precheck.py, prep.py, s, safeboot.c32, useropts, weaselin
VMware_bootbank_net-e1000e_1.1.2-3vmw.500.2.26.914586
   Name: net-e1000e
   Version: 1.1.2-3vmw.500.2.26.914586
   Type: bootbank
   Vendor: VMware
   Acceptance Level: VMwareCertified
   Summary: Updates the ESX 5.0.0 net-e1000e
   Description: For build information, see KB  http://kb.vmware.com/kb/2033761
   Release Date: 2012-11-18
   Depends: vmkapi_2_0_0_0, com.vmware.driverAPI-9.2.0.0
   Conflicts:
   Replaces:
   Provides:
   Maintenance Mode Required: True
   Hardware Platforms Required:
   Live Install Allowed: False
   Live Remove Allowed: False
   Stateless Ready: True
   Overlay: False
   Tags: driver, module, category:bugfix, severity:general
   Payloads: net-e100

c:\Programas\VMware\Client\VMware-VCLI-5v1-x32\bin>

Fazendo a crítica entre os dois comandos anteriores podemos observar que alguns módulos marcados como Update precisam do servidor em modo de manutenção. Por exemplo, o módulo net-igb está marcado como Update no primeiro comando e com Maintenance Mode Required: True no segundo. No post sobre o update do ESXi 4.1 eu demonstro em detalhes como fazer isso.

Já com o servidor em modo de manutenção podemos prosseguir com o update, para isso utiliza-se o comando esxcli.exe –server=xxx.xxx.xxx.xxx software vib update -d <caminho>/<patch>. Observe que em ambos os comandos (este e os anteriores) o <caminho> é relativo dentro do servidor e <patch> é o arquivo que foi feito o download. No meu caso o comando e seu resultado ficaram:

c:\Programas\VMware\Client\VMware-VCLI-5v1-x32\bin>esxcli.exe --server=192.168.1.10 software vib update -d /vmfs/volumes/4e4fd1a4-334ba7cc-c9d0-b8ac6ffc84d2/Patchs/update-from-esxi5.0-5.0_update02.zip
Enter username: root
Enter password:
Installation Result
   Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
   Reboot Required: true
   VIBs Installed: VMware_bootbank_esx-base_5.0.0-2.26.914586, VMware_bootbank_esx-tboot_5.0.0-2.26.914586, VMware_bootbank_ipmi-ipmi-si-drv_39.1-4vmw.500.2.26.914586, VMware_bootbank_misc-drivers_5.0.0-2.26.914586, VMware_bootbank_net-bnx2x_1.61.15.v50.1-2vmw.500.2.26.914586, VMware_bootbank_net-e1000e_1.1.2-3vmw.500.2.26.914586, VMware_bootbank_net-igb_2.1.11.1-3vmw.500.2.26.914586, VMware_bootbank_net-ixgbe_2.0.84.8.2-11vmw.500.2.26.914586, VMware_bootbank_net-tg3_3.123b.v50.1-1vmw.500.2.26.914586, VMware_bootbank_scsi-lpfc820_8.2.2.1-18vmw.500.2.26.914586, VMware_locker_tools-light_5.0.0-2.26.914586
   VIBs Removed: VMware_bootbank_esx-base_5.0.0-1.18.768111, VMware_bootbank_esx-tboot_5.0.0-0.0.469512, VMware_bootbank_ipmi-ipmi-si-drv_39.1-4vmw.500.0.0.469512, VMware_bootbank_misc-drivers_5.0.0-1.18.768111, VMware_bootbank_net-bnx2x_1.61.15.v50.1-1vmw.500.0.0.469512, VMware_bootbank_net-e1000e_1.1.2-3vmw.500.1.11.623860, VMware_bootbank_net-igb_2.1.11.1-3vmw.500.0.0.469512, VMware_bootbank_net-ixgbe_2.0.84.8.2-10vmw.500.0.0.469512, VMware_bootbank_net-tg3_3.110h.v50.4-4vmw.500.0.0.469512, VMware_bootbank_scsi-lpfc820_8.2.2.1-18vmw.500.0.0.469512, VMware_locker_tools-light_5.0.0-1.18.768111
   VIBs Skipped: VMware_bootbank_ata-pata-amd_0.3.10-3vmw.500.0.0.469512, VMware_bootbank_ata-pata-atiixp_0.4.6-3vmw.500.0.0.469512, VMware_bootbank_ata-pata-cmd64x_0.2.5-3vmw.500.0.0.469512, VMware_bootbank_ata-pata-hpt3x2n_0.3.4-3vmw.500.0.0.469512, VMware_bootbank_ata-pata-pdc2027x_1.0-3vmw.500.0.0.469512, VMware_bootbank_ata-pata-serverworks_0.4.3-3vmw.500.0.0.469512, VMware_bootbank_ata-pata-sil680_0.4.8-3vmw.500.0.0.469512, VMware_bootbank_ata-pata-via_0.3.3-2vmw.500.0.0.469512, VMware_bootbank_block-cciss_3.6.14-10vmw.500.0.0.469512, VMware_bootbank_ehci-ehci-hcd_1.0-3vmw.500.1.11.623860, VMware_bootbank_ima-qla4xxx_2.01.07-1vmw.500.0.0.469512, VMware_bootbank_ipmi-ipmi-devintf_39.1-4vmw.500.0.0.469512,VMware_bootbank_ipmi-ipmi-msghandler_39.1-4vmw.500.0.0.469512, VMware_bootbank_misc-cnic-register_1.1-1vmw.500.0.0.469512, VMware_bootbank_net-be2net_4.0.88.0-1vmw.500.0.7.515841, VMware_bootbank_net-bnx2_2.0.15g.v50.11-5vmw.500.0.0.469512, VMware_bootbank_net-cnic_1.10.2j.v50.7-2vmw.500.0.0.469512, VMware_bootbank_net-e1000_8.0.3.1-2vmw.500.1.18.768111, VMware_bootbank_net-enic_1.4.2.15a-1vmw.500.0.0.469512, VMware_bootbank_net-forcedeth_0.61-2vmw.500.0.0.469512, VMware_bootbank_net-nx-nic_4.0.557-3vmw.500.1.11.623860,VMware_bootbank_net-r8168_8.013.00-3vmw.500.0.0.469512, VMware_bootbank_net-r8169_6.011.00-2vmw.500.0.0.469512, VMware_bootbank_net-s2io_2.1.4.13427-3vmw.500.0.0.469512, VMware_bootbank_net-sky2_1.20-2vmw.500.0.0.469512, VMware_bootbank_ohci-usb-ohci_1.0-3vmw.500.0.0.469512, VMware_bootbank_sata-ahci_3.0-6vmw.500.1.11.623860,VMware_bootbank_sata-ata-piix_2.12-4vmw.500.1.11.623860, VMware_bootbank_sata-sata-nv_3.5-3vmw.500.0.0.469512, VMware_bootbank_sata-sata-promise_2.12-3vmw.500.0.0.469512,VMware_bootbank_sata-sata-sil_2.3-3vmw.500.0.0.469512, VMware_bootbank_sata-sata-svw_2.3-3vmw.500.0.0.469512,VMware_bootbank_scsi-aacraid_1.1.5.1-9vmw.500.1.11.623860, VMware_bootbank_scsi-adp94xx_1.0.8.12-6vmw.500.0.0.469512, VMware_bootbank_scsi-aic79xx_3.1-5vmw.500.0.0.469512, VMware_bootbank_scsi-bnx2i_1.9.1d.v50.1-3vmw.500.0.0.469512, VMware_bootbank_scsi-fnic_1.5.0.3-1vmw.500.0.0.469512, VMware_bootbank_scsi-hpsa_5.0.0-17vmw.500.0.0.469512, VMware_bootbank_scsi-ips_7.12.05-4vmw.500.0.0.469512, VMware_bootbank_scsi-megaraid-mbox_2.20.5.1-6vmw.500.0.0.469512, VMware_bootbank_scsi-megaraid-sas_5.34-1vmw.500.1.11.623860, VMware_bootbank_scsi-megaraid2_2.00.4-9vmw.500.0.0.469512, VMware_bootbank_scsi-mpt2sas_06.00.00.00-6vmw.500.1.11.623860, VMware_bootbank_scsi-mptsas_4.23.01.00-5vmw.500.1.18.768111,VMware_bootbank_scsi-mptspi_4.23.01.00-5vmw.500.0.0.469512, VMware_bootbank_scsi-qla2xxx_901.k1.1-14vmw.500.0.0.469512, VMware_bootbank_scsi-qla4xxx_5.01.03.2-3vmw.500.0.0.469512, VMware_bootbank_scsi-rste_2.0.2.0088-1vmw.500.1.11.623860, VMware_bootbank_uhci-usb-uhci_1.0-3vmw.500.0.0.469512

c:\Programas\VMware\Client\VMware-VCLI-5v1-x32\bin>

Observe acima que alguns módulos (VIBs) foram instalados, outros removidos e diversos ignorados (provavelmente por já estarem atualizados). Também observe o caminho utilizado, ele é relativo ao servidor e não ao computador de onde executei o comando.

Caso fosse desejado, você poderia fazer um dry run antes de aplicar o update. Com isso, você poderia testar o update e verificar se tudo iria ocorrer com sucesso antes de aplicar ele. Para isso, basta adicionar a opções –dry-run ao comando anterior, neste caso nada seria instalado.

Depois do reboot, observe que ao logar no ESXi com o vShpere Client já somos apresentados a versão atualizada:

Update-VMware-5-05

Por fim verifique as versões dos componentes do VMware com o comando abaixo e retire o ESXi do modo de manutenção.

c:\Programas\VMware\Client\VMware-VCLI-5v1-x32\bin>esxcli.exe --server=192.168.1.10 software vib list
Enter username: root
Enter password:
Name                  Version                             Vendor  Acceptance Level  Install Date
--------------------  ----------------------------------  ------  ----------------  ------------
ata-pata-amd          0.3.10-3vmw.500.0.0.469512          VMware  VMwareCertified   2012-01-08
ata-pata-atiixp       0.4.6-3vmw.500.0.0.469512           VMware  VMwareCertified   2012-01-08
ata-pata-cmd64x       0.2.5-3vmw.500.0.0.469512           VMware  VMwareCertified   2012-01-08
ata-pata-hpt3x2n      0.3.4-3vmw.500.0.0.469512           VMware  VMwareCertified   2012-01-08
ata-pata-pdc2027x     1.0-3vmw.500.0.0.469512             VMware  VMwareCertified   2012-01-08
ata-pata-serverworks  0.4.3-3vmw.500.0.0.469512           VMware  VMwareCertified   2012-01-08
ata-pata-sil680       0.4.8-3vmw.500.0.0.469512           VMware  VMwareCertified   2012-01-08
ata-pata-via          0.3.3-2vmw.500.0.0.469512           VMware  VMwareCertified   2012-01-08
block-cciss           3.6.14-10vmw.500.0.0.469512         VMware  VMwareCertified   2012-01-08
ehci-ehci-hcd         1.0-3vmw.500.1.11.623860            VMware  VMwareCertified   2012-08-05
esx-base              5.0.0-2.26.914586                   VMware  VMwareCertified   2013-06-30
esx-tboot             5.0.0-2.26.914586                   VMware  VMwareCertified   2013-06-30
ima-qla4xxx           2.01.07-1vmw.500.0.0.469512         VMware  VMwareCertified   2012-01-08
ipmi-ipmi-devintf     39.1-4vmw.500.0.0.469512            VMware  VMwareCertified   2012-01-08
ipmi-ipmi-msghandler  39.1-4vmw.500.0.0.469512            VMware  VMwareCertified   2012-01-08
ipmi-ipmi-si-drv      39.1-4vmw.500.2.26.914586           VMware  VMwareCertified   2013-06-30
misc-cnic-register    1.1-1vmw.500.0.0.469512             VMware  VMwareCertified   2012-01-08
misc-drivers          5.0.0-2.26.914586                   VMware  VMwareCertified   2013-06-30
net-be2net            4.0.88.0-1vmw.500.0.7.515841        VMware  VMwareCertified   2012-08-05
net-bnx2              2.0.15g.v50.11-5vmw.500.0.0.469512  VMware  VMwareCertified   2012-01-08
net-bnx2x             1.61.15.v50.1-2vmw.500.2.26.914586  VMware  VMwareCertified   2013-06-30
net-cnic              1.10.2j.v50.7-2vmw.500.0.0.469512   VMware  VMwareCertified   2012-01-08
net-e1000             8.0.3.1-2vmw.500.1.18.768111        VMware  VMwareCertified   2012-08-05
net-e1000e            1.1.2-3vmw.500.2.26.914586          VMware  VMwareCertified   2013-06-30
net-enic              1.4.2.15a-1vmw.500.0.0.469512       VMware  VMwareCertified   2012-01-08
net-forcedeth         0.61-2vmw.500.0.0.469512            VMware  VMwareCertified   2012-01-08
net-igb               2.1.11.1-3vmw.500.2.26.914586       VMware  VMwareCertified   2013-06-30
net-ixgbe             2.0.84.8.2-11vmw.500.2.26.914586    VMware  VMwareCertified   2013-06-30
net-nx-nic            4.0.557-3vmw.500.1.11.623860        VMware  VMwareCertified   2012-08-05
net-r8168             8.013.00-3vmw.500.0.0.469512        VMware  VMwareCertified   2012-01-08
net-r8169             6.011.00-2vmw.500.0.0.469512        VMware  VMwareCertified   2012-01-08
net-s2io              2.1.4.13427-3vmw.500.0.0.469512     VMware  VMwareCertified   2012-01-08
net-sky2              1.20-2vmw.500.0.0.469512            VMware  VMwareCertified   2012-01-08
net-tg3               3.123b.v50.1-1vmw.500.2.26.914586   VMware  VMwareCertified   2013-06-30
ohci-usb-ohci         1.0-3vmw.500.0.0.469512             VMware  VMwareCertified   2012-01-08
sata-ahci             3.0-6vmw.500.1.11.623860            VMware  VMwareCertified   2012-08-05
sata-ata-piix         2.12-4vmw.500.1.11.623860           VMware  VMwareCertified   2012-08-05
sata-sata-nv          3.5-3vmw.500.0.0.469512             VMware  VMwareCertified   2012-01-08
sata-sata-promise     2.12-3vmw.500.0.0.469512            VMware  VMwareCertified   2012-01-08
sata-sata-sil         2.3-3vmw.500.0.0.469512             VMware  VMwareCertified   2012-01-08
sata-sata-svw         2.3-3vmw.500.0.0.469512             VMware  VMwareCertified   2012-01-08
scsi-aacraid          1.1.5.1-9vmw.500.1.11.623860        VMware  VMwareCertified   2012-08-05
scsi-adp94xx          1.0.8.12-6vmw.500.0.0.469512        VMware  VMwareCertified   2012-01-08
scsi-aic79xx          3.1-5vmw.500.0.0.469512             VMware  VMwareCertified   2012-01-08
scsi-bnx2i            1.9.1d.v50.1-3vmw.500.0.0.469512    VMware  VMwareCertified   2012-01-08
scsi-fnic             1.5.0.3-1vmw.500.0.0.469512         VMware  VMwareCertified   2012-01-08
scsi-hpsa             5.0.0-17vmw.500.0.0.469512          VMware  VMwareCertified   2012-01-08
scsi-ips              7.12.05-4vmw.500.0.0.469512         VMware  VMwareCertified   2012-01-08
scsi-lpfc820          8.2.2.1-18vmw.500.2.26.914586       VMware  VMwareCertified   2013-06-30
scsi-megaraid-mbox    2.20.5.1-6vmw.500.0.0.469512        VMware  VMwareCertified   2012-01-08
scsi-megaraid-sas     5.34-1vmw.500.1.11.623860           VMware  VMwareCertified   2012-08-05
scsi-megaraid2        2.00.4-9vmw.500.0.0.469512          VMware  VMwareCertified   2012-01-08
scsi-mpt2sas          06.00.00.00-6vmw.500.1.11.623860    VMware  VMwareCertified   2012-08-05
scsi-mptsas           4.23.01.00-5vmw.500.1.18.768111     VMware  VMwareCertified   2012-08-05
scsi-mptspi           4.23.01.00-5vmw.500.0.0.469512      VMware  VMwareCertified   2012-01-08
scsi-qla2xxx          901.k1.1-14vmw.500.0.0.469512       VMware  VMwareCertified   2012-01-08
scsi-qla4xxx          5.01.03.2-3vmw.500.0.0.469512       VMware  VMwareCertified   2012-01-08
uhci-usb-uhci         1.0-3vmw.500.0.0.469512             VMware  VMwareCertified   2012-01-08
tools-light           5.0.0-2.26.914586                   VMware  VMwareCertified   2013-06-30

c:\Programas\VMware\Client\VMware-VCLI-5v1-x32\bin>

De forma resumida a atualização segue os passos:

  • Verifique a versão atual do VMware ESXi;
  • Verifique o que já foi instalado: esxcli.exe com as opções software vib list
  • Download do update necessário do site do VMware e upload dele ao servidor;
  • Modo de manutenção no VMware ESXi;
  • Aplicação do update: esxcli.exe com as opções software vib update;
  • Verifique o sucesso da instalação: esxcli.exe com as opções software vib list;
  • Sair do modo de manutenção do ESXi.

 Recomendo a litura deste link que apresenta a estrutura interna do VMware e como os updates afetam ela. Você também pode ler o KB do VMware sobre o update. E do manual do vCLI disponível aqui.

Leave a Reply

Your email address will not be published. Required fields are marked *