Skip to content

Rework physical NIC device validation - #3143

Merged
bensmrs merged 3 commits into
lxc:mainfrom
stgraber:main
Apr 3, 2026
Merged

bensmrs merged 3 commits into
lxc:mainfrom
stgraber:main

Conversation

@stgraber

@stgraber stgraber commented Apr 3, 2026

Copy link
Copy Markdown
Member

This attempts to clarify what options of the physical NICs are valid when as that device type is getting a bit complex what with supporting:

  • Actual physical NIC passthrough to a VM (PCI VFIO, no configurability)
  • Network interface moved to a container (configurable but needs reverting)
  • VLAN interface on top of a physical NIC passed to a container (configurable)
  • Bridged NIC due to use of a "physical" type managed network which is backed by an unmanaged bridge (default on IncusOS)

This sorts out the conditions for the various properties to cover the first 3 cases and then sends validation through the bridged NIC validator for the 4th case.

@github-actions github-actions Bot added the Documentation Documentation needs updating label Apr 3, 2026
Comment thread internal/server/device/nic_physical.go Resolved
stgraber added 3 commits April 3, 2026 11:40
When dealing with a physical device that's treated as a bridged device
(parent is a type=physical bridge), also send device validation through
the bridge logic.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
@bensmrs
bensmrs enabled auto-merge April 3, 2026 15:44
@bensmrs
bensmrs merged commit 19f47c9 into lxc:main Apr 3, 2026
260 of 264 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Documentation needs updating

Development

Successfully merging this pull request may close these issues.

2 participants