When performing an ESXi host upgrade or attempting to put a host into Maintenance Mode, the operation fails. The vCenter Server UI displays the following error for VMs residing on the host:
"Unable to access the virtual machine configuration"
"Unable to access file [DatastoreName] VMname/VMname.vmx"
This occurs specifically when Distributed Resource Scheduler (DRS) or a manual vMotion attempts to evacuate VMs to other hosts in the cluster.
VMware vSphere ESXi 8.x
The root cause is the use of local storage for virtual machines in a cluster where vMotion/DRS is required for host evacuation. Standard vMotion (compute-only) requires that the source and destination hosts have concurrent access to the VM's files. Since a local datastore is only accessible to the host it is physically installed in, other hosts in the cluster cannot access the configuration files, causing the migration and the upgrade precheck to fail.
To resolve this issue, the VMs must be moved to storage that is accessible by all hosts in the cluster or powered off during the maintenance window.
Right-click the affected Virtual Machine and select Migrate.
Select Change storage only or Change both compute and storage.
Select a Shared Datastore (e.g., vSAN, NFS, or VMFS via iSCSI/FC) that is mounted to all hosts in the cluster.
Complete the wizard and wait for the migration to finish.
Re-run the ESXi upgrade precheck.