Nixpkgs: Prebuilt lxc/lxd images of nixos?

Created on 19 Jul 2018  路  4Comments  路  Source: NixOS/nixpkgs

I can't find much information about running nixos in an lxc container. Are there any images for nixos such as those found on https://us.images.linuxcontainers.org/ ? Would it be difficult to create and list an image there?

stale

Most helpful comment

This issue is not stale for me, a new-comer to nixos. I use lxd images for development and prototyping, so it would be my primary platform for a nixos installation.

All 4 comments

Hi, #9735 has some discussion as to the past situation of LXC images of nixos.

Earlier this year I wrote this hacky walkthrough to get an LXC container of NixOS going in Proxmox.

As far as support? I don't know if the issues I had with nixos-rebuild were specific to how Proxmox works, but it works, if one were to disregard the warnings and errors on rebuild.

I don't know what differences Promox has with other LXC solutions, so I can't really say how much of it applies.

And as far as distributing images elsewhere, it's kind of a hassle, just as our iso images aren't distributed and mirrored at many locations. This is because every time the nixos release updates, a new iso image (and container images) have been built for that new update. It would need a constant feed of not-that-long-lived images.

I guess the most convenient way for now would be that hydra builds that image. This could be easily imported via lxc import.

Hello, I'm a bot and I thank you in the name of the community for opening this issue.

To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human.

The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it.

If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them.

Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel.

This issue is not stale for me, a new-comer to nixos. I use lxd images for development and prototyping, so it would be my primary platform for a nixos installation.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

edolstra picture edolstra  路  3Comments

ayyess picture ayyess  路  3Comments

sid-kap picture sid-kap  路  3Comments

ghost picture ghost  路  3Comments

domenkozar picture domenkozar  路  3Comments