Incus OpenVSwitch Bridging

Good morning,

I am trying to replicate with OpenVSwitch with what this user is doing here.

I am running into the issue below, if anyone could point me in a direction that I should look I would greatly appreciate it. Thank you.

Issue:
Creating a vSwitch, then creating a profile with vlan tag in the profile. However, when starting the VM I get the following error

Launching test
Error: Failed to start device "eth0": 1 ovsdb operations failed

Tagged Profile

config: {}
description: ""
devices:
  eth0:
    name: eth0
    nictype: bridged
    parent: br0
    type: nic
    vlan: "5"
  root:
    path: /
    pool: dev-pool
    size: 10GB
    type: disk
name: test
used_by:
- /1.0/instances/test

ovs-vsctl show

ab0cde48-d9bc-4c46-8856-3b379384d587
    Bridge br0
        Port enp42s0
            Interface enp42s0
        Port br0
            Interface br0
                type: internal
    ovs_version: "3.2.2"

OpenVSwitch Logs

2024-05-26T14:34:03.768Z|00072|bridge|INFO|bridge br0: added interface tap24685326 on port 18
2024-05-26T14:34:03.772Z|00073|bridge|INFO|bridge br0: deleted interface tap24685326 on port 18

You still have to create the fake vlan5 bridge if I remember correctly…ie: ovs-vsctl add-br vlan5 br0 5

Thank you that was exactly what was needed. However, took me some time to figure it out.

I just did it on one machine, I continued to get the error, pulling my hair out for a few weeks. Then realized it wasn’t putting the vm on the host that I had the fake bridges set up for.

Below is what made it work

ovs-vsctl add-br br7 br0 7