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

How to launch an LXD container on another node and exchange ssh keys with the container?

How to launch and LXD container on another node and exchange ssh keys with the container? That is, how to give Ansible direct access to the LXD container using SSH? I am aware of the authorized_key module however this would only exchange keys…
Darthtrader
  • 238
  • 1
  • 8
0
votes
0 answers

Cannot Install Local Packages with NPM

I am using an LXD container to build an angular application. I cannot install any local npm packages inside of my app directories. I've configured my proxy (ip of my container) and registry settings: npm config set proxy http://10.57.66.100:8080 npm…
user6536435
0
votes
1 answer

Resources required for running application on server VS running application in LXC container?

LXC/LXD offers a virtual machines like openVZ but removes the overhead of having custom kernel installation on GUEST systems. What will be overhead on the GUEST operating system for running application server like JETTY/TOMCAT in a LXC container…
forum.test17
  • 2,119
  • 6
  • 30
  • 62
0
votes
2 answers

How to install lxd 2.9 in ubuntu 16.04.2?

https://linuxcontainers.org/lxd/news/ says the latest version of lxd is 2.9.1, as of 16th February 2017. I just installed ubuntu 16.04.2 and did sudo apt install lxd And I have $ lxc --version 2.0.9 How do I update to 2.9.1?
ackerleytng
  • 416
  • 6
  • 17
0
votes
1 answer

LXD: LXC Network Edit Results in Error: Not Found

I want a predictable network bridge to use with LXD so that I can run squid as a proxy on that bridge for all traffic and add ebtables rules for filtering traffic. So I edited /etc/network/interfaces to add the bridge: auto cdplxdbr0 iface cdplxdbr0…
VJK
  • 33
  • 11
0
votes
1 answer

Custom Bridge in Ubuntu 16.04 with LXD

Problem I am using two NICs on a host on which I want to run LXD with the Docker profile. I have DNSMASQ running on interface 0 (enp0s10f0) and loopback. I want LXD containers to use a separate NIC (enp0s10f1). At this time I don't need the…
VJK
  • 33
  • 11
0
votes
2 answers

Cannot create a new image (x509 error)

Having a problem when I try to create a new 16.04 x64 Ubuntu container: $ sudo lxc --version 2.0.3 $ sudo lxc launch images:ubuntu/xenial/amd64 my-container error: Get https://images.linuxcontainers.org:8443/1.0/images/ubuntu/xenial/amd64: x509:…
ThaDon
  • 7,826
  • 9
  • 52
  • 84
0
votes
0 answers

How to connect to container which is behind iptables rule

It is common to access a container from out of host with simple iptable rules which forward a port on host to a port on container with container internal IP in hand -A PREROUTING -d 1.2.3.4/32 -i eth0 -p tcp -m tcp --dport 80 -j DNAT…
wtayyeb
  • 1,879
  • 2
  • 18
  • 38
0
votes
1 answer

Why is my PHP7.0-FPM pool not running using it's specified system user?

I've done this setup quite often but this time I'm overseeing something surely. Goal Having an Apache 2.4 vhosts using different PHP-FPM pools for each vhost using their own system user within an LXD container. The problem Everything is working fine…
masterdam79
  • 113
  • 1
  • 1
  • 7
0
votes
1 answer

Installation of LXD fails on Redhat 7

As there is no rpm package not a yum package, I had to install lxd from the source code. Here is the error I get: [admin@gol05854 lxd]$ make Must a few times due to go get race go get -t -v -d ./... go get -t -v -d ./... go get -t -v -d ./... go…
Yash
  • 946
  • 1
  • 13
  • 28
0
votes
1 answer

What is the difference between lxd and lxc

I want to work with lxc containers. I have installed ubuntu lxd package, but i work with lxc command. So i do not understand what are the differences between lxc and lxd containers. Is it the same thing ?
Bob5421
  • 7,757
  • 14
  • 81
  • 175
0
votes
1 answer

LXD API not creating profile

I am trying to create a new profile for LXC. I did this; root@nagri:/home/nagri# curl -s -k --cert ~/.config/lxc/client.crt --key ~/.config/lxc/client.key -X POST -d '{ "name": "testing", "description": "Some description string", …
Nagri
  • 3,008
  • 5
  • 34
  • 63
0
votes
3 answers

Want to use the `Vlan` feature of `OpenVSwitch` with `LXD/LXC`

I want to use the Vlan feature of OpenVSwitch. This is what I have done so far; hussain@hussain:~$ lxc list +----------+---------+------+------+------------+-----------+ | NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS…
Nagri
  • 3,008
  • 5
  • 34
  • 63
0
votes
1 answer

how to keep jobs with nohup in lxd

I made python script that needs to run background. This script is in lxd image which is running (checked by 'lxc list') got into image and tried to keep it run in background. local> lxc exec image-name -- bash image-root> nohup python test.py…
J.Done
  • 2,783
  • 9
  • 31
  • 58
0
votes
1 answer

how to perform precopy memory migration in LXC /LXD so that I can perform live migration from one host to another

how to perform precopy memory migration in LXC /LXD so that I can perform live migration from one host to another?How do I set to precopy migration in CRIU?
Naresh K
  • 77
  • 1
  • 5
1 2 3
10
11