LXC container configuration

1 post / 0 new
#1 Fri, 03/03/2017 - 13:15
hostdog

LXC container configuration

Hello,

After installing Cloudmin with LXC support and routed network I faced the following 3 problems.

  1. Containers build and start successfully but weren't able to route traffic outside the host.
  2. I wasn't able to login via SSH terminal, it freezes after the error "stdin: is not a tty"
  3. I selected from Host Systems > LXC Host Systems > Host > "Store instance files in: LVM volume group" LXC however containers still uses host filesystem "/var/lib/lxc"

I managed to fix the error 1 and 2 with the following settings to the LXC container configuration file "/var/lib/lxc/mycontainer/config".

lxc.network.ipv4.gateway = 1.2.3.4
lxc.tty = 32
lxc.pts = 1024

Can anyone advice me how can I permanent add this settings at the provisioning script ?

Did I miss something with LVM Volumes or is it a cloudmin bug ?

Debian 8.7 Jessie
LXC 2.0.6 (debian backport)