Debian – LXD 2.0 on Debian 8.4

containersdebianlxcvirtualization

I'm running Debian 8.4 and would like to set-up recently released LXD 2.0. Is this feasible, or should I stick with LXC? It seems all focus is on using LXD with Ubuntu.

Best Answer

If stuff is not in the repos of your desired distro but you still want to run applications/services on top of it, you are in for trouble (read: extra work to keep things running at all) sooner or later.

If things are different (because-you-know-what-you-are-doing(tm)), you will know wheter a technology is safe to use for you or not.

For now you should stick with Ubuntu if you really want LXD to use it as a frontend to LXC. (Because that's what LXD is, a frontend to LXC.)

If you just need containers, but still want to stick with debian, use LXC directly. Proxmox is based on Debian, and you have LXC support there, too, which might very likely be the best approach for you, considering the maturity of the proxmox project.

If you want LXD for unprivileged containers in debian, try this with LXC: http://www.linuxquestions.org/questions/linux-kernel-70/lxc-unprivileged-container-in-debian-jessie-cgroups-permissions-4175540174/