I temporarily set up a PVE host on my home network and physically moved it to a different target network afterwards. Both networks are A.B.C.D/24 format but different IP addresses.
In the new network, I changed the static IP in
As a sidenote, I performed another similar migration earlier and services in the LXC containers were accessible only via LAN but not the internet and I never figured out why - while writing this post discovered that updating
So... 3 files in total -
In the new network, I changed the static IP in
/etc/hosts and the static IP and gateway in /etc/network/interfaces.- The machine is a single-NIC device whose interface name didn't change at all.
- LXC containers are all DHCP
apt update on the host not resolving any addresses. I found this thread, apparently /etc/resolv.conf needs to be updated as well, fixing this solved apt.As a sidenote, I performed another similar migration earlier and services in the LXC containers were accessible only via LAN but not the internet and I never figured out why - while writing this post discovered that updating
/etc/resolv.conf fixed networking in LXC containers as well.So... 3 files in total -
/etc/network/interfaces, /etc/hosts, and /etc/resolv.conf - anything else needs updating?