Questions tagged [lxd]

LXD is a container "hypervisor" and a new user experience for LXC (Linux Containers).

LXD is a container "hypervisor" and a new user experience for LXC.

Specifically, it's made of three components:

  • A system-wide daemon (lxd)
  • A command line client (lxc)
  • An OpenStack Nova plugin (nova-compute-lxd)
  • The daemon exports a REST API both locally and if enabled, over the network.

The command line tool is designed to be a very simple, yet very powerful tool to manage all your containers. It can handle connect to multiple container hosts and easily give you an overview of all the containers on your network, let you create some more where you want them and even move them around while they're running.

The OpenStack plugin then allows you to use your lxd hosts as compute nodes, running workloads on containers rather than virtual machines.

The LXD project was founded and is currently led by Canonical Ltd and Ubuntu with contributions from a range of other companies and individual contributors.

Features

Some of the biggest features of LXD are:

  • Secure by design (unprivileged containers, resource restrictions and much more)
  • Scalable (from containers on your laptop to thousand of compute nodes)
  • Intuitive (simple, clear API and crisp command line experience)
  • Image based (no more distribution templates, only good, trusted images)
  • Live migration

Relationship with LXC

LXD isn't a rewrite of LXC, in fact it's building on top of LXC to provide a new, better user experience. Under the scene, LXD uses LXC through liblxc and its Go binding to create and manage the containers.

It's basically an alternative to LXC's tools and distribution template system with the added features that come from being controllable over the network.

156 questions
25
votes
3 answers

How is "lxd" different from lxc/docker?

Questions How does lxd provide Full operating system functionality within containers, not just single processes? How is it different from lxc/docker + wrappers? Is it similar to a container that is launched with docker + supervisor/wrapper script…
resultsway
  • 12,299
  • 7
  • 36
  • 43
14
votes
2 answers

OS Container vs Application Container

So, the other day I was reading about OS/System Container vs Application Container here. There it is mentioned that Docker is an application container and Any container that runs an OS is a system container. Now, I am confused because even to run…
ImVikash_0_0
  • 174
  • 9
12
votes
4 answers

How to remove default LXD storage?

I am setting up LXD to play around with conjure-up. I would like to the storage to be mounted only on my RAID device, so it would be good to remove the default storage or replace/redirect it. I cannot remove the default storage because the default…
P H Kaznowski
  • 189
  • 1
  • 1
  • 12
10
votes
3 answers

Ansible dnf module enable Fedora Copr repository

I want to enable a Fedora Copr repository with Ansible. More specifically I want to convert this command: dnf copr enable ganto/lxd Using an Ansible command module I overcome this problem but break the task's idempotence (if run again, the role…
tvl
  • 3,868
  • 2
  • 16
  • 35
8
votes
2 answers

Error: Get http://unix.socket/1.0: dial unix /var/snap/lxd/common/lxd/unix.socket: connect: permission denied

I am getting the following error while connecting to LXD: Error: Get http://unix.socket/1.0: dial unix /var/snap/lxd/common/lxd/unix.socket: connect: permission denied
Vishrant
  • 15,456
  • 11
  • 71
  • 120
7
votes
1 answer

How is docker useful for non webapp applications (e.g. Python scripts)? What is the advantage of using it over LXC/LXD?

I am trying to understand how docker is useful outside of the webapp space. If for example someone wants to run a python script which downloads global weather data every 12 hours, why would they use docker? What is the advantage of using docker to…
Greg
  • 8,175
  • 16
  • 72
  • 125
5
votes
0 answers

How to understand the difference between LXD and VM and Docker?

When I am using Travis-CI, I need to choose between LXD and full VM: https://docs.travis-ci.com/user/reference/overview/. Although the linked page describes their features in specific usages, I would like to ask how conceptually LXD differs from…
zell
  • 9,830
  • 10
  • 62
  • 115
5
votes
1 answer

lxc-start:No container config specified

Installed the lxc container via lxc-create: sudo lxc-create -t download -n dos1 I chose debian buster arm64 and run it: sudo lxc-start -n dos1 -d Outputs an error: lxc-start: dos1: tools/lxc_start.c: main: 290 No container config specified What…
user8788726
5
votes
2 answers

permission denied on installing lxd via snap

I'm trying to install LXD on my Ubuntu via this tutorial https://docs.conjure-up.io/devel/en/user-manual#users-of-lxd in it says I have to follow these steps: sudo snap install lxd (no problem in installing) /snap/bin/lxd init (I get the below…
ksadjad
  • 593
  • 8
  • 20
5
votes
1 answer

Unable to bootstrap (cloud type: localhost) - Error when installing Kuberneters cluster locally with LXD/Conjure-up

Using Ubuntu 18.04. I am trying to install a kubernetes cluster on my local machine (localhost) using this guide (LXD + conjure-up kubernetes): https://kubernetes.io/docs/getting-started-guides/ubuntu/local/#before-you-begin When I run: conjure-up…
u123
  • 15,603
  • 58
  • 186
  • 303
5
votes
1 answer

How run docker on VDS (lxd/containers)

I have VDS like lxd/container (I see it df -h). Os is installed debian 7.11. Kernel: uname -r 4.13.0-19-generic I want to run mysql in docker which installed into VDS. I pull mysql: docker images mysql/mysql-server 5.5 5eb4590ee5eb 8…
Viktor Saienko
  • 101
  • 1
  • 7
5
votes
1 answer

Is there a way how to run LXD inside Docker?

Is there a way how to run LXD inside Docker? eg. On the host with ubuntu 16.04: docker run --rm -it --net host --privileged ubuntu bash In the container: apt update && apt install -y lxd iproute2 btrfs-tools screen bash-completion curl wget…
Karel Fiala
  • 51
  • 1
  • 2
4
votes
3 answers

What is the difference between lxc commands lxc start and lxc-start, etc?

Its not clear from the documentation what is the difference between lxc start and lxc-start and the --help provides different usages and switches. Tutorials use both variants but delving into the documentation a bit deeper, it seems that lxc-start…
LeanMan
  • 474
  • 1
  • 4
  • 18
4
votes
1 answer

can i create a LXC image from my own custom OS?

Am new to lxc. I want to create my own lxc containers from existing OSs(my own unix kernel compiled in different architecture). I am trying to use "lxc-create". Can anyone suggest me how to create my own containers and is it possible to create one…
4
votes
3 answers

LXD/LXC gid mapping

I have a directory on disk that is owned by share with gid of 1001. I want to add that directory as a device on one of the lxc containers, and have that group to carry over. I have tried using raw.idmap 'gid 1001 1001' but the lxc container won't…
Vitaly Babiy
  • 6,114
  • 4
  • 26
  • 24
1
2 3
10 11