Updating ESXi image through Auto Deploy to the local M.2 disk via stateless caching (configured via the host profile). While remediating the host, the underlying disk enters read-only mode while the image/config schema loads.
Method Faulty Summary. Error: [Errno 30] Read-only file system."Manually deleted the partitions on the local disk, and then deploying the image via the host profile succeeded.
Observed the Read-Only error from ESXi host syslog/var/run/log/syslog.logYYYY-MM-DDTHH:MM:49Z In(14) hostprofile[2102492]: opID=166a738f-01-ec-86ce: Calling RemediateConfig for profile CachingProfileYYYY-MM-DDTHH:MM:49Z In(14) hostprofile[2102492]: opID=166a738f-01-ec-86ce: Post boot: stateless to disk <Local Disk Name>. With overwriteVmfs:True...YYYY-MM-DDTHH:MM:11Z In(14) HostProfileManager[2102492]: <Local Disk Name>: partitioning boot disk (keepDatastore=False, createDatastore=True)YYYY-MM-DDTHH:MM:11Z Er(11) hostprofile[2102492]: opID=166###8f-01-ec-86ce: **Exception while applying host config. Exception: [****Errno 30] Read-only file system**YYYY-MM-DDTHH:MM:11Z Wa(12)[+] hostprofile[2102492]: YYYY-MM-DDTHH:MM:11Z Wa(12) hostprofile[2102492]: opID=166###8f-01-ec-86ce: Adding missing key OSError.summaryYYYY-MM-DDTHH:MM:11Z Wa(12) hostprofile[2102492]: opID=166###8f-01-ec-86ce: excObj is of unknown type: <class 'OSError'>
VMware vSphere ESXi Host using AutoDeploy
The reported issue due to overwriteVMFS is set to True, which attempts to unmount the disk and recreate the VFFS.
The resolution to fix the reported issue to follow one of the options that is feasible and retry ESXi patching/upgrade using AutoDeploy to complete.
1. Turnoff/Disable overwriteVMFS on datastore
OR
2. Modify the firstdisk string to switch to other disks if the host has multiple disks.