Public bug reported: How to produce? 1. On a latest Ubuntu 17.10 2. Install lxc1 (2.1.0 here) 3. Run as root: lxc-create --name=OracleLinux7 --template=oracle -- --arch=x86_64 --release=7.latest --rootfs=/mnt/disks/hgst/part_3/var/storage/<omitted>/lxc-images/OracleLinux7 4. Run as root: lxc-start --name=OracleLinux7
What actually happens? lxc-start: OracleLinux7: lxccontainer.c: wait_on_daemonized_start: 760 Received container state "ABORTING" instead of "RUNNING" lxc-start: OracleLinux7: tools/lxc_start.c: main: 368 The container failed to start. lxc-start: OracleLinux7: tools/lxc_start.c: main: 370 To get more details, run the container in foreground mode. lxc-start: OracleLinux7: tools/lxc_start.c: main: 372 Additional information can be obtained by setting the --logfile and --logpriority options. What should happen? Return nothing and start normally Additional information: lxc-start OracleLinux7 20180320175430.833 ERROR lxc_conf - conf.c:lxc_setup_ttydir_console:1621 - No such file or directory - failed with errno 2 to create /usr/lib/x86_64-linux-gnu/lxc/dev/lxc lxc-start OracleLinux7 20180320175430.833 ERROR lxc_conf - conf.c:lxc_setup:3226 - Failed to setup console lxc-start OracleLinux7 20180320175430.833 ERROR lxc_start - start.c:do_start:921 - Failed to setup container "OracleLinux7". lxc-start OracleLinux7 20180320175430.833 ERROR lxc_sync - sync.c:__sync_wait:57 - An error occurred in another process (expected sequence number 5) lxc-start OracleLinux7 20180320175430.892 ERROR lxc_container - lxccontainer.c:wait_on_daemonized_start:760 - Received container state "ABORTING" instead of "RUNNING" lxc-start OracleLinux7 20180320175430.892 ERROR lxc_start - start.c:__lxc_start:1451 - Failed to spawn container "OracleLinux7". lxc-start OracleLinux7 20180320175430.892 ERROR lxc_start_ui - tools/lxc_start.c:main:368 - The container failed to start. lxc-start OracleLinux7 20180320175430.892 ERROR lxc_start_ui - tools/lxc_start.c:main:370 - To get more details, run the container in foreground mode. lxc-start OracleLinux7 20180320175430.892 ERROR lxc_start_ui - tools/lxc_start.c:main:372 - Additional information can be obtained by setting the --logfile and --logpriority options. When I review the differences between /usr/share/lxc/config/debian.common.conf and /usr/share/lxc/config/oracle.common.conf. The following parameters are omitted from /usr/share/lxc/config/oracle.common.conf: # This derives from the global common config lxc.include = /usr/share/lxc/config/common.conf # Doesn't support consoles in /dev/lxc/ lxc.tty.dir = The following is set in /usr/share/lxc/config/common.conf: # Setup the LXC devices in /dev/lxc/ lxc.tty.dir = lxc ProblemType: Bug DistroRelease: Ubuntu 17.10 Package: lxc1 2.1.0-0ubuntu1 ProcVersionSignature: Ubuntu 4.13.0-37.42-generic 4.13.13 Uname: Linux 4.13.0-37-generic x86_64 ApportVersion: 2.20.7-0ubuntu3.7 Architecture: amd64 CurrentDesktop: Budgie:GNOME Date: Tue Mar 20 14:22:10 2018 InstallationDate: Installed on 2017-12-26 (84 days ago) InstallationMedia: Ubuntu-Budgie 17.10 "Artful Aardvark" - Release amd64 (20171017.1) SourcePackage: lxc UpgradeStatus: No upgrade log present (probably fresh install) defaults.conf: lxc.net.0.type = veth lxc.net.0.link = br1 lxc.net.0.flags = up lxc.net.0.hwaddr = 00:16:3e:xx:xx:xx lxcsyslog: Mar 20 12:28:40 budgie-desktop libvirtd[2563]: 2018-03-20 16:28:40.861+0000: 2591: error : lxcDomainUndefineFlags:534 : unsupported flags (0x3) in function lxcDomainUndefineFlags modified.conffile..etc.lxc.default.conf: lxc.net.0.type = veth lxc.net.0.link = br1 lxc.net.0.flags = up lxc.net.0.hwaddr = 00:16:3e:xx:xx:xx mtime.conffile..etc.lxc.default.conf: 2018-03-20T12:45:32.850543 ** Affects: lxc (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug artful ** Attachment added: "Container configuration" https://bugs.launchpad.net/bugs/1757229/+attachment/5085244/+files/config -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1757229 Title: Oracle containers will fail to start because of missing /usr/lib/x86_64-linux-gnu/lxc/dev To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1757229/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs