Debain container
lxc-create -t download( selected -> debian jessie amd64)  -n kjell  -B zfs

lxc-start -n kjell

function of container is remote access ssh.


 Template used to create this container: /usr/share/lxc/templates/lxc-download
# Parameters passed to the template:
# For additional config options, please look at lxc.container.conf(5)

# Uncomment the following line to support nesting containers:
#lxc.include = /usr/share/lxc/config/nesting.conf
# (Be aware this has security implications)


# Distribution configuration
lxc.include = /usr/share/lxc/config/debian.common.conf
lxc.arch = x86_64

# Container specific configuration
lxc.rootfs = /tank/host/kjell/rootfs
lxc.rootfs.backend = zfs
lxc.utsname = kjell

lxc.start.auto = 1
lxc.start.delay = 5
lxc.start.order = 50

# Network configuration
lxc.network.type = veth
lxc.network.link = br0
lxc.network.flags = up
lxc.network.hwaddr = 00:16:3e:13:89:92
lxc.logfile = /tank/host/kjell/kjell.log
lxc.loglevel = 1
==================================================

Ubuntu Container:

lxc-create -t download( selected -> ubunti xenian amd64)  -n mail  -B
zfs


lxc-start -n mail

container is mail server, postfix dovecot

config:

# Template used to create this container: /usr/share/lxc/templates/lxc-ubuntu
# Parameters passed to the template:
# For additional config options, please look at lxc.container.conf(5)

# Uncomment the following line to support nesting containers:
#lxc.include = /usr/share/lxc/config/nesting.conf
# (Be aware this has security implications)
#lxc.aa_profile = unconfined
lxc.start.auto = 1
lxc.start.delay = 8
lxc.start.order = 8


# Common configuration
lxc.include = /usr/share/lxc/config/ubuntu.common.conf

# Container specific configuration
lxc.rootfs = /tank/host/mail/rootfs
lxc.utsname = mail
lxc.arch = amd64

# Network configuration
lxc.network.type = veth
lxc.network.link = br0
lxc.network.flags = up
lxc.network.hwaddr = 00:16:3e:e9:2c:b6

================

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1572061

Title:
  login sessions hangs in lxc

Status in lxc package in Ubuntu:
  Incomplete

Bug description:
  login to lxc container hangs after login prompt. This happends to randomly 
lxc container while other containers on same host work as expected. 
  Several protocols affected,  ssh, dovecot & smtp for example. DNS config is 
ok. lxc-attach -n name works and I'm able to reach outside network, do 
resolving etc.
  if I do a lxc-stop and start the container works again. after a day or two  
samething occurs again to a random container on the same host.
   Could it be some kind of apparmor blocking ?

  
  HostOs 
  Description:    Ubuntu 16.04 LTS
  Release:        16.04

  network mode

  iface br0 inet static
          bridge_ports eno1
           address x.x.x.x
          netmask 255.255.255.0
          network x.x.x.x
          broadcast x.x.x.x
          gateway x.x.x.x
          dns-nameservers x.x.x.x
          dns-search domain.com

  lxc-os ubuntu xenial &  debian jessie

  configured with static ip

  best regards
  Bjorn

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1572061/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to