I used the official tutorial on migration from LXD. Link
On LXD I used the default project with my user being in the “lxd” group.
I forgot to add my user to the “incus” group before the migration.
The migration utility was invoked with sudo.
As a result the default project is now visible only to people in the “incus-admin” group.
Is there a way to give my user permissions to the default project or should I just migrate all containers and profiles to a new user project?
I suggest to have a look at my post, Migrating to Incus from LXD – Mi blog lah! which describes in single flow the process of migration from LXD to Incus. Any feedback is appreciated.
The lxd-to-incus utility should be invoked with sudo because it does extensive changes to the system that requires admin privileges.
If you run incus commands with sudo, it has the same effect as running with group incus-admin.
incus-admin is the equivalent to lxd, all Unix groups.
When your non-root account is only member of the incus group, they are restricted to a separate auto-generated project. The account with only incus group membership can only view their own instances; they cannot view/touch the instances that the incus-admin group have.
If you do not plan to rename the instance, you can omit the new_instance_name.
Let’s see an example.
$ incus project list
+-------------------+--------+----------+-----------------+-----------------+----------+---------------+--------------------------------------------+---------+
| NAME | IMAGES | PROFILES | STORAGE VOLUMES | STORAGE BUCKETS | NETWORKS | NETWORK ZONES | DESCRIPTION | USED BY |
+-------------------+--------+----------+-----------------+-----------------+----------+---------------+--------------------------------------------+---------+
| default (current) | YES | YES | YES | YES | YES | YES | Default Incus project | 64 |
+-------------------+--------+----------+-----------------+-----------------+----------+---------------+--------------------------------------------+---------+
| user-1001 | YES | YES | YES | YES | NO | YES | User restricted project for "user2" (1001) | 4 |
+-------------------+--------+----------+-----------------+-----------------+----------+---------------+--------------------------------------------+---------+
If mycontainer is in project default, then you can move it to the other (restricted) project with any of the following commands. They are all the equivalent because Incus can safely assume sane defaults.
Right, it’s the other way around. LXD never had a less privileged group, only the very scary full admin group. So that’s something we figured we’d fix from the start with Incus.