GuíasGuides · Sector 4Sector 4

VMware: mantenimiento de hosts y máquinas virtuales en los clústeres de varias plantasVMware: host and virtual machine maintenance across several plants' clusters

La rutina de mantenimiento de los clústeres vSphere de cada sede: imágenes de vSphere Lifecycle Manager, modo mantenimiento con DRS, VMware Tools y versiones de hardware virtual, higiene de snapshots, capacidad de datastores, certificados, salud del hardware, un calendario coordinado con los turnos de planta y qué mirar cuando un host no entra en modo mantenimiento.The maintenance routine for each site's vSphere clusters: vSphere Lifecycle Manager images, maintenance mode with DRS, VMware Tools and virtual hardware versions, snapshot hygiene, datastore capacity, certificates, hardware health, a calendar coordinated with plant shifts and what to check when a host won't enter maintenance mode.

Qué vas a conseguir

Mantener al día los clústeres de cada planta y de la sede central sin parar la producción: parches de ESXi y firmware aplicados host a host, máquinas virtuales con sus herramientas al día, sin snapshots olvidados ni datastores llenos, y cada intervención encajada en los turnos de la planta. En una planta, una parada de un servidor de MES o de etiquetado para la línea; el mantenimiento se planifica con producción, no solo con IT.

Antes de empezar

  • Acceso a cada vCenter (uno central o uno por región) con un usuario nominal y permisos sobre Lifecycle Manager.
  • El inventario por planta: hosts, modelo y fabricante del servidor, versión de ESXi y qué VM son críticas para la línea.
  • La herramienta del fabricante para firmware y salud del hardware (por ejemplo, la integración de su consola de gestión con vCenter como hardware support manager).
  • La capacidad de cada clúster para funcionar con un host menos (N+1). Si no la tiene, el mantenimiento obliga a apagar máquinas.
  • El derecho a descargar parches: desde el cambio de licenciamiento de Broadcom, VMware vSphere se vende por suscripción por núcleo, y las descargas y actualizaciones dependen de tener el contrato activo para esos hosts. Compruébalo antes de planificar una ronda de parches.

1. vSphere Lifecycle Manager: imágenes, no líneas base

Con imágenes, cada clúster tiene una definición deseada: versión de ESXi, el vendor add-on del fabricante y, si está integrado, el firmware y drivers add-on. Lifecycle Manager compara cada host con esa imagen y lo corrige.

vSphere Client · Lifecycle Manager del clúster
CL-PLANTA-01UpdatesHostsImage
ESXi Version8.0 Update 3 (parche más reciente aprobado)
Vendor Addonel del fabricante del servidor, versión validada
Firmware and Drivers Addondesde el hardware support manager del fabricante
Compliance2 de 4 hosts no conformes
Check Compliance
Run Pre-check
Remediate All
  • Las líneas base (baselines) están en desuso desde vSphere 8 y no existen en vSphere 9: si un clúster sigue con ellas, planifica el paso a imagen en una ventana tranquila.
  • La misma imagen para todos los clústeres del mismo hardware, aunque estén en países distintos. Se aprueba primero en un clúster de pruebas o en el de la sede central y después se extiende planta a planta.
  • Run Pre-check antes de cada corrección: detecta VM que impedirán el modo mantenimiento, problemas de HA o de vSAN antes de abrir la ventana.

2. Modo mantenimiento con DRS

Con DRS en Fully Automated, poner un host en modo mantenimiento migra sus VM con vMotion a los demás hosts. Lifecycle Manager lo hace solo, host a host, durante la corrección.

  • Si el clúster usa vSAN, elige la opción de migración de datos: Ensure accessibility para un mantenimiento corto, Full data migration si el host se va a retirar.
  • El admission control de HA puede impedir entrar en mantenimiento si el clúster queda sin capacidad de reserva. No se desactiva para salir del paso sin entender qué deja de proteger.
  • Las VM con reglas must run on un host concreto (licencias ligadas al host, por ejemplo) no se mueven: hay que apagarlas o cambiar la regla con el responsable de la aplicación.

3. VMware Tools, hardware virtual y snapshots

