6

Installing LXD from APT installs it as a Snap package and while LXC programs are installed from a Debian package, running them tells me I need to install the LXD snap. Is there anyway to install LXC and LXD as a Debian package? Is LXD supposed to supersede LXC?

3
  • 1
    Snap is indeed a normal and fully supported method of installation. LXD debs are no longer built; Snap is the only supported method to install LXD. LXD is one easy way to use LXC containers. You can continue to use older LXC commands, or you can use the LXD layer to manage containers. You cannot easily do both simultaneously.
    – user535733
    Oct 12, 2020 at 0:00
  • @user535733 What do you I "cannot easily do both simultaneously"? I can't easily exclusively use one of the two if both are installed?
    – Melab
    Oct 12, 2020 at 3:18
  • You cannot easily use both the older lxc commands and the newer lxd commands on the same containers. It's possible, but causes headaches. Best practice is to pick one set and stick to it.
    – user535733
    Oct 12, 2020 at 3:32

1 Answer 1

4

LXD is free/open-source software and is developed at linuxcontainers.org.

The maintainers have switched to producing only snap packages for LXD, for the following versions: LXD 2.x, 3.x, 4.x. You can see all these versions when you run snap info lxd.

You can still use LXD 3.0.x as a deb package, which is supported by the LXD team until 2023. You get this version of LXD in Ubuntu 18.04. Note that LXD 3.0.x is feature-frozen (there are no new features but does get security updates).

Having said that, there is nothing that precludes a third-party (such as maintainers from a Linux distribution) to package LXD and distribute it in a different package format. You can get the freshest LXD in OpenSUSE, for example.

There used to be a difficulty in packaging LXD in Debian, because Debian has a policy to package separately each individual component packages (i.e. Go libraries in the case of LXD). And until some months ago, a few of those packages existed in a separate source tree (i.e. not a released upstream version). AFAIK, all these have been resolved now, therefore Debian may pick up again the task to package LXD. If you know an interested Debian Developer, you can ask them to look into this.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .