Your message dated Thu, 13 Mar 2014 19:11:01 +0100
with message-id <[email protected]>
and subject line Re: pu: package lxc/lxc version: 0.8.0-rc1
has caused the Debian Bug report #741517,
regarding pu: package lxc/lxc version: 0.8.0-rc1
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
741517: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741517
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: release.debian.org
Severity: normal
User: [email protected]

Lxc: lxc version: 0.8.0-rc1

System: Debian GNU/Linux 7.4

Kernel: 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux


Bug description:

The problem is that we can't start container in lxc.

We have mounted cgoup:

cat /etc/fstab
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/sda2       /       ext4    errors=remount-ro,relatime      0       1
/dev/sda3       swap    swap    defaults        0       0
/dev/sda4       /home   ext4    defaults,relatime       1       2
proc            /proc   proc    defaults                0       0
sysfs           /sys    sysfs   defaults                0       0
tmpfs           /dev/shm        tmpfs   defaults        0       0
devpts          /dev/pts        devpts  defaults        0       0
cgroup          /sys/fs/cgroup  cgroup  defaults        0       0

ls -l /cgroup/lxc

-r--r--r-- 1 root root 0 Mar 13 12:50 blkio.io_merged
-r--r--r-- 1 root root 0 Mar 13 12:50 blkio.io_queued
-r--r--r-- 1 root root 0 Mar 13 12:50 blkio.io_service_bytes
-r--r--r-- 1 root root 0 Mar 13 12:50 blkio.io_service_time
-r--r--r-- 1 root root 0 Mar 13 12:50 blkio.io_serviced
-r--r--r-- 1 root root 0 Mar 13 12:50 blkio.io_wait_time
--w------- 1 root root 0 Mar 13 12:50 blkio.reset_stats
-r--r--r-- 1 root root 0 Mar 13 12:50 blkio.sectors
-r--r--r-- 1 root root 0 Mar 13 12:50 blkio.time
-rw-r--r-- 1 root root 0 Mar 13 12:50 blkio.weight
-rw-r--r-- 1 root root 0 Mar 13 12:50 blkio.weight_device
-rw-r--r-- 1 root root 0 Mar 13 12:52 cgroup.clone_children
--w--w--w- 1 root root 0 Mar 13 12:50 cgroup.event_control
-rw-r--r-- 1 root root 0 Mar 13 12:50 cgroup.procs
-rw-r--r-- 1 root root 0 Mar 13 12:50 cpu.shares
-r--r--r-- 1 root root 0 Mar 13 12:50 cpuacct.stat
-rw-r--r-- 1 root root 0 Mar 13 12:50 cpuacct.usage
-r--r--r-- 1 root root 0 Mar 13 12:50 cpuacct.usage_percpu
-rw-r--r-- 1 root root 0 Mar 13 12:50 cpuset.cpu_exclusive
-rw-r--r-- 1 root root 0 Mar 13 12:50 cpuset.cpus
-rw-r--r-- 1 root root 0 Mar 13 12:50 cpuset.mem_exclusive
-rw-r--r-- 1 root root 0 Mar 13 12:50 cpuset.mem_hardwall
-rw-r--r-- 1 root root 0 Mar 13 12:50 cpuset.memory_migrate
-r--r--r-- 1 root root 0 Mar 13 12:50 cpuset.memory_pressure
-rw-r--r-- 1 root root 0 Mar 13 12:50 cpuset.memory_pressure_enabled
-rw-r--r-- 1 root root 0 Mar 13 12:50 cpuset.memory_spread_page
-rw-r--r-- 1 root root 0 Mar 13 12:50 cpuset.memory_spread_slab
-rw-r--r-- 1 root root 0 Mar 13 12:50 cpuset.mems
-rw-r--r-- 1 root root 0 Mar 13 12:50 cpuset.sched_load_balance
-rw-r--r-- 1 root root 0 Mar 13 12:50 cpuset.sched_relax_domain_level
--w------- 1 root root 0 Mar 13 12:50 devices.allow
--w------- 1 root root 0 Mar 13 12:50 devices.deny
-r--r--r-- 1 root root 0 Mar 13 12:50 devices.list
drwxr-xr-x 4 root root 0 Mar 13 12:50 libvirt
drwxr-xr-x 2 root root 0 Mar 13 12:52 lxc
-rw-r--r-- 1 root root 0 Mar 13 12:50 memory.failcnt
--w------- 1 root root 0 Mar 13 12:50 memory.force_empty
-rw-r--r-- 1 root root 0 Mar 13 12:50 memory.limit_in_bytes
-rw-r--r-- 1 root root 0 Mar 13 12:50 memory.max_usage_in_bytes
-rw-r--r-- 1 root root 0 Mar 13 12:50 memory.move_charge_at_immigrate
-r--r--r-- 1 root root 0 Mar 13 12:50 memory.numa_stat
-rw-r--r-- 1 root root 0 Mar 13 12:50 memory.oom_control
-rw-r--r-- 1 root root 0 Mar 13 12:50 memory.soft_limit_in_bytes
-r--r--r-- 1 root root 0 Mar 13 12:50 memory.stat
-rw-r--r-- 1 root root 0 Mar 13 12:50 memory.swappiness
-r--r--r-- 1 root root 0 Mar 13 12:50 memory.usage_in_bytes
-rw-r--r-- 1 root root 0 Mar 13 12:50 memory.use_hierarchy
-rw-r--r-- 1 root root 0 Mar 13 12:50 net_cls.classid
-rw-r--r-- 1 root root 0 Mar 13 12:50 notify_on_release
-rw-r--r-- 1 root root 0 Mar 13 12:50 release_agent
-rw-r--r-- 1 root root 0 Mar 13 12:50 tasks


 lxc-checkconfig
