Questions tagged [lxd]

The LXD tag is for questions relating to the LXD daemon based on liblxc, providing REST API, command line tool and OpenStack integration plugin for LXC.

From the Linux Containers LXD Introduction page:

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)

Other resources: LXD GitHub page

281 questions
33
votes
3 answers

Systemd fails to start openvpn in lxd managed 16.04 container

openvpn starts fine from the command line using the exact ExecStart= call from the systemd unit file: /usr/sbin/openvpn --daemon ovpn-server --status /run/openvpn/server.status 10 --cd /etc/openvpn --script-security 2 --config…
24
votes
1 answer

Docker-CE or docker.io package

In my laptop I work mostly with LXD to have containers for development and manage LXD containers in production (integrated with Ansible). I have one requirement to use docker/docker-compose for deployment. I know that I can install docker.io package…
Yonsy Solis
  • 882
  • 2
  • 8
  • 20
22
votes
5 answers

Adding a shared host directory to an LXC/LXD Container

I have been experimenting with LXC/LXD on Ubuntu 14.04 and it's all working great. I just need to figure out how to get shared directories working between my host machine and a container so I can ditch Virtualbox once and for all. I have seen this…
user47227
  • 541
15
votes
6 answers

Is an online Ubuntu terminal emulator available?

I want to play around with some terminal commands from official Ubuntu packages, but at the moment I don't have access to an Ubuntu PC. Is there an online and free terminal emulator running, say, Ubuntu 16.04? I have tried this one but seems quite…
user308164
14
votes
1 answer

Can't remove core18 snap

I am cleaning up my fresh Ubuntu 20.04 install and I can't seem to remove core18 snap. $ snap list Name Version Rev Tracking Publisher Notes core18 20200427 1754 latest/stable canonical✓ base lxd 4.1 15359 …
11
votes
1 answer

How do I copy a file/directory from host into a LXD container?

I have a file/directory on the host that I want to copy into the LXD container. What is the command to copy the host -> container?
Jake
  • 491
10
votes
1 answer

Ubuntu server 16.04 won't boot after installation, Fail to start LXD

I am new to Ubuntu. Just installed Ubuntu server 16.04 onto Dell R730 server yesterday. The first time reboot was okay. But the server refused to boot today. The error message was: Failed to start LXD. Can anyone please help?
G.Z
  • 101
10
votes
3 answers

reach lxd container from local network

OS: Ubuntu 15.10 LXD: 2.0.0.rc5 I would like to know how to access a container from another computer on the same local network. Address of my PC (the LXD host): 192.168.1.112 (enp3s0) Xenial container: 10.0.3.181 (eth0), 10.0.4.1 (lxcbr0) Other PC…
10
votes
3 answers

How do I allow /dev/net/Tun in a LXD managed LXC container?

I am trying to get Openvpn run inside a LXD/LXC container, and redirect traffic coming to the container to the VPN. The purpose is to replace a fully fledged VM that does exactly that (and toy with LXD :-) I managed to get an IP from my main DHCP…
alci
  • 5,979
9
votes
2 answers

What is the workaround for LXD-nested pivileged docker (/dev/.lxc/proc/ error)?

Launching a privileged docker container in an LXD fails with this: docker: Error response from daemon: linux runtime spec devices: lstat /dev/.lxc/proc/1482/fdinfo/12: no such file or directory. Steps to reproduce: lxc launch ubuntu-daily:16.04…
Velkan
  • 3,681
9
votes
1 answer

How do I cache packages for a snapcraft cleanbuild?

snapcraft cleanbuild is supposed to let me build snaps in clean-room environments. Accordingly it starts from a minimal LXD image and installs necessary packages. However, it seems to use the base archive.ubuntu.com mirror, which is excruciatingly…
muru
  • 207,228
9
votes
3 answers

Where are the LXC container configuration files located?

I am working with LXC containers and I am attempting to setup a network configuration but I cannot locate the configuration file. Every piece of documentation or answered question has been for older outdated versions of LXC. Much of the…
Egee
  • 91
8
votes
2 answers

How to fix "docker: Error response from daemon: cgroups: cannot find cgroup mount destination: unknown." on `docker run`?

I have Ubuntu 16.04.6 LTS installed. Previously I have installed Docker from its repository as docker.io package. Yesterday I have installed LXC with LXD and I suppose that they have some problem with coexistence with Docker. LXC works normally: $…
N0rbert
  • 103,263
7
votes
4 answers

Running Ubuntu Desktop in LXC/LXD on top of Ubuntu Server

Is it possible to have Ubuntu Desktop running in an LXC/LXD container on top of Ubuntu Server, displaying Ubuntu Desktop's graphical X session on the physical screen that Ubuntu Server outputs to? Whether it makes sense or not, my idea is to…
7
votes
1 answer

How do I completely remove LXD from my system?

I am running version 22.04.01 of Ubuntu and I installed LDX using the apt with the lxd-installer package. How do I completely remove LXD from my system?
Hendré
  • 779
1
2 3
18 19