vSphere 6.5 to 7.0 – 2ème Partie – ESXi

Dans cette 2ème partie de vSphere 6.5 to 7.0 nous allons upgrade nos ESXi via le Lifecycle Manager, nouvelle fonctionnalité de vSphere 7.0. Lifecycle Manager remplace l’update manager que vous connaissez surement déjà.

L’avantage du Lifecycle Manager est la gestion au niveau du cluster de l’ensemble de vos images des hôtes ESXi afin d’être sur de disposer de la même pour l’ensemble de vos hosts. Il y a également d’autres nouveautés que je n’ai pas encore eu l’occasion de tester.

Plus d’informations disponible ici concernant le Lifecycle manager : https://blogs.vmware.com/vsphere/2020/04/vsphere-7-patching-lifecycle-management.html

Avant d’upgrade il est nécessaire de :

Une fois ces pré-requis bien validés, let’s go 🙂

Note : Dans mon LAB je n’ai pas réussi à upgrade avec la build 15843807, il y a un problème à l’installation qui serait lié au nested :

Load ing VMuare ESX i 
Load ing /vmfs/v01umes/5f0274af-b7335731-ceOf-OOOc2353ffcd/b .bOO 
Error load ing /vmfs/v01umes/5f0274af-b7335731-ceOf-OOOc2353ffcd/b .bOO 
Compressed MDS: 
Decompressed MDS: 
Fatal error: 15 (Not found)
Bug avec la build 15843807

J’ai donc attendu la build 16324942 qui corrige ce problème.

Pour commencer il faut se rendre dans l’interface d’administration du Lifecycle Manager.

Nous devons importer l’ISO de notre version d’ESXi 7.0 dans “Imported ISOs” – cliquer sur Import ISO

Lifecycle Manager I 
ACTIONS v 
Updates 
Imported ISOS 
Image Depot 
IMPORT ISO DELETE NEW BASELINE 
Product 
Baselines 
Settings 
Version

Selectionner l’iso puis cliquer sur Import

Import ISO 
You can import an ISO file or enter a URC 
Importing VMware-VMvisor-1nsta11er-7.o.o-15843807.x86 64.iso 
Step 1 of 2 - Uploading file to server: 9533 MB/350_3 MB - 0:09 minutes remaining 
CANCEL 
IMPORT
Upload de l’ISO en cours..
Import ISO 
You can import an ISO file or enter a URC 
Importing VMware-VMvisor-1nsta11er-7.o.o-15843807.x86 64.iso 
Step 2 of 2 - Adding to repository 
CANCEL 
IMPORT
Ajout de l’iso au repository du Lifecycle Manager

Une fois l’iso bien importée, nous allons créer une baseline, aller dans Baseline > New > Baseline

Lifecycle Manager I 
ACTIONS v 
Image Depot 
Updates 
Imported ISOS 
DELETE DUPLICATE 
Baselines 
NEW v 
EDIT 
Baseline 
Baseline Group itches (Predefined) 
O 
C) 
C) 
VMware ESXi 6.5 
Non-critical Host Patches (Predefined) 
Critical Host Patches (Predefined) 
Settings 
Patch 
Patch 
Patch 
Patch

Ajouter un nom et une description à votre baseline, nous laissons Upgrade puis Next.

Create Baseline 
Name and description 
1 Name and Description 
Enter a name and select the baseline type. 
2 select ISO 
Name 
3 Summary 
Description 
Content 
ESXi 7.0 - upgrade 
Baseline for ESXi 7.0 upgrade 
O Upgrade 
O Patch 
C) Extension 
CANCEL 
NEXT

Selectionner l’iso précédemment uploadée

Create Baseline 
Select ISO 
Name and Description 
Select an ISO release 
2 
3 
select ISO 
Summary 
O 
Version 
7.00 
ESXi-7.O_O-15843807- 
standard 
15843807 
Vendor 
VMware, 
Inc. 
EXPORT 
Acceptance 
Partner 
CANCEL 
BACK 
Creation Date 
03/16/2020, 
AM 
I Images 
NEXT

