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
22 views

Linux on chromeos encountering many errors:58:51

OK This is a complex maze of error messages so bear with me. When I try to open or doing anything with Linux I get [=======/ ] Starting the Linux container Error starting penguin container: 58 ...
0
votes
0answers
23 views

How to edit default lxd bridge (lxdbr0) to not use NAT

Using the default lxd init configuration the LXD containers obtain a NAT address. How to change lxdbr0 to not use a NAT ip and be accessible from the outside? The only documentation I found was to use ...
1
vote
0answers
14 views

How can I avoid getting out of space in LXD operations?

I installed LXD 4.10 in an Ununtu 18.04 machine using the snap: sudo install lxd LXD is installed in /var/span/lxd. Since a small disk is mounted in /var, I get out of no free space for some ...
1
vote
1answer
29 views

It is possible to use parallel compression method in lxc publish?

To generate images LXD compresses files using gzip, which can only use one core. Thus, creating images can be very slow with large containers. I would like to use other compressors (e.g., pigz). What ...
0
votes
0answers
18 views

Command under /snap/bin cannot be found in terminal, despite it being in the PATH [duplicate]

I'm trying to execute the lxd command from the /snap/bin directory. I have added it to the user .bashrc, .zshrc, and /etc/environment. When I echo $PATH I get the following output: /usr/local/sbin:/...
1
vote
0answers
141 views

Start armv7 container on arm64 with lxc / lxd

I installed Ubuntu 20.04 on my Raspberry PI, which has an arm64v8 architecture (but could be on any other debian arm distribution / hardware). Currently I compile a program for several arm ...
0
votes
1answer
62 views

creating FreePBX lxd container image from virtualbox instance

I needed a freepbx lxd image for some test, and since I didn't find it in public image servers (well, default images: one and google search but nothing, I think for licence's issues but don't really ...
0
votes
1answer
197 views

ETH0 no address ip with ifconfig

I've created a new LXC on debian jessie, but it doesn't have an ipv4 address. When I connect to my LXC and do ifconfig: eth0 Link encap:Ethernet HWaddr blabla inet6 addr: blabla/64 ...
0
votes
1answer
256 views

lxd init: bind: address already in use

I have problem with bind problem with lxd init. The port 8443 is not used by any other application, therefore I think, lxd init tries to bind this port twice. My lxd version is 3.14 and I am using ...
1
vote
1answer
27 views

Containerised Postfix treating External e-mails as Internal e-mails

I have an iRedMail Mail Server running in an LXD container. Unfortunately, all e-mail is currently treated as internal e-mail, effectively making it an openrelay. Container host VPS, with its own ...
1
vote
1answer
313 views

Project Quota on a live root EXT4 filesystem without live-cd

How do I accomplish setting up project quota for my live root folder being ext4 on Ubuntu 18.04? Documentation specific to project quota on the ext4 filesystem is basically non-existent and I tried ...
0
votes
0answers
51 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
1answer
517 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
57 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
318 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
1answer
2k 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 ...
5
votes
1answer
504 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
90 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
1k 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
85 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
149 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
413 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 ...
0
votes
2answers
641 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
281 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
252 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
682 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
814 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
542 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
5k 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
2k 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
215 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
411 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
344 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
920 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 ...
10
votes
2answers
8k 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
2k 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
1answer
555 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
906 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
485 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
4k 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
648 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
938 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 ...
199
votes
2answers
186k 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.