Kernel config /proc/config.gz not found, looking in other places...
Found kernel config file /boot/config-3.2.0-4-amd64
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: enabled
Network namespace: enabled
Multiple /dev/pts instances: enabled

--- Control groups ---
Cgroup: enabled
Cgroup clone_children flag: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled

--- Misc ---
Veth pair device: enabled
Macvlan: enabled
Vlan: enabled
File capabilities: enabled


lxc-start -n serviceflow
lxc-start: open
/sys/fs/cgroup/lxc/serviceflow/memory.memsw.limit_in_bytes : No such
file or directory
lxc-start: failed to setup the cgroups for 'serviceflow'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'serviceflow'

lxc.log

      lxc-start 1394710858.184 DEBUG    lxc_conf - allocated pty
'/dev/pts/2' (4/5)
      lxc-start 1394710858.184 INFO     lxc_conf - tty's configured
      lxc-start 1394710858.184 DEBUG    lxc_console - using '/dev/tty'
as console
      lxc-start 1394710858.184 DEBUG    lxc_start - sigchild handler set
      lxc-start 1394710858.184 INFO     lxc_start - 'serviceflow' is initialized
      lxc-start 1394710858.186 DEBUG    lxc_conf - mac address of host
interface 'vethaHK85o' changed to private fe:ef:09:e5:58:e5
      lxc-start 1394710858.187 DEBUG    lxc_conf - instanciated veth
'vethaHK85o/vethPpKeis', index is '55'
      lxc-start 1394710858.188 DEBUG    lxc_cgroup - checking '/' (rootfs)
      lxc-start 1394710858.188 DEBUG    lxc_cgroup - checking '/sys' (sysfs)
      lxc-start 1394710858.188 DEBUG    lxc_cgroup - checking '/proc' (proc)
      lxc-start 1394710858.188 DEBUG    lxc_cgroup - checking '/dev' (devtmpfs)
      lxc-start 1394710858.188 DEBUG    lxc_cgroup - checking
'/dev/pts' (devpts)
      lxc-start 1394710858.188 DEBUG    lxc_cgroup - checking '/run' (tmpfs)
      lxc-start 1394710858.188 DEBUG    lxc_cgroup - checking '/' (ext4)
      lxc-start 1394710858.188 DEBUG    lxc_cgroup - checking
'/run/lock' (tmpfs)
      lxc-start 1394710858.188 DEBUG    lxc_cgroup - checking '/dev/shm' (tmpfs)
      lxc-start 1394710858.188 DEBUG    lxc_cgroup - checking '/home' (ext4)
      lxc-start 1394710858.188 DEBUG    lxc_cgroup - checking '/cgroup' (cgroup)
      lxc-start 1394710858.188 INFO     lxc_cgroup - [1] found cgroup
mounted at 
'/cgroup',opts='rw,relatime,perf_event,blkio,net_cls,freezer,devices,memory,cpuacct,cpu,cpuset,clone_children'
      lxc-start 1394710858.188 DEBUG    lxc_cgroup - get_init_cgroup:
found init cgroup for subsys (null) at /


      lxc-start 1394710858.188 DEBUG    lxc_cgroup - cgroup /cgroup
has flags 0x2
      lxc-start 1394710858.214 INFO     lxc_cgroup - created cgroup
'/cgroup//lxc/serviceflow'
      lxc-start 1394710858.214 DEBUG    lxc_conf - move 'eth0' to '6407'
      lxc-start 1394710858.310 DEBUG    lxc_start - Dropped cap_sys_boot

      lxc-start 1394710858.310 INFO     lxc_conf - 'serviceflow'
hostname has been setup
      lxc-start 1394710858.367 DEBUG    lxc_conf - mac address
'52:54:00:10:01:00' on 'eth0' has been setup
      lxc-start 1394710858.368 DEBUG    lxc_conf - 'eth0' has been setup
      lxc-start 1394710858.368 INFO     lxc_conf - network has been setup
      lxc-start 1394710858.368 DEBUG    lxc_conf - mounted
