Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lxd]

LXD is built around a very powerful, yet pretty simple, REST API. Under the hood, LXD uses LXC. If your question is about LXD, e.g.: is using the "lxc" command only available in LXD, you should use the tag LXD instead (or in addition) of LXC.

-1
votes
1answer
33 views

How to route between two bridge interfaces?

So I have a total of two bridges. One has the 10.0.0.1/24 subnet (br0), and the other has the 10.1.0.1/8 subnet (br1). I want to setup an NGINX reverse proxy that would run on a container connected ...
0
votes
1answer
15 views

Is it possible to set the IP address when launching a container?

I’m looking for examples how to create/launch a container with a predefined ipv4.address? Is that even possible? I've tried with lxc launch image name --config 'eth0.ipv4.address=10.0.2.2' Though ...
1
vote
1answer
37 views

Unable to delete directory, imutable flag is not set, not mounted

So i have this directory that causes a lot of problems when trying to delete lxd via snap. The directory in question is /var/snap/lxd/common/lxd/storage-pools/default/. If I try to delete it with sudo ...
0
votes
0answers
59 views

How to set up working uid/gid allocations for LXC/LXD/Vagrant?

What I've tried: $ vagrant up --no-provision Bringing machine 'default' up with 'lxd' provider... ==> default: Machine has not been created yet, starting... ==> default: The host machine does ...
0
votes
0answers
20 views

What to put in /etc/sub{u,g}id to run unprivileged containers?

I'm trying to run an unprivileged Vagrant box using LXD, but I can't get the ID mappings to work. First try: $ sudo rm /etc/sub{u,g}id $ echo "root:1000000:65536" | sudo tee /etc/sub{u,g}id root:...
0
votes
2answers
30 views

How to trust self-signed LXD daemon TLS certificate in Vagrant?

Following up from another question I've got the LXD daemon running and working: $ curl --insecure https://127.0.0.1:8443 {"type":"sync","status":"Success","status_code":200,"operation":"","error_code"...
0
votes
0answers
18 views

Forward traffic between two hosts, first with a few IP, second with 1 IP and lxd containers

I have a task to create connections between host A with a few IP addresses, say: 1.2.3.4, 1.2.3.5, 1.2.3.6, 1.2.3.7 host B with 1 IP 2.3.4.5 On host B there two lxd containers lx1, and lx2. The goal ...
0
votes
1answer
92 views

Can the timeout of conjure-up/juju operations be configured?

