Restoring backups that include a DHCP server on VMware

Sharing so this may help others who encounter similar issues to me.

Situation was that I was running the DHCP server add on via Home Assistant but I wanted to build a new instance of Home Assistant by restoring a backup to a fresh VMWARE image. Trying to boot the VMware virtual machine would fail with the error message

[WARN] Home Assistant CLI is not running! Jump into emergency console…

The machine could ping as it wasn’t getting allocated an IP address. What worked for me was:

  1. Start with a fresh VM image
  2. Set the VM to use NAT for the network settings instead of Bridge mode
  3. Provided your PC has internet, the VM should now also have internet
  4. Boot the image and fingers crossed it should load after some time
  5. Once you’ve completed the backup restore change the network settings via the Home Assistant UI settings (Settings->System->Network) to a static IP with appropriate gateway (e.g. 192.168.0.1) and DNS (e.g. 1.1.1.1)
  6. Shutdown the VM
  7. Change the network settings back to Bridged mode. Also make sure the bridge is to your physical network device only.
  8. Boot up the VM and it should be back to normal

Hope this helps!