PowerCLI · estado de las VM de la planta
Connect-VIServer vcenter01.contoso.localGet-Cluster CL-PLANTA-01 | Get-VM | Select-Object Name, HardwareVersion, @{N='Tools';E={$_.ExtensionData.Guest.ToolsVersionStatus2}} | Sort-Object ToolsName            HardwareVersion  Tools----            ---------------  -----srv-p1-mes01    vmx-19           guestToolsNeedUpgradesrv-p1-lbl01    vmx-21           guestToolsCurrentsrv-p1-fs01     vmx-21           guestToolsCurrentGet-Cluster CL-PLANTA-01 | Get-VM | Get-Snapshot | Where-Object { $_.Created -lt (Get-Date).AddDays(-3) } | Select-Object VM, Name, Created, @{N='SizeGB';E={[math]::Round($_.SizeGB,1)}}VM              Name                    Created              SizeGB--              ----                    -------              ------srv-p1-mes01    antes de actualizar MES 02/10/2026 21:14:05  148,3
  • VMware Tools: se actualizan con la ventana de parches del sistema operativo invitado, porque pueden requerir reinicio. Las VM de proveedores industriales, solo con la versión que el proveedor soporta.
  • Hardware virtual: subir la versión requiere apagar la VM. Se programa con Upgrade VM Compatibility en el siguiente reinicio del invitado, y no se sube por subir: solo si la versión de ESXi lo permite en todos los hosts a los que puede migrar la VM.
  • Snapshots: no son copias de seguridad. Un snapshot de semanas crece sin parar, ralentiza la VM y puede llenar el datastore. Regla: ninguno con más de 72 horas sin un ticket que lo justifique, y revisión semanal de los que dejan las copias de seguridad sin consolidar.

4. Datastores, certificados y salud del hardware

  • Capacidad: la alarma de uso de datastore por defecto avisa al 75 % y es crítica al 85 %. En una planta, un datastore lleno para todas las VM que escriben en él a la vez, línea incluida.
  • Certificados: en Administration › Certificates › Certificate Management revisa la caducidad del certificado de máquina de vCenter y de los certificados de confianza; los de los hosts, en Configure › System › Certificate de cada host. Un certificado caducado puede dejar a los hosts desconectados de vCenter.
  • Salud del hardware: Monitor › Hardware Health en cada host y la consola del fabricante para discos, fuentes y memoria. En las plantas, con polvo y temperatura, los ventiladores y las fuentes fallan antes que en un CPD.

5. El calendario coordinado con los turnos de planta

PlantaTurnosVentana de mantenimientoQué se hace
Planta 013 turnos, lunes a viernesSábado 08:00-14:00 hora localLifecycle Manager host a host, Tools
Planta 0224x7Parada programada mensual de la líneaCorrección, firmware, hardware virtual
Planta 032 turnosLaborables 22:00-05:00 hora localHost a host, sin tocar las VM de la línea
Sede centralOficinaMartes 20:00-23:00Clúster de pruebas primero, con una semana de antelación
  • Todas las horas en la hora local de la planta, y el cambio aprobado por el responsable de producción.
  • Las paradas largas (verano, Navidad, paradas técnicas) se reservan para lo que obliga a apagar: firmware de cabina, cambio de versión mayor de ESXi o de vCenter.
  • Una planta por ventana. Si algo sale mal, solo hay una planta afectada y el equipo puede centrarse en ella.

6. El ticket: "un host no entra en modo mantenimiento"

Sábado, 09:15, ventana de la Planta 01. La tarea Enter maintenance mode de esx-p1-03 lleva 20 minutos en el 2 %.

  1. Qué VM quedan en el host y por qué no se mueven: la pestaña de DRS del clúster y los avisos de la tarea suelen decirlo.
  2. Las causas típicas en planta:
PowerCLI · qué retiene a esx-p1-03
$vms = Get-VMHost esx-p1-03.contoso.local | Get-VM$vms | Get-CDDrive | Where-Object { $_.IsoPath -or $_.HostDevice } | Select-Object Parent, IsoPath, HostDeviceParent          IsoPath                                  HostDevice------          -------                                  ----------srv-p1-scada01  [ds-local-esx03] iso/drivers-hmi.iso$vms | Get-UsbDevice | Select-Object Parent, NameParent          Name------          ----srv-p1-lic01    USB 2.0 Licence Dongle
  • Una ISO en un datastore local del host: la VM no puede migrar porque los demás hosts no ven ese disco. Se desconecta la unidad de CD.
  • Un dispositivo USB conectado al host (llaves de licencia de software industrial, muy habituales): la VM no migra con vMotion. Se apaga con el responsable de la aplicación o se pasa la llave a un servidor USB en red.
  • Una regla de afinidad must run on, una VM con disco en un datastore local o DRS en modo manual.
  • Capacidad: el resto de hosts no puede absorber la carga sin violar el admission control de HA.
  1. No fuerces apagados sin hablar con la planta: la VM de licencias puede parar a todos los puestos de ingeniería.
  2. Cuando el host queda vacío, entra en mantenimiento y la corrección sigue. Anota la causa en el inventario para que el Pre-check de la próxima ventana la detecte antes.