Le résumé de la baseline que l’on souhaite créer s’affiche, vérifier puis cliquer sur Finish.

Create Baseline 
Summary 
Name and Description 
Review your setting selections before finishing the wizard. 
2 
3 
select ISO 
Baseline name 
Summary 
Baseline description 
Baseline type 
ISO 
Name 
Product 
Version 
Vendor 
Acceptance level 
ESXi 7.0 - upgrade 
Baseline for ESXi 7.0 upgrade 
upgrade 
ESXi-7.o.o-15843807-standard 
VMware ESXi 7.00 
7.00 
VMware, Inc. 
Partner 
CANCEL 
BACK 
FINISH

Il faut ensuite se rendre sur notre cluster, puis dans Updates > Baseline. La baseline que l’on a crée n’est pas attachée au cluster, il faut donc l’attacher pour pouvoir lancer une vérification de conformité et corriger (upgrade)

@ vlab-vcsa01.vlab.com 
Vlab-dc 
v "lab-cluster' 
A vlab-esx01.vlab.com 
A vlab-esx02_vlab.com 
A vlab-esx03_vlab.com 
vlab-vcsa-7 
vlab-vcsa01 
viab-vR001 
Vm 
a. 
vSphere Client 
Menu v 
Search in all environments 
vlab-clusterl 
ACTIONS v 
Configure 
Summary 
Hosts 
Monitor 
Permissions 
Hosts 
VMS 
Datastores 
Networks 
Updates 
Baselines 
@ Managing a cluster with a single image helps you minimize errors and save time by enabling you to maintain all hosts in a cluster with one image. 
Baselines 
Image 
Cluster Settings 
VMware Tools 
VM Hardware 
3 Host(s) 
3 ESXi version 6.5.O 
Attached Baselines 
A 1 of 3 Hosts are non-compliant 
Hosts' Compliance 
O 
O 
have non-compliant baselines 
have unknown compliance 
have firmware update recommendations 
CHECK COMPLIANCE (checked 1 year ago) 
ATTACH v 
DETACH STAGE 
REMEDIATE 
Attached Baselines 
Critical Host Patches (Predefined) 
VMware ESXi 6.5 
Compliant 
Non-compliant 
Patch 
Patch 
SCHEDULE 
Type 
Predefined 
Custom

Cliquer sur Attache > Attach Baseline or Baseline Group

Attached Baselines 
ATTACH v 
DETACH STAGE REMEDIATE 
Attach Baseline or Baseline Group 
Create and Attach Baseline 
Create and Attach Baseline Group

Selectionner la baseline que nous avons crée précédemment

Attach I vlab-clusterl 
Name 
ESXi 70 - upgrade 
Host Security Patches (Predefined) 
VMware ESXi 6.5 
Non-critical Host Patches (Predefined) 
Critical Host Patches (Predefined) 
EXPORT 
Upgrade 
Patch 
Patch 
Patch 
Patch 
CANCEL 
5 Baselines 
ATTACH

Lancer un check compliance

On visualise que notre cluster n’est pas compliant avec notre baseline. Nous allons pouvoir “remediate” pour lancer l’upgrade des ESXi en 7.0

Si comme moi vos hosts sont en nested vous allez avoir ce message de pre-check du Lifecycle manager concernant vSAN vous empêchant d’aller plus loin.

Cliquer ensuite sur Remediate afin de lancer l’upgrade. Les ESXi seront mis en maintenance un par un afin de procéder à leur upgrade.

