Questions tagged [lxd]

The tag has no usage guidance.

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

Facing Error: TIOCGPTPEER required on LXC Container Bash

COMMAND: lxc exec container bash ERROR: Error: TIOCGPTPEER required Kernal Info: Linux version 4.9.75-axo-r-KC01+ (root@ldsci51) (gcc version 4.8.3 20140106 (prerelease) (crosstool-NG linaro-1.13.1-4....
0
votes
0answers
20 views

Add LXD dependency on network filesystem

I have set up LXD on a Debian 10 using SNAP. The default storage pool source is /srv/lxd/default which is the mount point of a filesystem which requires network in order to mount. I have a container ...
0
votes
1answer
11 views

Get client IP in exim LXD container

I set up an exim server in a Debian 10 container with LXD and then created a proxy device to map the SMTP port from the host to the container: lxc config device add mycontainer myport25 proxy listen=...
0
votes
1answer
59 views

Fedora 31 LXC service failed to start “Failed to start FUSE filesystem for LXC”

I'm trying to setup LXD system for test environments on Fedora Desktop workstation but the LXD service just wont start because the dependency service LXC fails. After trying to start the sudo ...
0
votes
1answer
48 views

Getting the firewall to work inside LXD containers using NAT?

I'm running a single NGINX proxy container (with proxy_protocol=true) alongside with multiple web containers, which is working beautifully. The only problem however, is that using proxy protocol the ...
0
votes
0answers
10 views

Is it possible to keep interfaces down during boot in an LXD container?

I'm building a small tutorial-lab based on LXD (Ubuntu 18.04). I've created a virtual topology by creating several veth links and attaching the ends to the corresponding containers. When I start the ...
0
votes
0answers
37 views

Shrink ZFS loop backed image

How to resize (shrink) /mnt/var/snap/lxd/common/lxd/disks/default.img? It's a ZFS storage pool. I have installed LXD and created a container. During the creation it asked me for the size of the ...
2
votes
0answers
234 views

How to mount specific /proc for all Docker containers on a host?

I am running Docker containers within an LXD container and I have noticed that Docker mounts it's own copy of /proc despite the LXD container having container-aware /proc files. For example: root@...
0
votes
1answer
119 views

How to forward traffic from a specific domain from apache2 to LXC container

I am currently running apache2 on my server, but would like to forward http(s) traffic requesting a specific host (ex. lxc.example.com) to an LXC container which can be accessed by a local ip address ...
0
votes
1answer
114 views

lxdbr0 and host machine source based routing

I have fairly regular LXD setup (version 3.0.3) with the default bridge interface lxdbr0 on Ubuntu 18.04.2. On the other hand my host machines network is not the most regular. I have two bridges (br0 ...
0
votes
1answer
914 views

Overhead of LXD

Question for server structure here. Is the overhead for LXD small enough to use it for per-process containers? E.G if I have a LAMP stack, media server, game server, etc. is it viable to split each ...
0
votes
1answer
77 views

LXD container restricted to specific user

If I have 2 users with the 'lxd' group, user-1 and user-2. If user-1 starts a container, then I think that user-2 may stop it, destroy it or even run command on that container or connect via ssh to it....
1
vote
1answer
563 views

Briding LXD Containers to VLAN

I was trying to do something that is supposed to be pretty easy but for some reason it not work. I want to bridge two LXD containers to the same VLAN. To do this I create the VLAN interface over the ...
2
votes
1answer
623 views

Is lxd/lxc a suitable replacement to virtual machines (vSphere, for example) for server infrastructure? [closed]

I would like to move my servers to virtual machines. This is because it'll make it easier for me to fire up more machines and back them up in case the physical server is damaged (I'm not aware of ...
0
votes
0answers
207 views

How to set an IPv6 neighbour discovery proxy with Netplan?

How can I configure the following commands in Netplan? ip -6 neigh add proxy 2a03:4000:21b:44bc:1::1 dev ens3 ip -6 neigh add proxy 2a03:4000:21b:44bc:1::11 dev ens3 ip -6 neigh add proxy 2a03:4000:...
0
votes
1answer
118 views

LXD + ZFS on one-disc systems

I'd like to experiment with LXD on a dedicated NUC. Among other options, LXD supports ZFS. But I have the following questions: Case 1: Assume my NUC has one disc, say 256 GB, that supports the OS. ...
1
vote
2answers
2k views

How to resize lxc/lxd images, if i am using LVM backend?

I'm using LXD few years and I'm glad to use this platform in my testing environment. But few days ago, I couldn't install Microsoft SQL server 2017. The reason was, that I used default ZFS backend. ...
4
votes
0answers
281 views

How to enable hostname resolution (dns) for lxd containers from the lxd host?

How to enable lxd hostname resolution from the lxd host? After creating the below container: >>> lxc launch ubuntu: container Creating container Starting container >>> lxc list +--...
1
vote
0answers
493 views

HAProxy returns 503 (80 & 443 frontends + redirections managed by virtualhosts)

I've already looked for many posts, but no one solved my problem... Let me explain the context : 3 containers on a dedicated server : [10.173.223.10] haproxy [10.173.223.11] Container_A (contains ...
0
votes
1answer
626 views

ZFS file system and zpool size allocation

I am using zfs on some of my lxc containers at start when I was configuring I allocated 500GB my zpool list NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT lxd 496G ...
1
vote
2answers
2k views

How to create a non-nat lxd network bridge (using lxd network)?

How to create a non-nat lxd network bridge? I have tried the below network configs, then ran sudo service networking reload and lxc stop and lxc start for the container in question. I was unable to ...
1
vote
2answers
946 views

Move LXD container to other storage

I have an issue with my current storage.img file (btrfs). I had 2TB data inside a container and so the storage.img got 2TB large. After this I deleted everything, leaving me with 100GB of real data. ...
0
votes
1answer
346 views

How run docker on VDS (lxd/containers)

I have VDS like lxd/container (I see it df -h). Os is installed debian 7.11. Kernel: uname -r 4.13.0-19-generic I want to run mysql in docker which installed into VDS. I pull mysql: docker images ...
0
votes
0answers
81 views

Is it possible to get dynamic lease of IP address from LXD container on Google Compute Engine?

Followed “Ubiquiti Networks UniFi Controller in an Ubuntu LXD Machine Container“ when setting up a new Ubuntu VM on Google Compute Engine. But the container tries to lease an IP address, but nothing ...
2
votes
0answers
227 views

LXD external static ip

I'm using LXD for managing LXC containers. I used the "standard" bridged NAT setup up to now. But know I got an additional static ip which is external available. I want to attach it to my container ...
3
votes
1answer
723 views

How to shrink btrfs image file used by LXD storage?

I have btrfs image file set as backend for LXD (2.18) but I would like to shrink it's size. What I did: mounted image to loop device losetup /dev/loop1 /home/btrfs.img mounted device to /mnt dir ...
0
votes
1answer
1k views

Authenticate to LXD rest API over network , certificate auth keeps failing

I am trying to access LXD REST API over the Network. Followed : Link to Doc. lxc config set core.https_address "[::]:8443" lxc config set core.trust_password <some random password> curl -s -...
0
votes
1answer
235 views

Failed to create armhf machine on LXD

I am trying to make ubuntu 16 armhf machine on ubuntu 16 64 host machine. I tried withafter installing qemu-user-static packages. Running this command lxc launch images:ubuntu/xenial/armhf ...
0
votes
1answer
191 views

CentOS7 LXC Container shell access on Ubuntu 17.04 Host

I know this is probably google skills deficiency on my behalf but for the love of god I cant shell into a CentOS 7 container on an Ubuntu 17.04 host. user@ubuntu1704:~$ lxc shell centos7 user@...
1
vote
1answer
61 views

LXC 2.0 Ownership problems

If I launch an Ubuntu 16.04 container and install for instance memcached on it, then almost all the processes /proc//* descriptors are owned by nobody.nogroup or 65334.65334 Where as if I would ...
1
vote
1answer
680 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/* ...
1
vote
1answer
245 views

Limiting disk IO on LXD containers under a mdadm RAID 1 array

On a container running on a host with two disks on a mdadm RAID 1 array, I have tried without success to limit the disk IO of a LXD container named ci with: lxc config device set ci root limits.read ...
1
vote
1answer
2k views

Could not set limit for 'nofile' - “Operation not permitted” in a LXD unprivileged container

I am running a centos7 unprivileged LXD container on a ubuntu 17.04 host. I have a problem setting ulimit for NOFILE inside the container, if it is running in unprivileged mode. Bellow are the steps ...
5
votes
2answers
5k views

lxd container: port forwarding like docker

Is there a way to do port-forwarding in lxd-containers like docker does? I heard some rumours that there is no easy way. According to the homepage of lxd this is their goal: Intuitive (simple, ...