'/home/ladm/ROOT/serviceflow' on '/usr/lib/x86_64-linux-gnu/lxc'
      lxc-start 1394710858.368 DEBUG    lxc_conf - mounted 'none' on
'/usr/lib/x86_64-linux-gnu/lxc//dev/pts', type 'devpts'
      lxc-start 1394710858.368 DEBUG    lxc_conf - mounted 'none' on
'/usr/lib/x86_64-linux-gnu/lxc//proc', type 'proc'
      lxc-start 1394710858.368 DEBUG    lxc_conf - mounted 'none' on
'/usr/lib/x86_64-linux-gnu/lxc//sys', type 'sysfs'
      lxc-start 1394710858.368 DEBUG    lxc_conf - mounted 'none' on
'/usr/lib/x86_64-linux-gnu/lxc//dev/shm', type 'tmpfs'
      lxc-start 1394710858.368 INFO     lxc_conf - mount points have been setup
      lxc-start 1394710858.368 INFO     lxc_conf - mount points have been setup
      lxc-start 1394710858.368 DEBUG    lxc_cgroup -
lxc_cgroup_path_get: called for subsys memory name serviceflow

      lxc-start 1394710858.368 DEBUG    lxc_cgroup - using cgroup
mounted at '/cgroup/lxc'
      lxc-start 1394710858.368 DEBUG    lxc_cgroup -
lxc_cgroup_path_get: returning /cgroup/lxc/serviceflow for subsystem
memory.limit_in_bytes
      lxc-start 1394710858.368 DEBUG    lxc_conf - cgroup
'memory.limit_in_bytes' set to '128M'
      lxc-start 1394710858.368 DEBUG    lxc_cgroup -
lxc_cgroup_path_get: called for subsys memory name serviceflow

      lxc-start 1394710858.368 DEBUG    lxc_cgroup - using cgroup
mounted at '/cgroup/lxc'
      lxc-start 1394710858.368 DEBUG    lxc_cgroup -
lxc_cgroup_path_get: returning /cgroup/lxc/serviceflow for subsystem
memory.memsw.limit_in_bytes
      lxc-start 1394710858.368 ERROR    lxc_cgroup - open
/cgroup/lxc/serviceflow/memory.memsw.limit_in_bytes : No such file or
directory
      lxc-start 1394710858.368 ERROR    lxc_conf - failed to setup the
cgroups for 'serviceflow'
      lxc-start 1394710858.368 ERROR    lxc_start - failed to setup
the container
      lxc-start 1394710858.368 ERROR    lxc_sync - invalid sequence
number 1. expected 2
      lxc-start 1394710858.368 ERROR    lxc_start - failed to spawn
'serviceflow'
      lxc-start 1394710858.368 DEBUG    lxc_cgroup - get_init_cgroup:
found init cgroup for subsys (null) at /


      lxc-start 1394710858.368 DEBUG    lxc_cgroup - destroying
/cgroup//lxc/serviceflow

      lxc-start 1394710858.482 DEBUG    lxc_cgroup -
'/cgroup//lxc/serviceflow' unlinked

menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64' --class debian
--class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='(hd0,gpt2)'
        search --no-floppy --fs-uuid --set=root
06ac768b-cd1a-46c2-a218-a5998816b58b
        echo    'Loading Linux 3.2.0-4-amd64 ...'
        linux   /boot/vmlinuz-3.2.0-4-amd64 root=/dev/sda2 ro
cgroup_enable=memory quiet
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-3.2.0-4-amd64

lxc.conf
lxc.utsname=serviceflow
lxc.network.type=veth
lxc.network.flags=up
lxc.network.link=br0_britenet
lxc.network.hwaddr=52:54:00:10:01:00
lxc.network.ipv4=10.1.10.100/24
lxc.network.name=eth0
lxc.cgroup.memory.limit_in_bytes=128M
lxc.cgroup.memory.memsw.limit_in_bytes=256M
lxc.tty=1
lxc.mounts=/home/ladm/CONF/serviceflow/fstab
lxc.rootfs=/home/ladm/ROOT/serviceflow


cat /proc/cgroup

root@bumbelebee:/home/mtomala/# cat /proc/cgroups
#subsys_name    hierarchy       num_cgroups     enabled
cpuset  1       5       1
cpu     1       5       1
cpuacct 1       5       1
memory  1       5       1
devices 1       5       1
freezer 1       5       1
net_cls 1       5       1
blkio   1       5       1
perf_event      1       5       1

--- End Message ---
--- Begin Message ---
quoting from the readme file:

---snip---
[...]

In order to enable the memory controller for Debian wheezy, the following
boot parameter needs to be used:

        cgroup_enable=memory

[...]
---snap---

-- 
Address:        Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email:          [email protected]
Internet:       http://people.progress-technologies.net/~daniel.baumann/

--- End Message ---

Reply via email to