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
0 answers

Migrate existing worpress sites behind a reverse proxy (lxd)

I want to put a proxy container with Nginx to handle traffic to my other containers with WordPress sites. I am currently using the following setup: Internet <--> webservices.lxd (added port 80 && 443 to the container) <--> example.com (apache2) The…
0
votes
0 answers

Create a started LXD container with Ansible

I have cluster: +-------------+-----------------------------+------------------+--------------+----------------+-------------+--------+-------------------+ | NAME | URL | ROLES | ARCHITECTURE | FAILURE…
Oleg
  • 161
  • 1
  • 2
  • 10
0
votes
0 answers

Host cannot communicate with app running inside LXC container

I am running on my personal machine with Ubuntu 18.04 multiple lxc containers. Each container has Ubuntu 18.04 as well. For each container I am running an application which offers a UI on https://localhost:3000/. Since every container has a local IP…
Mnemosyne
  • 1,162
  • 4
  • 13
  • 45
0
votes
1 answer

"certificate signed by unknown authority" after resintalling LXD

I'm getting this error after purging lxd and reinstalling: lxd_network.singlenode: Refreshing state... [id=singlenode] Error: Unable to create client for remote [localhost]: Get "https://127.0.0.1:5555/1.0": x509: certificate signed by…
Marcos Dione
  • 556
  • 6
  • 13
0
votes
1 answer

Script is getting stuck in the LXC init task

I'm a new user of ansible and I'm trying to launch a lxc init in a yaml script: - name: Copy LXC init file ansible.builtin.copy: src: /home/user/lxcInitFile.yaml dest: /tmp/ owner: root group: root mode: '0644' #- name:…
JEKES
  • 311
  • 1
  • 3
  • 11
0
votes
0 answers

Daemon lxd-client client is not running

I have a problem with my init service. After I started the service lxd-agent I tried to check its status. I can see in the output of /etc/rc.d/rc.lxd-agent status below message: daemon: lxd-agent is running (pid 3351) (client is not running)…
qidim
  • 1
  • 1
0
votes
0 answers

How to configure unique public IP addresses for multiple LXC containers?

I would like to have multiple LXC containers on my VPS, each with their own public IP address, accessible through the internet (so that I can run web-accessible services within each LXC). I used LXD to create the LXC, and I am running this on Ubuntu…
maxfowler
  • 1,168
  • 13
  • 23
0
votes
1 answer

juju not able to spin up lxd container

currently I'm trying to setup a three node mysql-innodb-cluster on a maas-deployment using juju. The setup process worked flawlessly and the deployment of other charms worked fine. When deploying the cluster I would like to achieve that in separate…
andreas.teich
  • 789
  • 1
  • 12
  • 22
0
votes
1 answer

pods can't access to kubernets clusterIP service (10.96.0.1)

Recently i did install kubernetes using kubeadm on my old dual core AMD machine using bionic ubuntu and lxc. This is my lxc profile which i found in web: config: limits.cpu: "2" limits.memory: 2GB limits.memory.swap: "false" …
Vahid Alimohamadi
  • 4,900
  • 2
  • 22
  • 37
0
votes
2 answers

How to access webcam using OpenCV (Python) in LXC container

I am running Ubuntu 18.04 on the host and Ubuntu 20.04 inside LXC container. My goal is to run ROS2 (which requires Ubuntu 20.04) inside an LXC container, then use it to connect to two dynamixel servo motors and a USB Logitech webcam. I have also…
Hano
  • 1
  • 1
  • 5
0
votes
2 answers

vulkan is not avaible in lxc / lxd container but opengl is

I am using ubuntu 18:04 with an lxc / lxd steam container. It works great, I followed this tutorial and did some changes to the network stuff. https://blog.simos.info/running-steam-in-a-lxd-system-container/ Steam works for opengl games but not for…
stupidstudent
  • 678
  • 4
  • 13
0
votes
1 answer

What is the difference majorly featurewise between Canonical LXD container software and docker container software?

I have docker installed but ubuntu products seem to be open-source-ware and not breaking my pocket book to do the same thing but docker seems to be more compatible with google cloud? I am not sure about LXD but I am installing it in the package…
Ludiusvox
  • 53
  • 6
0
votes
1 answer

Why I cannot deploy charts in microk8s controller but I can do it in LXD

I am learning Juju which I feel its amazing, but having problems as usual and very little around to find people who explain how it works. I hope any of you can guide me. Question: deploying charts only works in LXD controller. In microk8s does not…
0
votes
1 answer

Cannot Reach Kestrel + NGINX (proxy) Website Hosted in LXD Container

I tried hosting my ASPNet Core web inside a LXD container together with NGINX as reverse proxy server, but to no avail. When I have Kestrel running through dotnet command, the browser (Firefox) returns Unable to Connect. However, when I…
Haikal Nashuha
  • 2,958
  • 7
  • 44
  • 67
0
votes
1 answer

How to launch LXD container in WSL2?

I've set up wsl 2: PS C:\Users\User> wsl --list --verbose NAME STATE VERSION * Ubuntu-18.04 Running 2 However when attempting to create a container from wsl the following error is returned: $ lxc launch…
Greg
  • 8,175
  • 16
  • 72
  • 125