Skip to content

libvirt: do not set MTU on public/direct interfaces#3404

Merged
ipspace merged 2 commits into
ipspace:devfrom
sdargoeuves:libvirt_mtu_uplink_interface
May 20, 2026
Merged

libvirt: do not set MTU on public/direct interfaces#3404
ipspace merged 2 commits into
ipspace:devfrom
sdargoeuves:libvirt_mtu_uplink_interface

Conversation

@sdargoeuves
Copy link
Copy Markdown
Collaborator

@sdargoeuves sdargoeuves commented May 16, 2026

related to this issue

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes libvirt.uplink failures on newer libvirt (notably Ubuntu 24.04/libvirt 10.x) by ensuring the generated Vagrant/libvirt configuration does not attempt to set MTU on public/direct (macvtap) interfaces, which libvirt rejects.

Changes:

  • Emit :libvirt__mtu => 9500 only for :private_network (bridge-based) links.
  • Stop emitting :libvirt__mtu for :public_network (direct/macvtap) links, avoiding the libvirt 10.x “setting MTU on interface type direct is not supported” error.

Copy link
Copy Markdown
Owner

@ipspace ipspace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! The only thing I changed: I moved the MTU setting into the existing "private network" block.

@ipspace ipspace merged commit 2c34afe into ipspace:dev May 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants