← Back to team overview

touch-packages team mailing list archive

[Bug 1406945] Re: Difference between lxc autostart from init script and manual lxc-start call

 

[Expired for lxc (Ubuntu) because there has been no activity for 60
days.]

** Changed in: lxc (Ubuntu)
       Status: Incomplete => Expired

-- 
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/1406945

Title:
  Difference between lxc autostart from init script and manual lxc-start
  call

Status in lxc package in Ubuntu:
  Expired

Bug description:
  According to
  https://answers.launchpad.net/ubuntu/+source/lxc/+question/255408,
  there seem to be a difference between `lxc start` and the autostart
  feature lxc.start.auto.

  On my Ubuntu 14.10, I have problem starting up containers manually,
  but autostarting the same containers works without problems. I cannot
  see a difference, the file /etc/init/lxc-instance.conf is very simple
  and doesn't set any important additional environment variables.

  The log output is as follows

      # lxc-start -n vm-mycontainer -F 
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make / rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /dev rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /dev/pts rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /dev/shm rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /dev/mqueue rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /dev/hugepages rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /run rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /run/lock rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /run/user rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /run/user/23001/gvfs rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /sys rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /sys/kernel/security rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /sys/fs/cgroup rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /sys/fs/cgroup/systemd rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /sys/fs/cgroup/cpuset rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /sys/fs/cgroup/cpu,cpuacct rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /sys/fs/cgroup/memory rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /sys/fs/cgroup/devices rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /sys/fs/cgroup/freezer rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /sys/fs/cgroup/net_cls,net_prio rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /sys/fs/cgroup/blkio rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /sys/fs/cgroup/perf_event rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /sys/fs/cgroup/hugetlb rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /sys/fs/pstore rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /sys/kernel/debug rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /sys/fs/fuse/connections rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /proc rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /proc/sys/fs/binfmt_misc rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: remount_all_slave: 3884 Permission denied - Failed to make /opt rslave
      lxc-start: conf.c: remount_all_slave: 3885 Continuing...
      lxc-start: conf.c: setup_rootfs_pivot_root: 1052 Invalid argument - pivot_root syscall failed
      lxc-start: conf.c: setup_pivot_root: 1557 failed to setup pivot root
      lxc-start: conf.c: lxc_setup: 4114 failed to set rootfs for 'vm-mycontainer'
      lxc-start: start.c: do_start: 688 failed to setup the container
      lxc-start: sync.c: __sync_wait: 51 invalid sequence number 1. expected 2
      lxc-start: start.c: __lxc_start: 1087 failed to spawn 'vm-mycontainer'
      lxc-start: lxc_start.c: main: 337 The container failed to start.
      lxc-start: lxc_start.c: main: 341 Additional information can be obtained by setting the --logfile and --logpriority options.

  The interesting thing is that the rootfs is mounted into
  /usr/lib/x86_64-linux-gnu/lxc/ instead of /usr/lib/x86_64-linux-
  gnu/lxc/rootfs/ which doesn't seem to be the case when starting up the
  machine.

  
  ---

  # uname -a
  Linux legolas 3.16.0-29-generic #39-Ubuntu SMP Mon Dec 15 22:27:29 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

  # dpkg -s lxc
  Architecture: amd64
  Version: 1.1.0~alpha2-0ubuntu3.1

  # lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description: Ubuntu 14.10
  Release: 14.10
  Codename: utopic

  cat /var/lib/lxc/mycontainer/config
  # Template used to create this container: /usr/share/lxc/templates/lxc-debian
  # Parameters passed to the template:
  # For additional config options, please look at lxc.container.conf(5)
  lxc.network.type = veth
  lxc.network.flags = up
  lxc.network.link = lxcbr0
  lxc.network.hwaddr = 00:16:3e:74:10:05
  lxc.rootfs = /dev/vg_bk/backsys

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

  # Container specific configuration
  lxc.mount = /var/lib/lxc/mycontainer/fstab
  lxc.utsname = mycontainer
  lxc.arch = i686

  # Autostart container
  lxc.start.auto = 1
  lxc.start.delay = 60
  lxc.start.order = 4

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


References