I am currently using LXC (without LXD) with Wireguard and am
considering whether to switch to Incus for instance management.
To include a Wireguard interface in an LXC container I create it in
the host network namespace and declare it as a 'physical' interface in
the container config (see [1] for how Wireguard and containers work
together). The creation is handled by an LXC hook script.
Having read the Incus documentation, I don't see how to do this when
using Incus to launch an instance -- specifically, how to create the
interface in the host netns just before Incus needs to move into the
container netns.
Can anyone suggest the/an official way of handling this? Pointers to
the 'right' documentation for this use case would be much appreciated.
John Hallam
[1]
https://www.wireguard.com/netns/