End User License Agreement 
To continue with remediation, read and accept the user license agreement 
END USER LICENSE AGREEMENT 
PLEASE NOTE THE OF THIS END USER LICENSE AGREEMENT SHALL GOVERN 
OUR USE OF THE SOFTWARE, REGARDLESS OF ANY MAY APPEAR DURING THE 
INSTALLATION OF THE SOFTWARE . 
IMPORTANT-READ CAREFULLY: BY DOVNLOADING, INSTALLING, OR USING THE SOFTWARE, 
OU (THE INDIVIDUAL OR LEGAL ENTITY) AGREE 20 BE BOUND BY THE OF THIS 
USER LICENSE AGREEMENT ("EULA" ) 
UN, YOU bWST NOT DOVNLOAD, INSTALL, 
R RETURN THE UNUSED SOFTWARE 20 THE 
IF YOU DO NOT AGREE 20 THE OF THIS 
OR USE THE SOFTWARE, YOU bWST DELETE 
VENDOR PROU WHICH YOU ACQUIRED 12 WITHIN 
HIRTY (30) DAYS REQUEST A REFUND OF THE LICENSE PEE, IF ANY, YOU 
PAID FOR THE SOFTWARE . 
accept the terms and license agreement. 
CANCEL
Remediate I vlab-esx01.vlab.com with ESXi 7.0 - Upgrade 
v 1 host will remediate 
Host Name 
vlab-esx01.vlab.com 
1 EXPORT 
6.50 
Patches 
O (0 staged) 
O (0 staged) 
> Install ISO VMware ESXi —7.0.O, Build 15843807 
Remediation Status 
Ready 
CLOSE DIALOG AND GO TO SETTINGS 
> Scheduling Options: Will remediate immediately 
Remediation settings 
VM Power state 
> Retry entering maintenance mode in case of failure 
PXE Booted Hosts 
VM Migration 
Disconnect removable media devices 
Quick Boot @ 
Check host health after installation 
Ignore warnings about unsupported hardware devices 
Do not change VM power state 
3 attempts every 5 minutes 
Disallow installation of additional software on PXE booted hosts 
Do not migrate powered off and suspended VMS to other hosts in the cluster 
CANCEL 
REMEDIATE
Remediate I vlab-esx02.vlab.com with ESXi 7.0 - Upgrade 
Host is ready to remediate 
1 host will remediate 
Host Name 
vlab-esx02_vIab.com 
1 EXPORT 
Version 
6.50 
Patches 
O (0 staged) 
Extensions 
O (0 staged) 
Install ISO VMware ESXi Release 7.0.O, Build 16324942 
Remediation Status 
CLOSE DIALOG AND GO TO SETTINGS 
) Scheduling Options: Will remediate immediately 
Remediation settings 
VM Power state 
) Retry entering maintenance mode in case of failure 
PXE Booted Hosts 
VM Migration 
Disconnect removable media devices 
Quick Boot @ 
Check host health after installation 
Do not change VM power state 
3 attempts every 5 minutes 
Disallow installation of additional software on PXE booted hosts 
Do not migrate powered off and suspended VMS to other hosts in the cluster 
CANCEL 
REMEDIATE

Une fois le remediate fini l’ESXi se reconnecte au vCenter, vous pouvez rencontrer une erreur sur la partie vSAN (lié à mon vlab/nested) :

Les ESXi sont bien en 7.0 :

vlab-esx02.vlab.com 
Summary Monitor Configure 
Hypervisor: 
Model: 
Processor Type: 
Logical Processors: 
NICs: 
Virtual Machines: 
State: 
uptime: 
ACTIONS v 
Permissions 
VMS 
Datastores 
Networks 
Updates 
VMware ESXi, 7.0_0, 16324942 
VMware Virtual Platform 
Intel(R) Core(TM) 7-6800K cpu @ 3_40GHz 
Maintenance Mode 
4 minutes 
Host is in a vSAN cluster but does not have vSAN service enabled
vm„are ESXi 7.0.O (VMKerne1 Release Build 16324342) 
VMuare, Inc. VMuare Virtual Platform

Vous aimerez aussi...