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
1
vote
1 answer

Missing Network function on LXD?

I am trying to configure the networking options for my lxd container but when I try the following command: lxc network create testbr0 I get the following result: root@Server02:/var/lib# lxc network create testbr0 Usage: lxc [options] Checking…
user1858059
  • 103
  • 1
  • 11
1
vote
1 answer

ES / JVM Memory Locking in Unpriv. Linux Container (LXD/LXC)

I've seen a good bit about docker setups and the like using unpriv containers running ES. Basically, I wan't to set up a simple "prod cluster". Have a total of two nodes, one physical (for data), and one for Injest/Master (LXD Container). The issue…
geudrik
  • 666
  • 8
  • 22
1
vote
0 answers

LXD/LXC External Network Accessibility Issue

Anyone experienced something like this? Absolutely strange as f..k I have multiple containers(ubuntu 16.04) on ubuntu host. After system reboot, some of the containers are not able to access external network but internal access works fine. Exactly…
Ian
  • 11
  • 2
1
vote
1 answer

Get specific container using lxc/lxd-list command

When I run the following command: I get the following output: But I only want to get the container specified in the command not all of them. How can I do that?
Abdul Moiz
  • 25
  • 1
  • 8
1
vote
1 answer

Proxmoxer required for this module

I keep getting this error when try create ProxMox containers using Ansible. Has anyone know how to fix this? Im trying to create Proxmox VE cluster containers. Uses LXD containers. Here is my playbook - hosts: proxmox user: root tasks: …
Prav
  • 2,785
  • 1
  • 21
  • 30
1
vote
1 answer

Million of close syscalls on LXD container when run a command from Python and sh module

I have a Python application where I uses the Python sh module multiple times to run commands. Also, I use LXD containers to run isolated tests. I noticed a very different performance running my tests on LXD container, so I started to reduce the…
1
vote
2 answers

Cannot start an LXD container when the subuid and subgid information for root are changed

New to LXD and running into a problem where I am trying to build a subuid and subgid map for the root user of my container so that when root writes to the directory /megalith, it will be the UID/GID of the host user (1000:1000) rather than uid/gid…
1
vote
1 answer

Can I use LXD image to create Docker container and/or vice versa?

A container system making use of LXC containers. the above statement is true for both LXD and Docker. In that case can we use LXD image to create Docker container and/or vice versa?
karthikeayan
  • 4,291
  • 7
  • 37
  • 75
1
vote
1 answer

How to connect a bash or shell to a lxd container

I have many lxd containers on my system. I cannot access them from network i do not have passwords Is there a way to attach a bash like we can do on docker for example ?
Bob5421
  • 7,757
  • 14
  • 81
  • 175
1
vote
0 answers

How to setup permissions on migrated lxc->lxd container?

@stgraber said that we need to replace rootfs to migrate from lxc to lxd container: migrating lxc to lxd How to setup permissions on files and folders of migrated container if I want to make the container unprivileged, like some existing pure-lxd…
vskubriev
  • 826
  • 1
  • 11
  • 21
1
vote
0 answers

Does Apache Mesos + Marathon support LXD cluster management?

I've seen kubernetes and mesos, which both look awesome. My works has a LXD cluster. I'm wondering if I can manage this cluster using Mesos or Kubernetes for autoscaling. Is this supported?
Ryan Shocker
  • 693
  • 1
  • 7
  • 22
1
vote
0 answers

LXD lose snapshot after creating containers from them, if using zfs

I am having issues when creating containers from snaphots, when using lxd with zfs as backstorage. I can create the container, but when I delete it, the snapshot gets deleted at zfs level (not at lxd). I am using lxd in Ubuntu 16.04, and the funny…
juanleon
  • 9,220
  • 30
  • 41
1
vote
2 answers

How to control location of LXD images and snapshots

I am experimenting with LXD. Since LXD is supposed to be aware of the capabilities of ZFS (copy-on-write, etc.), I set up a ZFS pool (consisting of a single, dedicated partition) to hold the containers. I then installed LXD and ran "lxd init". In…
Brad Richards
  • 1,233
  • 3
  • 13
  • 23
1
vote
1 answer

LXD - How can connect to the LXD API via unix socket domain under nodejs?

How can i connect to the LXD API via unix socket domain under nodejs? I try the following code but fails. I've got this answer: HTTP/1.1 400 Bad Request var net = require('net'); var lxdUSD='/var/lib/lxd/unix.socket'; var net =…
shnicolau
  • 31
  • 4
1
vote
2 answers

LXD with LVM backingstore to achieve disk quotas

I see from the LXD storage specs that LVM can be used as a backingstore. I've previously managed to get LVM working with LXC. This was very pleasing, since it allows quota-style control of disk consumption. How do I achieve this with LXD? From what…
ukosteopath
  • 443
  • 7
  • 14