I have setup two users with the incus group. I then used root to create a macvlan network in incus with enp1s0 as the parent. How can i make that nework available to the projects of those two users? I tried editing the projects but it never worked. Or is this not possible due to permissions?
Also as part of my troubeshooting i tired to incus project delete user-1001 and i tried to recreate the project by running incus as that user again but the user now appears to be broken always resulting in Error: Get "http://unix.socket/1.0?project=user-1001": read unix @->/var/lib/incus/unix.socket.user: read: connection reset by peer
You’d want a managed macvlan network in the default project (incus network list should show managed as YES), then you can add the network name to the restricted.networks.access config key on the project.
When i set my macvlannetwork under restricted.networks.access for the user project then i get an error message
Config parsing error: Conflict detected when changing “restricted.networks.access” in project “user-1003”: Invalid device “eth0” on profile “default” of project “user-1003”: Network not allowed in project
then as the user again i ran the command to create the instance
incus launch --network macvlannetwork images:alpine/edge alp1
Launching alp1
Error: Failed loading network "macvlannetwork": User does not have permission for project "default"
I’m pretty sure that this is something we’ve actually fixed since 6.0.2, the fix will be in 6.0.3.
I think if you create a profile which uses that network and then use --profile at launch time rather than --network, it should work around the API call that’s failing in your case.