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

migrating lxc to lxd

I've looked all over, but can't see if there is a way. I have a couple LXC containers running Ubuntu 14.04 on top of a Ubuntu 14.04 Host. They've become pretty important to me, so I want to be able to easily backup / migrate the LXC containers to…
Mark
  • 41
  • 1
  • 5
3
votes
0 answers

How to full back lxc container?

I use following command to backup lxc : lxc publish CONTAINER_NAME/SNAPSHOT_NAME --alias my-export lxc image export my-export . This will create a new LXD image from your container and export it as a tarball in your current directory. You can then…
yensheng
  • 1,315
  • 2
  • 14
  • 22
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
  • 5
  • 15
3
votes
4 answers

How to automate application deployment when using LXD containers?

How should applications be scripted/automatically deployed when in LXD containers? For example is best way to deploy applications in LXD containers to use a bash script (which deploys an application)? How to execute this bash script inside the…
Greg
  • 8,175
  • 16
  • 72
  • 125
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
  • 2,119
  • 6
  • 30
  • 62
3
votes
1 answer

How to setup LXD containers that communicate over the LAN

I have a set of servers rung up to a LAN. I am able to install and work with LXD containers on a machine, but for the life of me I can't get the containers visible on the network. I have attempted to follow these urls, to no avail…
Adil
  • 2,092
  • 3
  • 25
  • 35
3
votes
0 answers

Executing containers on multiple architectures

I am trying to get some services up and running on various CPU architectures like ppc, mips and x86_64 using docker containers. From what I could read so far, docker engine is supported for a few platforms and unless I use qemu(like in…
Vivek
  • 259
  • 2
  • 16
2
votes
0 answers

Xephyr X11 socket does not appear in /tmp/.X11-unix/ when launched from a script

I'm using Xephyr on an LXD container and this is the autostart script: #!/bin/sh lxc start debian lxc exec debian -- Xephyr -screen 1366x768 :1& #Xephyr display :1 window opens in :0 running on host lxc exec debian -- sh -c 'DISPLAY=:1 i3' lxc stop…
Simonasj
  • 21
  • 2
2
votes
1 answer

Can't make hard link for mounted host file in LXD container

I configed a host directory as a disk device in an unprivileged LXD container, like /opt/app/var, and I created a backup directory on container self filesystem, like /backup. I used rsync to backup /opt/app/var files to /backup with hard link, but I…
dawncold
  • 183
  • 1
  • 1
  • 12
2
votes
1 answer

Dump file outside the lxc container

I am able to view syslog of my lxc container, from outside the container... by; sudo lxc exec my-abc-container -- /root/tail /usr/local/var/syslog or either by tailing it sudo lxc exec my-abc-container -- /root/tail --follow=name…
Anum Sheraz
  • 2,383
  • 1
  • 29
  • 54
2
votes
0 answers

Can a Java program access a specific port on a Guacamole connection?

Can I use the Apache Guacamole API to allow a Java program to access a specific port on a Guacamole server's connection? When I say connection, I mean a machine that the Guacamole server is connected to - a machine that would show up in the…
pehr.ans
  • 109
  • 1
  • 14
2
votes
1 answer

in LXD how to access containers with their name from host

In default installation of LXD, the containers can ping each other by their name like c1 or c1.lxd very easy. Containers are at a DHCP bridged network which make name resolvation trivial between them, the host also is in this network (eg : 10.0.3.1…
wtayyeb
  • 1,879
  • 2
  • 18
  • 38
2
votes
1 answer

Linux LXD container not getting IP from DHCP Ubuntu 16.04 TLS

This is my first time when I am setting up LXD to run multiple containers. I have done all the configuration steps but my container not getting IP address from DHCP server which is running inside my organization. Please help me out. I am using…
Amar
  • 21
  • 1
  • 4
2
votes
1 answer

LXD Error Cannot Start Container

I was creating an Ubuntu container using LXD : lxd launch ubuntu first When I received this error : error : Error calling 'lxd forkstart /var/lib/lxd/containers /var/log/lxd/ubuntu/lxc.conf' : err='exit status 1' I looked at the log and recieved…
user3520669
1
2
3
10 11