Proxmox VE 9.2 VLAN Audit Checklist for VM Migration
Proxmox VE 9.2 VLAN audit with Datacenter Manager before migration finds missing bridges, VLAN tags, and firewall rules, preventing unreachable VMs on hosts.

On this page
If you are moving VMs to Proxmox VE 9.2, audit VLANs in Proxmox Datacenter Manager before you move anything. The inventory gives you one place to compare VLAN tags, bridge names, and firewall state across clusters, so you can find missing networks and missing allow rules before a migrated VM boots with no path. The outcome is a short gap list you can fix on the target cluster in one window.
Key Takeaways
- Inventory first: Export the Datacenter Manager inventory before touching the target node, then search for VLANs, bridge names, tags, and firewall state.
- VLAN gaps: A missing bridge or missing raw VLAN device is usually easier to spot than a wrong switch trunk, so catch it in the inventory.
- Firewall state: Check datacenter, node, and VM firewall settings separately; migration does not make node-level rules appear automatically.
- Smoke test: One test VM and one ping per VLAN is enough to prove the target path before bulk moves.
- Tradeoff: The audit adds about 20 minutes for a 12-node cluster, but it can prevent a 30-minute rollback when the first VM cannot reach its gateway.
Why Datacenter Manager inventories catch VLAN gaps early
A VLAN gap is rarely obvious in a single GUI screen. A VM can show a green running state, a bridge name, and a tag, while the target node lacks the raw VLAN device or the physical switch trunk. Datacenter Manager inventory helps because it lists the same fields for many nodes and VMs side by side. You are not hunting through one node at a time.
The useful part is the cross-cluster view. A single node can hide a pattern: VLAN 40 exists on three nodes but not the one you plan to migrate to. The inventory report surfaces that pattern immediately. It also helps when the move is not a clean in-place upgrade, but a relocation from an older cluster or another host pool.
When I prepare a move to Proxmox VE 9.2, I treat the inventory as a preflight report. It answers three questions: which VLANs exist, which VMs depend on them, and whether firewall is enabled where the rules live. If any answer changes between source and target, the migration needs a fix first.
Pair this view with a node-level review. If you still need a broader checklist, our Proxmox VE 9.2 VLAN audit is a good companion.
How to turn Datacenter Manager inventory into a VLAN gap list
Pull the inventory before you touch the target cluster
Export the inventory from Datacenter Manager to a file you can search. I usually keep it in /tmp with a dated name. The exact column names may vary, but the values I care about are bridge, VLAN tag, firewall enable, and node name.
grep -E 'vlan|tag|bridge|firewall' /tmp/datacenter-inventory.csv
If the export is JSON, use a similar search pattern:
grep -E 'vlan|tag|bridge|firewall' /tmp/datacenter-inventory.json
Do not skip the node name column. A VLAN may exist somewhere in the cluster but not on the target node. In Proxmox, a VM can only use a bridge or VLAN device that exists on the node where it runs. That is different from a shared storage path, where one storage definition can be visible from several nodes.
Map VLAN IDs to bridge ports and firewall zones
Once you have the list, group it by VLAN ID. For each VLAN, write down the bridge name, the physical port or VLAN device, and the VMs that use it. This is where naming mismatches show up.
An old node might have a VLAN 30 bridge defined like this:
auto eno1.30
iface eno1.30 inet manual
vlan-raw-device eno1
auto vmbr30
iface vmbr30 inet static
address 192.168.30.1/24
bridge-ports eno1.30
bridge-stp off
bridge-fd 0
A new node might only have vmbr0. If a migrated VM still points to vmbr30, it will not come up. If the VM uses a trunk bridge with a tag, the physical port must carry that tag.
net0: virtio,bridge=vmbr0,tag=30
Use the node network API to confirm what exists on the target node:
NODE=$(hostname)
pvesh get /nodes/$NODE/network --output-format json
Look for the bridge, the VLAN raw device, and the physical port. If the bridge exists but the VLAN device does not, you have a missing VLAN. If you use SDN, the same check applies: the VLAN zone or subnet must exist before the VM references it.
I like to reduce the result to a gap list like this:
VLAN 30: vmbr30 exists on pve1, missing on pve2, VMs 121 and 134
VLAN 40: trunk vmbr0 tag=40, pve2 port not trunk, VM 142
That list is short enough to fix in one window and specific enough to hand to a colleague.
How to validate firewall rules before migration
Check host firewall state
Firewall problems are trickier than missing VLANs because they often show up as SSH timeouts after the move. Proxmox firewall state can exist at the datacenter, node, and VM levels. Datacenter Manager can show firewall state where it tracks it, but you still need to confirm the target node before moving a management VM.
NODE=$(hostname)
pvesh get /nodes/$NODE/firewall/options --output-format json
Pay attention to the enable setting and the default policies. If firewall is enabled and the inbound default policy is drop, the node needs an allow rule for the migration source, the management VLAN, and your jump host.
NODE=$(hostname)
pvesh get /nodes/$NODE/firewall/rules --output-format json
Compare the rule count and the SSH rule on the source and target. If the source had a rule allowing SSH from the management VLAN and the target has none, add it before the first VM move.
Do not confuse Proxmox firewall with a host firewall you installed by hand. Proxmox firewall rules are stored in the cluster filesystem and applied by the Proxmox firewall service. If you also use rules from another firewall tool, the Proxmox view may not show them. Check the service state directly:
systemctl status pve-firewall --no-pager
Keep SSH hardening in mind: if SSH is bound to a management VLAN address, that VLAN must exist and be allowed. If fail2ban runs on the target host or a bastion, add the migration control plane to its ignore list. A short retry loop can look like a brute-force attempt.
grep -E 'AllowUsers|ListenAddress' /etc/ssh/sshd_config
Check VM firewall state and NIC tagging
VM firewall settings are stored with the cluster configuration for that VMID, but node and datacenter rules are separate. That is why a VM can have firewall enabled and still lose traffic if the target node firewall is off or misconfigured. If the move crosses cluster boundaries, copy the VM firewall file as well; the disk does not carry it.
NODE=$(hostname)
for VMID in $(qm list | awk 'NR>1 {print $1}'); do
pvesh get /nodes/$NODE/qemu/$VMID/firewall/options --output-format json
done
This is noisy, but it is fast. I usually scan for enabled firewall settings and then spot-check the rule sets. A VM firewall file often looks like this:
[OPTIONS]
enable: 1
[RULES]
IN ACCEPT -source 192.168.30.0/24 -dest 192.168.30.10 -dport 22
Also verify the NIC tag on each VM that belongs to a segmented VLAN:
for VMID in $(qm list | awk 'NR>1 {print $1}'); do
qm config $VMID | grep -E '^net[0-9]'
done
If the VM points to vmbr30 without a tag, it expects an access bridge. If it points to vmbr0 with tag 30, it expects a trunk port that carries VLAN 30. Those are different failure modes.
Should you trust inventory alone?
Inventory is a map, not a traffic test. It can show that a bridge exists, but it cannot prove the switch trunk is configured or that a firewall rule actually passes traffic.
| Source | What it proves | What it misses |
|---|---|---|
| Datacenter Manager inventory | VLAN IDs, bridge names, tags, and firewall state across clusters | Physical switch trunk and live traffic path |
| Node network config | The raw VLAN device and bridge exist on that host | Remote switch and upstream VLAN |
| VM config | Which bridge and tag the VM expects | Whether the bridge or trunk is healthy |
| Smoke test | The path works for one VM at one moment | Rare race conditions and long-term churn |
The honest tradeoff is time versus certainty. For a 12-node cluster, the export itself is often under 30 seconds, but the gap review may take 20 minutes. That is still cheaper than moving a VM, losing SSH, and rolling back because the management VLAN was never created on the target node.
The gotcha I see most often is the trunk bridge mismatch. The old cluster used vmbr0 as a trunk and the VM NIC had tag 120. The new cluster created vmbr120 as an access bridge and the operator removed the tag from the VM. The VM got link, but it landed in the wrong broadcast domain. The fix was not a VLAN creation; it was changing the NIC back to the trunk bridge and making sure the physical port carried VLAN 120.
net0: virtio,bridge=vmbr0,tag=120
A second gotcha is fail2ban on the target bastion. If your migration script retries SSH every few seconds, fail2ban can ban the control host before the move finishes. I keep the ban threshold high during migration or add the control host to the ignore list, then tighten it after the smoke test.
How to run a pre-migration VLAN smoke test
Before moving production VMs, pick one low-risk VM or a temporary test VM on the VLAN you are auditing. Keep the source VM powered on until the target copy has passed the test.
- Confirm the VLAN device and bridge on the target node.
ip -d link show type vlan
bridge vlan show
- Check the NIC configuration on the target node.
for VMID in $(qm list | awk 'NR>1 {print $1}'); do
qm config $VMID | grep -E '^net[0-9]'
done
- Start the test VM and ping the VLAN gateway from inside it.
ping -c 3 -W 2 192.168.30.1
- If the ping fails, check the Proxmox firewall log before touching the switch.
NODE=$(hostname)
pvesh get /nodes/$NODE/firewall/log --output-format json
- Only then move one production VM.
For the smoke test, use a test VM that has a static IP or at least a known gateway. A DHCP-only VLAN can hide two problems at once: no DHCP relay and no firewall allow. If the test VM gets an IP but cannot ping the gateway, check the VLAN interface first. If it gets no IP, check the physical trunk and DHCP relay second.
After the first VM moves, repeat the live migration drill before bulk moves. That gives you one more chance to catch a VLAN that was present in the inventory but absent in practice.
What I would do before the first VM move
I would not start the move until these are true:
- Every VLAN in the source inventory exists on the target node or SDN zone.
- Every VM NIC tag matches the target bridge type: access bridge or trunk port.
- Node firewall is either off with a reason, or enabled with an SSH allow rule from the jump host.
- Fail2ban or SSH hardening will not block the migration host during retries.
- One test VM has pinged its gateway from the target network.
If you are folding this into a larger upgrade, put it next to the Proxmox VE 9.1 to 9.2 upgrade checklist. The network audit is not a side quest; it is the part that decides whether the migrated VMs are reachable after they boot.
Conclusion
Audit VLANs in Datacenter Manager before moving VMs to Proxmox VE 9.2, then fix the target bridges, VLAN devices, and firewall rules before the first VM boots. The goal is not a perfect inventory; it is a short, verified gap list that prevents a migrated VM from coming up on the wrong network. Your next step is to export the inventory, run the VLAN and firewall checks above, and smoke-test one VLAN before bulk migration.