I'm trying to install OpenStack with NovaLXD on localhost via conjure-up and it keeps timing out... (at home for dev/learning purposes) My hardware is ancient... it's an old Dell poweredge 2850 (...
0
votes
1answer
109 views

LXD Container/What's the Preferred Way of Accessing Files from Host

I can access files inside a LXD container by running lxc from the host: root@Host# lxc exec Container_Name bash root@Container_Name# touch /tmp/hello Or by accessing the files directly from the host ...
0
votes
0answers
172 views

Recover deleted container or snapshop from ZFS

I am using LXD to manage Linux containers, and deleted a running container using lxd delete --force test. LXD is using a ZFS pool. The container was snapshoted periodically, is it possible to recover ...
0
votes
1answer
348 views

How to create a default lvm pool on lxd v3

The expected lxc storage create default lvm lvm.thinpool_name=lvdata lvm.vg_name=vghdd lvm.use_thinpool=true fails with the Error: LXD already uses volume group "vghdd" for pool "default" while ...
1
vote
0answers
457 views

Assigning an ipv4 address to (LXD) linux containers

I've got a home server running with a bunch of linux containers and they're all getting their ip addresses assigned automatically via dhcp on my router. I'd like to be able to assign ip addresses ...
0
votes
1answer
249 views

Missing cgroup hierarchy in LXC container

Armed with this LXD configuration: raw.lxc: |- lxc.mount.auto = cgroup:mixed A 4.x kernel, and no AppArmor. I should see the cgroup hierarchy in my guest os under /sys/fs/cgroup right? Instead, I ...
1
vote
1answer
3k views

Creating a custom template, based on some existing LXC template after running the instance at least once

(Please note that this question is about LXC 1.x, whereas this one is about LXC 2.x/LXD) I scoured the web for an answer to this one, but couldn't come up with any reasonably non-hacky answer. What ...
2
votes
1answer
1k views

Mount host folder to guest with LXC 2.x, but do it readonly?

NB: This question relates directly to this one and in particular to this answer, but it's not a duplicate. I'd like to share a folder from the host with the guest, but make sure that the guest's root ...
1
vote
0answers
165 views

lxd with own br0 Network is Unreachable in centos conteiner

When I run lxd init I choose this setting. Would you like to create a new network bridge (yes/no)? no because I created my own br0 in /etc/network/interfaces source /etc/network/interfaces.d/* ...
0
votes
1answer
251 views

Get Array of LXD Snapshot Names

I am pretty green when it comes to grep, can someone point out how I can get an array in bash of the list of snapshot names (NOTE: just the names) when I do a lxc info mycontainer ? My current ...
2
votes
2answers
239 views

Are containers and hypervisors an alternative to multibooting GUI-based distros?

Soon I will need to test GUI applications on multiple distros. Previously I've done this with virtual machines on VirtualBox, but using them can be frustratingly slow. I have considered multibooting, ...
4
votes
2answers
568 views

ZFS pool for both common use and LXD, will it work?

I have 2 disks and would like to create one ZFS raid0 pool on Ubuntu 16.04 for everyday use and to keep LXC containers on it. Will it be ok to manage this pool by myself and allow LXD to manage it at ...
5
votes
2answers
4k views

List snapshots of a lxd container

After creating a few snapshots in a lxd container using lxc snapshot I cannot find a way to list those snapshots. lxc list lists only containers, not the snapshots of each container. How can I list ...
1
vote
2answers
545 views

Can't Open Htop over SSH (Terminal Issue)

I'm connecting to a remote server through SSH Manjaro machine with urxvt to a LXD container, which is running Centos 7. But for some odd reasean I cannot run htop..... I'm getting the following error ...
2
votes
0answers
473 views

Connect lxc network with local network

My current environment is following; in Windows 10 I have installed Ubuntu 16.04 in Hyper-V, this hosted Ubuntu is connected to local network 10.10.10.*, where Ubuntu's IP is 10.10.10.1 and Windows's ...
0
votes
1answer
802 views

Route outging traffic from private network (lxdbr0)

i set up lxd on my host system with lxdbr0 bridge as nic. Now my containers get their ip addresses via dhcp from lxdbr0 (in the range of 10.204.x.x). Also i have 2 public ip addresses. One for the ...
2
votes
0answers
524 views

Can't chown file within lxc container

Having an issue with a new lxc container. I've only just started playing with lxd/lxc and it's setup as default. I'm using lxc version 2.0.4 and the host is Ubuntu 14.04.5 LTS I've created a new ...
1
vote
1answer
367 views

Error while starting a LXC container

I am facing error while attempting to start a lxc container. I am using LXD btw. The error that i face is : ubuntu@ubuntu-blade1:~$ sudo lxc start test error: Error calling 'lxd forkstart test /var/...
3
votes
2answers
2k views

How to make a USB visible in LXD Container

I am fairly new to LXD Conatiners. I have a Host ubuntu 16.04 machine running which has a single container : root@ubuntu-blade1:/etc/udev/rules.d# lxc list +-------------+---------+-------------------...
2
votes
1answer
461 views

Create LXD containers on machine with no internet connection

Server: Ubuntu 16.04 Server, x64, no internet connection I have LXD installed but am having trouble getting an image to that server to use as a baseline for containers. I have tried two options so ...
4
votes
0answers
775 views

How to bind an lxc container to a specific bridge?

I created a specific bridge br1 and would like to bind a specific container cont1 to that bridge. I have lxc and lxd installed, if that matters (I am not sure what the difference between them really ...
143
votes
2answers
143k views

What is the difference between Docker, LXD, and LXC [closed]

What is the difference between Docker, LXD, and LXC. Do they offer the same services or different.
3
votes
1answer
2k views

Firewall that allows to tag or comment rules for easy filtering

I am going to use iptables for port forwarding to listen on requests from my LAN on port 8080 and answer with container at port 80 , like this: iptables -t nat -A PREROUTING -p tcp -d 192.168.1.15 --...