Lost connection to API after migration

Please follow the below template, it will help us to help you!

Expected Behaviour:

I migrated my pihole VM (Ubuntu 20.04.6 LTS) from VMware to Proxmox using their migration tool. Installed the guest tools and rebooted and noticed that it now shows "Lost Connection to API". Rebooted again for good measure, but no luck.

Actual Behaviour:

Getting "Lost Connection to API" after VM migration

Debug Token:

https://tricorder.pi-hole.net/i4s4PnC6/

I decided to delete the VM and install pihole in an LXC and restored the config.

Your log shows your network interface is called ens18, but your SetupVars.conf is using a different interface name:

PIHOLE_INTERFACE=ens160

This is causing a fatal error in FTL:

Apr 01 14:38:36 pihole2 pihole-FTL[716]: dnsmasq: unknown interface ens160
Apr 01 14:38:36 pihole2 dnsmasq[716]: unknown interface ens160
Apr 01 14:38:36 pihole2 dnsmasq[716]: FAILED to start up
   [2024-04-01 14:38:37.160 716M] ########## FTL terminated after 5m 52s  (code 1)! ##########
   [2024-04-01 14:38:37.160 716M] FATAL ERROR in dnsmasq core: unknown interface ens160

You need to change the interface, re-configuring Pi-hole.

EDIT:

I noticed you marked as solved while I was replying.