Siguientes pasos

  • La guía de VMware vSphere y vCenter del Nivel 3 cubre el clúster, HA, DRS y vMotion desde el principio.
  • La de Veeam Backup explica por qué quedan snapshots tras una copia y cómo limpiarlos.
  • La de Nutanix del Nivel 4 sirve si alguna planta usa otra plataforma de virtualización.

¿Falta algo o en tu entorno es distinto? Escríbeme y lo corrijo.

What you'll get

Keeping each plant's and head office's clusters up to date without stopping production: ESXi patches and firmware applied host by host, virtual machines with their tools current, no forgotten snapshots or full datastores, and every intervention fitted around the plant's shifts. At a plant, an outage on an MES or labelling server stops the line; maintenance is planned with production, not just with IT.

Before you start

  • Access to each vCenter (one central or one per region) with a named user and permissions on Lifecycle Manager.
  • The inventory per plant: hosts, server make and model, ESXi version and which VMs are critical for the line.
  • The vendor's tool for firmware and hardware health (for example, its management console's integration with vCenter as a hardware support manager).
  • Each cluster's capacity to run with one host fewer (N+1). Without it, maintenance means powering machines off.
  • The entitlement to download patches: since Broadcom's licensing change, VMware vSphere is sold as a per-core subscription, and downloads and updates depend on having an active contract for those hosts. Check it before planning a patch round.

1. vSphere Lifecycle Manager: images, not baselines

With images, each cluster has a desired definition: ESXi version, the vendor's vendor add-on and, if integrated, the firmware and drivers add-on. Lifecycle Manager compares each host with that image and remediates it.

vSphere Client · Cluster Lifecycle Manager
CL-PLANT-01UpdatesHostsImage
ESXi Version8.0 Update 3 (latest approved patch)
Vendor Addonthe server vendor's, validated version
Firmware and Drivers Addonfrom the vendor's hardware support manager
Compliance2 of 4 hosts non-compliant
Check Compliance
Run Pre-check
Remediate All
  • Baselines have been deprecated since vSphere 8 and don't exist in vSphere 9: if a cluster still uses them, plan the move to an image in a quiet window.
  • The same image for every cluster on the same hardware, even in different countries. It is approved first on a test cluster or the head office one and then rolled out plant by plant.
  • Run Pre-check before each remediation: it finds VMs that will block maintenance mode, HA or vSAN issues before the window opens.

2. Maintenance mode with DRS

With DRS set to Fully Automated, putting a host into maintenance mode migrates its VMs with vMotion to the other hosts. Lifecycle Manager does it by itself, host by host, during remediation.

  • If the cluster uses vSAN, choose the data migration option: Ensure accessibility for a short maintenance, Full data migration if the host is being retired.
  • HA admission control can prevent entering maintenance if the cluster would be left without spare capacity. Don't disable it to get past the problem without understanding what it stops protecting.
  • VMs with must run on rules for a specific host (licences tied to the host, for example) don't move: they have to be powered off or the rule changed with the application owner.

3. VMware Tools, virtual hardware and snapshots

PowerCLI · state of the plant's VMs
Connect-VIServer vcenter01.contoso.localGet-Cluster CL-PLANT-01 | Get-VM | Select-Object Name, HardwareVersion, @{N='Tools';E={$_.ExtensionData.Guest.ToolsVersionStatus2}} | Sort-Object ToolsName            HardwareVersion  Tools----            ---------------  -----srv-p1-mes01    vmx-19           guestToolsNeedUpgradesrv-p1-lbl01    vmx-21           guestToolsCurrentsrv-p1-fs01     vmx-21           guestToolsCurrentGet-Cluster CL-PLANT-01 | Get-VM | Get-Snapshot | Where-Object { $_.Created -lt (Get-Date).AddDays(-3) } | Select-Object VM, Name, Created, @{N='SizeGB';E={[math]::Round($_.SizeGB,1)}}VM              Name                    Created              SizeGB--              ----                    -------              ------srv-p1-mes01    before MES upgrade      02/10/2026 21:14:05  148.3
  • VMware Tools: updated in the guest operating system's patch window, because they may need a reboot. VMs from industrial vendors, only with the version the vendor supports.
  • Virtual hardware: raising the version requires powering the VM off. Schedule it with Upgrade VM Compatibility at the next guest reboot, and don't upgrade for the sake of it: only if the ESXi version allows it on every host the VM can migrate to.
  • Snapshots: they are not backups. A weeks-old snapshot keeps growing, slows the VM and can fill the datastore. Rule: none older than 72 hours without a ticket that justifies it, and a weekly review of those left unconsolidated by backups.

