From: "Rémi PAETA" <remi.paeta@comaite.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH qemu-server v2 0/2] fix #6490: network: bridge fdb entries on nic hotplug
Date: Thu, 29 Oct 2026 17:49:37 +0100 [thread overview]
Message-ID: <20261029164939.1278135-1-remi.paeta@comaite.com> (raw)
Thank you Gabriel and Fiona for your feedback on v1! This v2 takes it
into account.
On bridges with MAC learning disabled, hotplugged or re-plugged NICs
get no forwarding database entries, so the guest loses connectivity on
that NIC, and a later live migration fails when deleting the missing
entries.
v1: https://lore.proxmox.com/pve-devel/20261013095852.2586609-1-remi.paeta@comaite.com/
Changes since v1, following your feedback:
- new first patch: only warn when deleting the entries fails at the end
of a migration, instead of failing the migration after the VM state
was transferred
- only warn when adding the entries fails after plugging the NIC, so
the configuration stays in sync with the running VM
- only add the entries on hotplug if the NIC has a bridge, to not warn
about NICs without one
Note that with the synchronous config update of the web UI, such a
warning only ends up in the syslog, as there is no task log.
Tested on a Linux bridge with bridge-disable-mac-learning, with a
failure of 'bridge fdb' injected where noted:
- toggling the firewall of a NIC and hotplugging a NIC: entries added,
connectivity kept
- same with an injected failure: warning, configuration updated (v1
failed the update and left the new value pending, while the NIC was
already re-plugged)
- live migration with missing entries: warnings, migration succeeds,
entries re-added on the target on resume, no QEMU left on the source
(without the first patch, the VM stayed paused and locked on the
target)
Rémi PAETA (2):
network: do not fail on missing bridge fdb entries when migrating
fix #6490: network: add bridge fdb entries when hotplugging a nic
src/PVE/QemuServer.pm | 8 ++++++++
src/PVE/QemuServer/Network.pm | 3 ++-
2 files changed, 10 insertions(+), 1 deletion(-)
--
2.47.3
next reply other threads:[~2026-10-29 16:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-29 16:49 Rémi PAETA [this message]
2026-10-29 16:49 ` [PATCH qemu-server v2 1/2] network: do not fail on missing bridge fdb entries when migrating Rémi PAETA
2026-10-29 16:49 ` [PATCH qemu-server v2 2/2] fix #6490: network: add bridge fdb entries when hotplugging a nic Rémi PAETA
2026-10-30 13:32 ` [PATCH qemu-server v2 0/2] fix #6490: network: bridge fdb entries on nic hotplug Gabriel Goller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261029164939.1278135-1-remi.paeta@comaite.com \
--to=remi.paeta@comaite.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.