Specified network must be of type bridge

Hello,

I suddenly can’t boot multiple instances anymore. it shows the following error message

Failed start validation for device “eth0”: Specified network must be of type bridge

The instances are attached to a physical network “enp2s0” that I created with the incus-os tutorial “Directly attach instances to host network”. I used that network for weeks without problems

If I switch the network to the default bridge network “incusbr0”, I can boot the instance again. If I try to switch back to “enp2s0” I get the following error:

Invalid devices: Device validation failed for “eth0”: Specified network must be of type bridge

I would be happy for some help, thank you!

Apparently this is a bug: Invalid devices: Device validation failed for "eth-1": Specified network must be of type bridge · Issue #3155 · lxc/incus · GitHub
I should have looked on github before posting here, sorry.

Sadly I can’t get the temporary workaround working.
If I try:

devices:
  eth-1:
    nictype: bridged
    parent: enp2s0
    type: nic

I get the same error, when I try saving the configuration file.

@07359 Do you maybe have another NIC defined in a profile which also affects that instance?

I dont think so, the yaml only shows one configured

devices:
  eth-1:
    nictype: bridged
    parent: enp2s0
    type: nic
  eth-2:
    type: none
  eth0:
    type: none

Is that the incus config show --expanded output?

thank you for your help!

this is the whole output:

architecture: x86_64
config:
  limits.cpu: "2"
  limits.memory: 4GiB
  volatile.cloud-init.instance-id: badcdbec-458f-4b5a-bdb4-83aebfc96f35
  volatile.eth-1.hwaddr: 10:66:6a:88:06:c3
  volatile.last_state.power: STOPPED
  volatile.last_state.ready: "false"
  volatile.uuid: 7e048bfc-3f86-4d74-820e-d7de1da87f83
  volatile.uuid.generation: 808c6946-68a8-4f8a-8b8f-d670ff709c91
  volatile.vm.definition: pc-q35-10.2
  volatile.vm.rtc_adjustment: "0"
  volatile.vm.rtc_offset: "0"
  volatile.vsock_id: "2838192133"
devices:
  eth-1:
    nictype: bridged
    parent: enp2s
    type: nic
  eth-2:
    type: none
  eth0:
    type: none
  root:
    path: /
    pool: local
    type: disk
ephemeral: false
profiles:
- default
stateful: false
description: ""

the “parent: enp2s” is missing the “0” at the end, because I can’t save with the correct name “enp2s0” because then I get the error message

Update (incusos 202604080235, incus 202604080235) fixed the issue.
Thank you very much @stgraber!

1 Like