-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LXD should have more tools in its path #31117
Comments
FWIW, the version of Ceph in nixpkgs is 1) ancient, and 2) marked as broken (due to a DOS vulnerability), so I wouldn't worry about it too much right now. I've been working on packaging a recent (12.2.x) release, but they changed to building using cmake and some outputs are silently not being built by my current expression... |
Ceph is the one I'm worried least about (since it's quite uncommon, as far as I can tell). |
I like supported backends option more than unconditional enabling. This option is not necessarily LXD specific. For instance, current docker module also does not include thin provisioning tools automatically AFAIK. |
When it will be completed? |
Probably never, I stopped using nix since it ended up not fitting into my workflow very well, with relatively common annoying (to me) side effects (of the immutability bit). |
zfsSupport was added as a flag in 7663de1 |
Ceph module was also revisted in the last release. It also has a test now. |
I had this problem with lvm storage backend and was able to work around it by putting the following line to /etc/nixos/configuration.nix:
The line above includes lvm tools in the PATH of lxd daemon. Until I did that I was getting the following error from
|
On the topic of tools which should be included in the lxd module, I think libnvidia-container should be included as well (related issue: #27999). I really should take a stab at it someday... |
I marked this as stale due to inactivity. → More info |
still not addressed. |
I believe
But that still fails with " |
I marked this as stale due to inactivity. → More info |
For some backends I would add additional options rather than just adding all of them. Qemu for example can be quite big (i.e. pulling in x11 and opengl dependencies). |
following the advice of @jkryl and hitting
|
Issue description
lxd supports multiple storage backends, but most of them are unusable.
Steps to reproduce
virtualisation.lxd.enable = true;
lxd
group (or perform the rest of the steps as root).lxd init
) that isn't marked on the list below.Technical details
Nix's lxd storage backend support matrix:
Note 1: LXD does somewhat work with the directory and btrfs backends, but any and all created containers insist that
/var/lib/lxc/rootfs
must exist.It doesn't actually get used. This is almost certainly a bug, and is mentioned in #25280.
Potential solutions
boot.supportedFilesystems
.Alternatively, we can have something ala
boot.supportedFilesystems
under, say,virtualisation.lxd.storageBackends
.I'm going to be busy working for a bit, and am still somewhat unfamiliar with the nix expression language, but I'll take a look at making a (basic, to be expanded upon) patch once I have time.
The text was updated successfully, but these errors were encountered: