The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [lxd]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
0answers
188 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 +--...
2
votes
1answer
182 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 ...
2
votes
1answer
498 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 ...
2
votes
0answers
214 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 ...
1
vote
2answers
540 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. ...
1
vote
1answer
158 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
1k 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 ...
1
vote
0answers
13 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@...
1
vote
1answer
276 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 ...
1
vote
0answers
277 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 ...
1
vote
2answers
1k 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
1answer
679 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. ...
1
vote
1answer
51 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
513 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
731 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
30 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....
0
votes
1answer
98 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. ...
0
votes
1answer
366 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 ...
0
votes
1answer
176 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@...
0
votes
0answers
12 views

ZFS for / on LXD host server [on hold]

I have a bunch of LXD hosts that currently use mdadm raid1 with LVM storage backend for LXD. It works great. However, most people recommend using ZFS for LXD, for many reasons. So I am considering ...
0
votes
0answers
25 views

How to set an LXD's veth MTU? (parent is a manual bridge)

Can't figure out how to make the veth devices come up with MTU 9000. This is on Ubuntu 18.04.2 with LXD 3.17. The hardware interface is set to 9000, the bridge is set to 9000, and until the LXD is ...
0
votes
1answer
24 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
25 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
0answers
54 views

Windows Folder Redirection, setting permissions with windows ACL

I'm relatively new to Windows server management. I'm trying to setup folder redirection with GPO. The file server that's getting redirected is in a LXD fedora container. for the most part I've been ...
0
votes
0answers
29 views

Slow performance with nested bridged interface

On my HP Proliant microserver gen 8 box I have Ubuntu 18.04 running as host OS. Initially I was planning to setup one production VM (vm-prod) with multiple services inside lxd containers (vm-prod-lxd-...
0
votes
0answers
59 views

Unable to create LXC container with specific image

I recently hit issue with the creation of LXC container: tsenov@hometower:~$ createContainer.sh tester 1 256MB lxd_sp0 2 Creating tester Error: Failed container creation: Create container from image: ...
0
votes
0answers
125 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
274 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
74 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 ...
0
votes
1answer
860 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
182 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 ...