Closed schuelermine closed 2 months ago
Please share the relevant configuration, including subuid/subgid configurations. A basic Incus server works out of the box, so this is likely due to something you've configured.
I’m building from the flake at https://github.com/schuelermine/configuration on commit a7f16e1 with hostname nailbox-on-buggeryyacht. Incus-specific configuration is in https://github.com/schuelermine/configuration/blob/a7f16e1067bac44aa7e636b894f07d7ef093f939/nixosModules/configuration.nix on line 11, lines 44-57, and lines 133-173.
I set up this Incus install by enabling Incus in the NixOS configuration, then running lxd-to-incus
, and then disabling the LXD installation and copying my pressed from LXD to Incus, in the configuration.
Instances that I transferred with lxd-to-incus
are running fine. I can run programs in them, SSH into them, and move files to them.
Did you manually configure /etc/subuid or /etc/subgid? Either way, what's in those files?
No, not that I remember.
/etc/subuid
is
root:1000000:1000000000
anselmschueler:100000:65536
/etc/subgid
is
root:1000000:1000000000
anselmschueler:100000:65536
Does the error occur with privileged containers? This error type sounds like something related to your user namespace configuration.
The error does not occur with privileged containers.
I have an idea of what might be causing this: I’m running from a disk that was installed to from a different computer. I wiped /nix
and /etc
and re-installed with appropriate hardware configuration, but I reset stateVersion
thinking it’d be fine since I wiped /etc
. Maybe that’s related?
I don’t think the incus or lxd modules have any state version conditions and shouldn’t store anything in /etc.
Clearly some state is on your system or you have an incompatibility with something that has changed in Incus. I know there has been some changes to the user mapping stuff, but am not sure how to tell you to proceed troubleshooting.
You could try starting a support thread in https://discuss.linuxcontainers.org/
A restart of the service fixed it. I don’t know what the problem was.
I had a similar issue. My issue was resolved by removing virtualisation.lxd.enable = true
, since lxd adds it's own subuid space.
Describe the bug
Notify maintainers
@aanderse @adamcstephens @jnsgruk @megheaiulian @mkg20001
Metadata
"x86_64-linux"
Linux 6.10.2, NixOS, 24.11 (Vicuna), 24.11.20240731.9f918d6
yes
yes
nix-env (Nix) 2.18.5
"nixos"
/nix/store/7v6l2v247fmdgfpbs3w91mf6rinai4yk-source
Add a :+1: reaction to issues you find important.