SSH login taking 30sec to complete

I’ve installed CyberPanel on a fresh Ubuntu 20 LTS LXC in Proxmox 7.

High spec, 12 CPU, 16GB memory, 100GB SSD. So everything should be very fast. On other LXCs, everything is extremely fast.

When I connect to the LXC when CyberPanel is installed, login takes almost exactly 30 seconds to complete.

  • Connect via console or SSH
  • login as root
  • wait 30 seconds
  • command prompt appears

Does anyone know why this is? Configuration issue? Bug?

Contents of my lxc .conf:

arch: amd64
cores: 12
features: nesting=1
hostname: cp.domain.com
memory: 16384
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=B2:A8:BB:AA:F3:F0,ip=dhcp,type=veth
ostype: ubuntu
rootfs: local-zfs:subvol-102-disk-0,size=100G
swap: 16384
unprivileged: 1```

Thanks