How to install LXD
on openSUSE

LXD snap

LXD

Canonical Verified account

System container manager and API

LXD is a system container manager

With LXD you can run hundreds of containers of a variety of Linux distributions, apply resource limits, pass in directories, USB devices or GPUs and setup any network and storage you want.

LXD containers are lightweight, secure by default and a great alternative to running Linux virtual machines.

Run any Linux distribution you want

Pre-made images are available for Ubuntu, Alpine Linux, ArchLinux, CentOS, Debian, Fedora, Gentoo, OpenSUSE and more.

A full list of available images can be found here: https://images.linuxcontainers.org

Can't find the distribution you want? It's easy to make your own images too, either using our distrobuilder tool or by assembling your own image tarball by hand.

Containers at scale

LXD is network aware and all interactions go through a simple REST API, making it possible to remotely interact with containers on remote systems, copying and moving them as you wish.

Want to go big? LXD also has built-in clustering support, letting you turn dozens of servers into one big LXD server.

Configuration options

Supported options for the LXD snap (snap set lxd KEY=VALUE):

  • criu.enable: Enable experimental live-migration support [default=false]
  • daemon.debug: Increases logging to debug level [default=false]
  • daemon.group: Group of users that can interact with LXD [default=lxd]
  • ceph.builtin: Use snap-specific ceph configuration [default=false]
  • openvswitch.builtin: Run a snap-specific OVS daemon [default=false]

Documentation: https://lxd.readthedocs.io

Details for LXD

License
Apache-2.0
Last updated
16 October 2019

Enable snaps on openSUSE and install LXD

Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.

Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.

Enable snapd

Snap can be installed from the command line on openSUSE Leap 42.3, Leap 15 and Tumbleweed.

You need first add the snappy repository from the terminal. Leap 15 users, for example, can do this with the following command:

Swap out openSUSE_Leap_15.0 for either openSUSE_Leap_42.3 or openSUSE_Tumbleweed if you’re using a different version of openSUSE.

With the repository added, import its GPG key:

Finally, upgrade the package cache to include the new snappy repository:

Snap can now be installed with the following:

You then need to either reboot, logout/login or source /etc/profile to have /snap/bin added to PATH. Additionally, enable and start both the snapd and the snapd.apparmor services with the following commands:

Tumbleweed users also need to run the following:

Install LXD

To install LXD, simply use the following command:

Other popular snaps…

See more...
See more in Featured

More things to do…

Get the snap store

Browse and find snaps from the convenience of your desktop using the snap store snap.

Learn more about snaps

Interested to find out more about snaps? Want to publish your own application? Visit snapcraft.io now.