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.

131 questions
23
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
  • 8,938
  • 5
  • 29
  • 38
13
votes
1 answer

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
  • 145
  • 8
10
votes
2 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,466
  • 2
  • 14
  • 35
7
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…
6
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
  • 6,043
  • 8
  • 41
  • 93
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
  • 12,921
  • 42
  • 141
  • 247
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 S
  • 101
  • 1
  • 7
4
votes
0 answers

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
4
votes
1 answer

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
  • 510
  • 5
  • 15
3
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
  • 10,695
  • 8
  • 48
  • 87
3
votes
0 answers

LXD unprivileged container creation error? [LXD, Raspberry Pi3B]

I'm running Ubuntu MATE 16.04 (kernel version 4.4.38-v7+) on Raspberry Pi 3B. I'm experimenting on using LXD but being new to virtualization, I am stumped with creating an unprivileged container. These are the installation steps I followed: > sudo…
CH123
  • 251
  • 1
  • 4
  • 13
3
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…
3
votes
1 answer

Is LXD is used in production?

As I want to spin multiple Virtual machines, LXD seems to a valid choice But as docker, LXD seems to have less buzz around, Initial thoughts, I have used LXC to create start a test container, and installed the mongodb Database , atleast data in the…
forum.test17
  • 1,881
  • 4
  • 26
  • 54
3
votes
2 answers

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…
3
votes
2 answers

lxd (ubuntu 16.10) container mac address

I am running the latest Ubuntu (16.10) with LXD containers. Containers are configured with bridged networking, and they receive their own IP addresses from the DHCP server. I have configured them with the following: lxc profile device add default…
bytebybyte
  • 43
  • 1
  • 6
1
2 3
8 9