Questions tagged [lxd]

65 questions
5
votes
2 answers

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, clear API and crisp command line experience) For me…
guettli
  • 3,113
  • 14
  • 59
  • 110
4
votes
0 answers

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…
Greg
  • 1,557
  • 5
  • 24
  • 35
4
votes
2 answers

No network connectivity in the LXC container set up in the "routed" mode

I'm experimenting with lxc/lxd in Vagrant, but i'm quite new to it. I managed to create running container, but I cannot ping anything (including 8.8.8.8) from inside of it. I can ping its IP from my top-level non-virtual system, but it refuses SSH…
Łukasz Zaroda
  • 97
  • 2
  • 11
3
votes
0 answers

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@lxdcontainer:~# grep -c processor /proc/cpuinfo…
3
votes
1 answer

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 mount /dev/loop1 /mnt/brtfs resized btrfs partition…
Kaburabu
  • 31
  • 3
3
votes
0 answers

Why su command takes to long in nested Debian LXD containers?

I observed that the command su takes too long (30 seconds) when it is executed in a LXD Debian container that is nested into an Ubuntu LXD container. This overhead does not occur Debian containers that are not nested, nor in Ubuntu containers…
Daniel Hernández
  • 253
  • 1
  • 2
  • 4
2
votes
1 answer

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

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 other benefits). While I use virtual machines…
The Quantum Physicist
  • 656
  • 2
  • 11
  • 25
2
votes
2 answers

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. The problem is now, that the storage.img did not…
Amon Bune
  • 41
  • 1
  • 5
2
votes
0 answers

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 but cant get it working within the LXD network…
Aaryaman
  • 43
  • 3
1
vote
1 answer

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 physical one and then I assign this to the same…
Gabriele
  • 61
  • 1
  • 7
1
vote
2 answers

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. Ok, I checked, that if I need ext4. I have to use…
Piduna
  • 501
  • 3
  • 10
  • 23
1
vote
0 answers

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 websites http & https, using hell.com and boom.net…
Arlyss
  • 11
  • 1
1
vote
2 answers

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 get the host and the containers to both be on the…
Greg
  • 1,557
  • 5
  • 24
  • 35
1
vote
1 answer

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 install memcached it on my host machine these would be…
1
vote
1 answer

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/* auto lo iface lo inet loopback auto br0 iface br0…
cyprian
  • 111
  • 1
1
2 3 4 5