4. Datastores, certificates and hardware health

  • Capacity: the default datastore usage alarm warns at 75 % and goes critical at 85 %. At a plant, a full datastore stops every VM writing to it at once, the line included.
  • Certificates: in Administration › Certificates › Certificate Management check the expiry of the vCenter machine certificate and the trusted certificates; the hosts' ones in each host's Configure › System › Certificate. An expired certificate can leave hosts disconnected from vCenter.
  • Hardware health: Monitor › Hardware Health on each host and the vendor's console for disks, power supplies and memory. At plants, with dust and heat, fans and power supplies fail sooner than in a data centre.

5. The calendar coordinated with plant shifts

PlantShiftsMaintenance windowWhat is done
Plant 013 shifts, Monday to FridaySaturday 08:00-14:00 local timeLifecycle Manager host by host, Tools
Plant 0224x7Monthly planned line stoppageRemediation, firmware, virtual hardware
Plant 032 shiftsWeekdays 22:00-05:00 local timeHost by host, without touching the line's VMs
Head officeOfficeTuesday 20:00-23:00Test cluster first, a week ahead
  • All times in the plant's local time, and the change approved by the production manager.
  • Long shutdowns (summer, Christmas, technical stoppages) are kept for whatever forces a power-off: storage array firmware, a major ESXi or vCenter version change.
  • One plant per window. If something goes wrong, only one plant is affected and the team can focus on it.

6. The ticket: "a host won't enter maintenance mode"

Saturday, 09:15, Plant 01's window. The Enter maintenance mode task for esx-p1-03 has been at 2 % for 20 minutes.

  1. Which VMs remain on the host and why they won't move: the cluster's DRS tab and the task's warnings usually say.
  2. The typical causes at a plant:
PowerCLI · what is holding esx-p1-03
$vms = Get-VMHost esx-p1-03.contoso.local | Get-VM$vms | Get-CDDrive | Where-Object { $_.IsoPath -or $_.HostDevice } | Select-Object Parent, IsoPath, HostDeviceParent          IsoPath                                  HostDevice------          -------                                  ----------srv-p1-scada01  [ds-local-esx03] iso/drivers-hmi.iso$vms | Get-UsbDevice | Select-Object Parent, NameParent          Name------          ----srv-p1-lic01    USB 2.0 Licence Dongle
  • An ISO on a host-local datastore: the VM can't migrate because the other hosts can't see that disk. Disconnect the CD drive.
  • A USB device connected to the host (licence dongles for industrial software are very common): the VM won't migrate with vMotion. Power it off with the application owner or move the dongle to a network USB server.
  • A must run on affinity rule, a VM with a disk on a local datastore, or DRS in manual mode.
  • Capacity: the remaining hosts can't absorb the load without violating HA admission control.
  1. Don't force power-offs without talking to the plant: the licence VM may stop every engineering workstation.
  2. Once the host is empty, it enters maintenance and remediation continues. Record the cause in the inventory so next window's Pre-check catches it earlier.

Next steps

  • The Level 3 VMware vSphere and vCenter guide covers the cluster, HA, DRS and vMotion from the start.
  • The Veeam Backup guide explains why snapshots are left behind after a backup and how to clean them up.
  • The Level 4 Nutanix guide helps if any plant runs on another virtualisation platform.

Is something missing, or different in your environment? Get in touch and I'll fix it.

Tech Career Lab · newsletter

¿Te ha servido? Cada dos semanas envío una idea práctica para perfiles IT: LinkedIn, proyectos, networking y procesos de selección.Found this useful? Every two weeks I send one practical idea for IT professionals: LinkedIn, projects, networking and hiring processes.

Apúntate y llévate las 33 ideasSign up and get the 33 ideas →