I felt like sharing this as it kept me occupied for a while:
My intention was to create a container or VM simply attached to IncusOS only network interface (I used to run this on NixOS, simply having a NixOS configured “br0” I used to attach to).
Web-UI doesn’t seem to allow me to select my “eno1” - I couldn’t find a way to use this - maybe I just missed it or this could be something to enhance.
Command line (incus) I struggled quite a bit because I wanted to create a bridge using “eno1”. Eventually I learned from one of the videos that IncusOS default initialization creates all network devices as bridges, so “eno1” is already a bridge I can just attach to! Would be great to have this in the documentation!
Now after the fact this is surprisingly straight forward - but this is what I would have needed to get there in minutes:
$ incus admin os system network show
WARNING: The IncusOS API and configuration is subject to change
config:
interfaces:
- addresses:
- dhcp4
- slaac
hwaddr: de:ad:be:ef:00:01
lldp: false
name: eno1
required_for_online: "no"
state:
interfaces:
eno1:
addresses:
- 192.168.1.251
hwaddr: de:ad:be:ef:00:01
mtu: 1500
roles:
- management
- cluster
routes:
- to: default
via: 192.168.1.1
speed: "1000"
state: routable
stats:
rx_bytes: 5.023584e+06
rx_errors: 0
tx_bytes: 776760
tx_errors: 0
type: interface
$ incus profile show bridged
config: {}
description: Incus bridged profile
devices:
eth0:
name: eth0
nictype: bridged
parent: eno1
type: nic
root:
path: /
pool: local
type: disk
name: bridged