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

LXC - Failed to create macvlan interface - Operation not permitted

I am having problem to create a LXC container over OpenVZ server, I am getting the error bellow when lxc try to create an interface. I am not sure if OpenVZ permit this kind of configuration, it is my first time trying. I have looking for some…
m4u2o
  • 43
  • 1
  • 1
  • 3
1
vote
1 answer

Failed lxd init

It's failed after I run lxd init --auto: $ lxd init --auto Error: Failed to create network 'lxdbr0': Failed adding DHCP/DNS access rules for network "lxdbr0" (ip): Failed apply nftables config: Failed to run: nft table ip lxd { chain in.lxdbr0 { …
Glech
  • 731
  • 3
  • 14
1
vote
2 answers

LXD Issue, vm.max_map_count with Elasticsearch

Ok so to start, all the things I've tried so far: Set vm.max_map_count in: The host in etc/sysctl.conf The host in /etc/sysctl.d/99-sysctl.conf The LXD Container in /etc/sysctl.conf The LXD container in /etc/sysctl.d/99-sysctl.conf According to…
Fallenour
  • 62
  • 1
  • 10
1
vote
0 answers

LXD/LXC install issue with snap

I am on Ubuntu 18.04 and when I install LXD with sudo snap install lxd the install is broken somehow and somewhere. i.e lxc list returns Error: Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: connect: connection…
m_krsic
  • 113
  • 5
1
vote
0 answers

is there a way to access LXC containers from web by using there own ip?

so basically i have installed LXD / LXC on Ubuntu host running on EC2 instance my final goal would be to access the LXC online (webserver) with it's own static public ip i can access the host public ip but not the lxc containers i have created a…
1
vote
1 answer

How do I create GCloud LXD Bridge Devices without adding more vNICs or breaking the VM?

I am trying to replicate the trick that Kinsta uses on GCloud to run PHP on Ubuntu VMs to allocate the RAM and handle caching for all the deployed sites instead of running multiple sets of cache threads and pools, and then deploy multiple…
spyderdyne
  • 111
  • 5
1
vote
1 answer

Ansible Check if lxd container with name already exists

Is it possible to check in ansible if a container already exists? I tried the following: - name: LXD | Check for already existing container lxc_container: name: {{ container_name }} state: absent register: check_container_absent -…
Pascal
  • 2,175
  • 4
  • 39
  • 57
1
vote
1 answer

running an image created through Docker in lxc

I want to run an image which I have already created and uploaded on the docker hub. Is it possible to run that image on lxc/lxd? Basically I want to do performance comparison between docker and lxc. I have installed skopeo, umoci, go-md2man and…
Awais
  • 27
  • 3
  • 8
1
vote
1 answer

LXD: The "default" storage pool doesn't exist

I am getting the following error while I am trying to edit default lxc profile: The "default" storage pool doesn't exist
Vishrant
  • 15,456
  • 11
  • 71
  • 120
1
vote
1 answer

Permission denied (publickey) when trying to ssh in ubuntu using LXC 3.x

I have VirtualBox Linux 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux. I've installed LXD 3.x linux containers I've spun up three instances of ubuntu type containers on…
JamesD
  • 679
  • 10
  • 36
1
vote
2 answers

GitLab Runner - Docker executor in LXD container

I try to run GitLab Runner with docker executor inside LXD container. Have it done half way through but still not functioning properly. Did anybody happen to have it up and running and could share how to do it ?
mysiar
  • 430
  • 1
  • 5
  • 14
1
vote
1 answer

LXD share /var/lib/mysql from host to container and map user/group

What's the correct way to share the mysql/mariadb data dir of the host system to a container and map the permissions correctly? I have been struggling with this for a couple of days. I'm sorry if this question has been asked before, but I have…
asp
  • 191
  • 1
  • 6
1
vote
0 answers

How to deploy multi-region in ocata openstack in juju?

I am unable to add multi region support for Openstack Ocata, using juju deployment. I'm following the steps(for Single Region) given in the link: OpenStack on LXD For multi region I am stuck where to make changes,so that I have master region(maybe…
nirmit
  • 55
  • 1
  • 1
  • 5
1
vote
2 answers

How to run docker inside centos 7 lxc?

I get this to work work Ubuntu using security.privileged and security.nesting just fine. However with centos7, the docker daemon fails when trying to pull the images. It can't even run hello-world. There is a cgroup violation that some folder…
Hcabnettek
  • 12,678
  • 38
  • 124
  • 190
1
vote
1 answer

Where is LXD Init moving data from pre-existing ZFS pool?

TL;DR; I'm seeing some discrepancies between what I setup using zfs, what lxd may be doing during the lxd init process, and what I expected to see. I've been using LXD for about a month and have gone over the documentation and made several searches,…
code_dredd
  • 5,915
  • 1
  • 25
  • 53