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

259 questions
32
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…
Christian David
  • 483
  • 1
  • 5
  • 6
23
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
  • 842
  • 2
  • 8
  • 19
21
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
  • 521
  • 1
  • 4
  • 16
14
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
12
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 …
oᴉɹǝɥɔ
  • 606
  • 2
  • 5
  • 21
9
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
  • 91
  • 1
  • 2
9
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,761
  • 6
  • 42
  • 65
9
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
  • 401
  • 3
  • 5
  • 8
8
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,516
  • 4
  • 24
  • 45
8
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
  • 193,181
  • 53
  • 473
  • 722
8
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…
Paradiesstaub
  • 4,281
  • 7
  • 26
  • 36
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…
Bjarni Jens
  • 155
  • 1
  • 1
  • 10
6
votes
8 answers

How do I get the IP address of an LXC container for automation?

How can I get the IP address of an LXC container in a format I can use in scripting? Right now, the command lxc info report that information, but in a human readable format, with a lot of information. I would like to ONLY to GET the IP…
jgomo3
  • 716
  • 1
  • 9
  • 23
6
votes
2 answers

How do I open an existing LXD container?

I have Ubuntu 16.04 installed, xfce desktop for what it's worth. I have LXD installed, with my images and containers on my large second drive, with symbolic links to said images and containers configured in /var/lib/lxd/. Everything works as…
hatterman
  • 2,260
  • 2
  • 21
  • 33
6
votes
2 answers

Start a screen session inside LXD-managed container

I'd like to start a screen session inside an LXD-managed container so that I could detach running processes and maybe re-attach in the future when I want to check on their status. I tried to attach to the container running $ lxc exec my-ubuntu --…
Jonathan Y.
  • 1,034
  • 1
  • 16
  • 35
1
2 3
17 18