VM fails to power on with the below error:
"Module VMMon power on failed. Failed to start the virtual machine. Failed to power on VM. Could not power on virtual machine: Failure. Failed to create swap file"
ESXi 8.0
vSAN witness host is inacessible/down.
VM cannot be powered on without vSAN witness node as quorum cannot be created.
Missing witness host prevents vSAN object creation, including deploying new VMs and creating swap files...
In a 2-node or stretched vSAN cluster, the witness node acts as a critical tie-breaker for quorum.
Without it, the cluster cannot achieve a majority vote (>50%) to guarantee data consistency,
which prevents new VMs from powering on and can make existing VMs inaccessible if another failure occurs.
vSAN witness host has to be repaired or replaced by a working/healthy one in order to have quorum.
If the vSAN appliance is down completely and need a temporary solution, try enabling force provisioning on storage policy which will deploy VMs as RAID 0.
Steps for enabling force provisioning are in the below article.