This is a very default profile.
$ incus profile show default
config: {}
description: Default Incus profile
devices:
eth0:
name: eth0
network: incusbr0
type: nic
root:
path: /
pool: default
type: disk
name: default
used_by:
Let’s create a VLAN (partial) profile. Initially the profile is empty. We are playing with the same eth0
name for the network interface. Which means that we do not need to carry the default
profile settings in the vlan profile.
$ incus profile create myvlan
$ incus profile device add macvlan eth0 nic nictype=macvlan parent=eno1 vlan=50
Finally,
$ incus launch images:debian/12 mycontainer --profile default --profile myvlan
(I have not tested these).
(macvlan documentation)