In Scotti’s tutorial, he is referring to a bridged network on the host system. If you are running Debian 12, you can create your own bridged network easily enough. It will depend on whether you use the default networking provided by the Debian installation process, in which case there’s easy instructions online e.g. here - BridgeNetworkConnections - Debian Wiki
Or, if you use netplan, you can similarly follow the many tutorials online to create a bridge under a netplan config file (I mostly use netplan as I find it to be more stable). So I mostly just convert Debian12 networking to Netplan e.g. using this:
Either way, you need a bridge ON THE HOST (nothing to do with Incus).
E.g. here’s an excerpt from my /etc/netplan/… file for my bridge settings on my primary Debian 12 host (using netplan):
# /etc/netplan/50-netplan.yml
network:
ethernets:
enp98s0f0:
dhcp4: true
optional: true
bridges:
br0:
dhcp4: yes
optional: true
interfaces:
- enp98s0f0
routes:
- to: default
via: 10.231.25.1
nameservers:
addresses: [1.1.1.1,1.0.0.1]
parameters:
stp: false
forward-delay: 0
Device name above is your ethernet adapter name (yours could be “enp1s0” - mine’s a little…odd looking…as it’s an old 10G card - enp98s0f0). Netplan’s easy to use I think, but any networking methodology can get you a bridge - google is your friend.
The above netplan excerpt creates a bridge interface on my server. Once you have your equivalent bridge connectivity, you can then create an incus bridge profile and you reference your bridge name as the parent device. E.g. in my primary Debian 12 server, I call one of my bridges ‘br0’, and here’s my bridge profile to fire-up instances so they can get an IP address off the bridge:
andrew@Yoda:~$ incus profile show br0
config:
limits.cpu: "2"
limits.memory: 4GiB
snapshots.expiry: 2w
snapshots.schedule: '@daily'
description: Default LXD profile with BRIDGE network
devices:
eth0:
nictype: bridged
parent: br0
type: nic
root:
path: /
pool: default
type: disk
name: br0
used_by:
When I launch an instance:
incus launch images:debian/12 v1 --vm --profile br0
The instance fires up, and gets an IP via DHCP from the network bridge, via (in my case), 10.231.25.1, which connects me to my LAN (beacase br0 is a bridge to my main lan). I hope this makes sense?
V/R
Andrew