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.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

container vs 'virtual machine' image from images lxd remote

I was messing around with Linux containers and I was looking through the 'images' image remote for an image for my Raspberry Pi. I came across two adjacent Debian Buster images. One is listed as a "...
0
votes
0answers
10 views

Mount default.img which contains ZFS pool

LXD have created default.img which seems to be a ZFS pool because: mount -o loop /mnt/var/snap/lxd/common/lxd/disks/default.img /mnt1 mount: /mnt1: unknown filesystem type 'zfs_member'. I want to ...
0
votes
0answers
19 views

Custom LXC container not getting auto IPv4

I've created an Alpine Linux container, modeled after the image provided on the lxc/lxd image server. I imported the image using the following: lxc image import metadata.tar.gz rootfs.tar.gz --alias ...
0
votes
0answers
38 views

Where is the memlock limit in an LXC container from?

In the host shell: $ ulimit -l 65536 $ vagrant ssh --command='ulimit -l' 64 What could cause this difference? Dead ends so far: On the host and the guest /etc/security/limits.conf has no entries ...
0
votes
0answers
23 views

How to create logical volume inside lxc container?

by default, lxc container comes with default logical volume from the host but in this case, I want to create the additional logical volume into my lxc container.
0
votes
0answers
22 views

How to run (if possible) gpu-accelerated apps in LXC (LXD) container?

In its great post https://blog.simos.info/how-to-easily-run-graphics-accelerated-gui-apps-in-lxd-containers-on-your-ubuntu-desktop/ Simos Xenitellis describes how to run GUI apps inside the container. ...
0
votes
0answers
23 views

How should I setup an LXD linux-container?

The following documentation contains the necessary infomation to setup LXC. https://linuxcontainers.org/lxd/introduction/ https://linuxcontainers.org/lxc/getting-started/ After that, I wanna use LXD ...
0
votes
0answers
27 views

What is the easiest way to transparently compress directories on ext4 in lxd container (btrfs mounted)?

What is the easiest way to compress directories transparently on lxd container server with ext4 file-system when the lxd/lxc is mounted on btrfs file system with btrfs RAID1? The container has tons ...
0
votes
0answers
150 views

How to use LVM2 inside LXD (LXC) without `systemd-udev`?

I'm trying to use LVM2 inside of an LXD (LXC) container for my Ceph OSD. I believe that I'm getting there! So far, everything works fine, like: pvcreate vgcreate lvcreate ceph-ansible They all work!...
0
votes
1answer
111 views

lxd init gives dnsmasq error — address already in use

When trying out lxd on a desktop ubuntu 18.04, I get the following error sudo lxd init Would you like to use LXD clustering? (yes/no) [default=no]: Do you want to configure ...
1
vote
0answers
30 views

Custom images for LXC deployment

With docker you can build a custom image by starting with a base OS image from the community such as Ubuntu, or Alpine, then install your app and any other dependencies (ngnix for example). Then ...
-1
votes
1answer
101 views

Need help installing Modoboa Mail Server

this is my first job as IT. I don't have much knowledge about Servers, but I'm trying to learn really hard. Having said that, please, I really need help trying to deploy a mail server. I have this ...
0
votes
0answers
10 views

LXD Container not accessible

I am new to Linux world and I tried everything I can think off to solve this problem but stuck since so many days. My LXD container is not able to accessible from my LAN. I tried followings: https:/...
0
votes
1answer
444 views

How to fully disable IPv6 in LXD containers with systemd-networkd

I am trying to fully disable IPv6 on an IPv4-configured virtual network adaptor in an LXD container, but it seems to be autoconfiguring an IPv6 address anyway. Quoth to the documentation: Note ...
0
votes
0answers
152 views

Setup a LXC host bridge on Ubuntu 18.04 and netplan

I am trying to update to replace the LXC bridge on my Ubuntu 18.04 and I do not know how to apply the answerer from this question to netplan. Thanks How to configure external IP addresses for LXC ...
0
votes
0answers
43 views

Spinning up an ephemeral LXD container given an SSH connection to a given IP/port on the host?

Does anyone know a way how to spin up an ephemeral LXD container if the host receives an SSH connection request on a specific IP/port? Let's say I have a Linux host with multiple external IPs and I ...
5
votes
1answer
159 views

Unsetting an option in a systemd drop-in override

Background: I have a package that provides a systemd unit file that is incompatible with LXD. Specifically, it uses the following two options, which seem to fail inside a container: [Service] ...
2
votes
1answer
48 views

Creating a private image in LXD

I am confused because the command to create an image from a snapshot is called lxd publish. Does it create a publicly available image? How can I create a private image. I want an image with ssh keys, ...
0
votes
1answer
482 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
33 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
125 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 ...
1
vote
0answers
167 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
275 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
1answer
260 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
209 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 ...
1
vote
1answer
567 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
713 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
409 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
4k 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
205 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
340 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
294 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
675 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 ...
8
votes
2answers
6k 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
904 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
524 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
1k 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
748 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
444 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
3k 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
549 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 ...
3
votes
0answers
859 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 ...
175
votes
2answers
168k 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 --...