Public bug reported:

When I issue a `systemctl reboot` within the container, instead of
rebooting, it stops with an error.

This is my config:

# Template used to create this container: /usr/share/lxc/templates/lxc-debian
# Parameters passed to the template: -r jessie
# Template script checksum (SHA-1): 70e3d3a3adf290e12fc3522b2066039e079d8f1d

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

lxc.net.0.type = veth
lxc.net.0.hwaddr = 00:16:3e:9c:68:09
lxc.net.0.flags = up
lxc.net.0.link = br0
lxc.rootfs.path = /dev/vmdata-vg/lxc-jessie
lxc.rootfs.options = subvol=@
lxc.mount.fstab = /var/lib/lxc/jessie/fstab
lxc.tty.max = 4
lxc.pty.max = 1024
lxc.arch = amd64
lxc.uts.name = jessie
lxc.cap.drop = sys_module mac_admin mac_override sys_time

I have a suspicion that it might ignore lxc.rootfs.options and tries to
mount the root BTRFS volume directly and can't find /sbin/init there.

** Affects: apparmor (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: lxc

** Attachment added: "LXC log TRACE"
   
https://bugs.launchpad.net/bugs/2003383/+attachment/5642597/+files/lxclog-jessie.log

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

Title:
  Unable to reboot LXC container

Status in apparmor package in Ubuntu:
  New

Bug description:
  When I issue a `systemctl reboot` within the container, instead of
  rebooting, it stops with an error.

  This is my config:

  # Template used to create this container: /usr/share/lxc/templates/lxc-debian
  # Parameters passed to the template: -r jessie
  # Template script checksum (SHA-1): 70e3d3a3adf290e12fc3522b2066039e079d8f1d

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

  lxc.net.0.type = veth
  lxc.net.0.hwaddr = 00:16:3e:9c:68:09
  lxc.net.0.flags = up
  lxc.net.0.link = br0
  lxc.rootfs.path = /dev/vmdata-vg/lxc-jessie
  lxc.rootfs.options = subvol=@
  lxc.mount.fstab = /var/lib/lxc/jessie/fstab
  lxc.tty.max = 4
  lxc.pty.max = 1024
  lxc.arch = amd64
  lxc.uts.name = jessie
  lxc.cap.drop = sys_module mac_admin mac_override sys_time

  I have a suspicion that it might ignore lxc.rootfs.options and tries
  to mount the root BTRFS volume directly and can't find /sbin/init
  there.

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


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to