Migrate the ESXi OSData partition from an SD card to existing VMFS partitions without an install or upgrade situation.
ESXi 8.0.x
SSH into the ESXi host and navigate to a VMFS datastore subdirectory(root directory of datastore is not permitted), then run the following command:
vim-cmd hostsvc/advopt/update OSData.configuredLocation string /vmfs/volumes/<Datastore_name>/<unique_osdata_directory>
Note: datastore device must be a type which is also supported by OSDATA:
Detail steps:
mkdir /vmfs/volumes/<Datastore_name>/<unique_osdata_directory> vim-cmd hostsvc/advopt/update OSData.configuredLocation string /vmfs/volumes/<Datastore_name>/<unique_osdata_directory>vim-cmd hostsvc/advopt/view OSData.configuredLocation configstorecli config current get -c "esx" -g "storage" -k "osdata_location"Note: Change must be done via SSH into the host, changing this parameter via the GUI is not persistent across reboots
After rebooting the ESXi host, check the OSDATA partition path and verify that the value is " " using vim-cmd hostsvc/advopt/view OSData.configuredLocation
If not, please execute the step 3 from above, reboot and check again.