Virtual machine configuration updates like hot adding CPU/Memory or disks, resource allocation changes may be lost after a power off or migration.
Virtual machine configuration is set to "Read Only".
Read only state for the configuration is set for brief period during VMotion of the virtual machine. This state is expected to be reset back once the migration is complete. In cases when there is a catastrophic failure during the migration, a partial execution of migration workflow may result in virtual machine configuration permanently ending up in read only state.
Confirming if the virtual machine configuration is set to read only.
vim-cmd vmsvc/getallvms
grep config.readOnly /vmfs/volume/<DATASTORE_NAME>/<VM_HOME_FOLDER>/<VM_NAME>.vmx
config.readOnly = "TRUE"
The configuration entry causing the read only state of the virtual machine need to be removed.
Caution: Powering off the virtual machine in this state will result in changes done to the configuration since the last power on to be lost. Make sure you have recoding of the all the changes. Additionally make sure you have a valid/usable backup of the virtual machine.
vim-cmd vmsvc/getallvms
cp /vmfs/volume/<DATASTORE_NAME>/<VM_HOME_FOLDER>/<VM_NAME>.vmx /vmfs/volume/<DATASTORE_NAME>/<VM_HOME_FOLDER>/<VM_NAME>.vmx.back
vi /vmfs/volume/<DATASTORE_NAME>/<VM_HOME_FOLDER>/<VM_NAME>.vmx
Please reach out to Broadcom Support if you need any assistance in running this workflow.