Failed to establish a new connection: [Errno 101] Network is unreachable

Getting “Failed to establish a new connection: [Errno 101] Network is unreachable” after the deployment when the machine is about to reboot. It would be great if anyone know the fix for this.


FYI

maasregiond@maasregiond:~ packer version Packer v1.12.0 maasregiond@maasregiond:~ cat /etc/os-release
PRETTY_NAME=“Ubuntu 22.04.5 LTS”
NAME=“Ubuntu”
VERSION_ID=“22.04”
VERSION=“22.04.5 LTS (Jammy Jellyfish)”

root@maasregiond:/home/maasregiond# uname -a
Linux maasregiond 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
root@maasregiond:/home/maasregiond# lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy
root@maasregiond:/home/maasregiond# apt policy packer
packer:
Installed: 1.12.0-1
Candidate: 1.12.0-1
Version table:
*** 1.12.0-1 500
500 https://apt.releases.hashicorp.com jammy/main amd64 Packages
100 /var/lib/dpkg/status
1.11.2-1 500
500 https://apt.releases.hashicorp.com jammy/main amd64 Packages
1.11.1-1 500
root@maasregiond:/home/maasregiond# packer version
Packer v1.12.0

Hi,
I’ll assume it’s a VMware installation.
Did you check your NIC is connected to the right portgroup? Is addressing static or DHCP? Is VMware-Tools installed? What NIC driver are you using?
Cheers,
Régis