Skip to content

Support attaching instances to a "physical" network that's using a bridge as parent #1735

@mweinelt

Description

@mweinelt

The host system provides a bridge interface that is connected to a physical interface.

When integrating that bridge via the physical nic type and passing the bridge interface as the parentI get the following error when starting the VM.

Failed to start device "eth-1": Failed to get PCI device info for "br-lan": open /sys/class/net/br-lan/device/uevent: no such file or directory

This is because the bridge does not have a device directory, but the code requires it for looking up PCIe information.

return nil, fmt.Errorf("Failed to get PCI device info for %q: %w", saveData["host_name"], err)

The documentation claims I can pass a bridge:

The physical network type connects to an existing physical network, which can be a network interface or a bridge, and serves as an uplink network for OVN.

https://linuxcontainers.org/incus/docs/main/reference/network_physical/

This issue is reproducible on incus 6.10.1.

Metadata

Metadata

Labels

EasyGood for new contributors

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions