Proxmox LXC restores create containers with duplicate MAC addresses causing ARP flaps after backup imports
Environment
Proxmox VE 7.x cluster. Backups created with vzdump and restored to different nodes for quick recovery/testing. Network model is default LXC veth with MAC sometimes specified in config as 'hwaddr:'. Switching node and restore automation used in-house scripts to perform batch restores.
Symptoms
After performing multiple container restores, several containers intermittently lose network connectivity. Downstream switches report duplicate MAC address seen on two different switch ports. ARP tables on other hosts rapidly flip between two MAC-port mappings for a given IP and ping jitter spikes.
Observations
Inside affected LXC containers, ip link show reports identical MAC addresses (link/ether) for two different container IDs. The timestamp on the container config file indicates it was copied from backup without modification. Restoring the same backup to the same node sometimes reproduces duplicate MAC. Manually changing hwaddr in the container config and restarting networking fixes the container until next restore.
Already attempted
Manually edited the restored container's config to remove hwaddr and restarted the container — new MAC generated and conflict cleared. Re-ran a restore with an explicit new VMID and different target node but conflict still occurred occasionally. Examined Proxmox cluster logs; no explicit error and MAC allocation database shows expected entries.
Question
Why do restored LXC containers sometimes end up sharing identical MAC addresses, and how can the backup/restore process be changed to guarantee unique MACs without manual edits?
Verified community troubleshooting
No answers yet..
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags
- Virtualization45% match
Proxmox LXC restores create duplicate MAC addresses causing ARP flaps and intermittent container network loss
Open0 answers - Virtualization32% match
Duplicate MAC addresses after cross-cluster VM migration causing ARP flaps and intermittent VM network loss
Open0 answers - Linux24% match
Ubuntu 22.04 host suspend/resume breaks LXD container veth interfaces — containers lose external network
Open0 answers