[opensuse] LXC Ubuntu Containers Seg Fault on Starting
Hello, I'm having trouble getting LXC Ubuntu containers to configure or start correctly in OpenSuse 12.1. While I am able to create OpenSuse containers just fine using the LXC provided config scripts, any Ubuntu containers seg fault when starting. You can chroot into the container, though /proc, etc. is not available, and the container will not start via lxc-start. The examples below are for oneiric, but the same occurs for other Ubuntu releases. I've looked at /usr/lib64/lxc/templates/lxc-ubuntu and tried to run this directly (outside lxc-create) but have not been able to isolate the issue further. I would appreciate any suggestions anyone may have to help debug further. Thank you, Pete * * * * * * * Environments: * * * * * * * OpenSuse 12.1 2.6.37.6-0.5-desktop x86_64 lxc-0.7.5-4.5.1.x86_64 OpenSuse 12.1 3.4.0-compiled (from git.kernel.org) * * * * * Get Tools: * * * * * zypper install deb lxc wget http://download.opensuse.org/repositories/home:/flichtenheld/openSUSE_12.1/n... rpm -ivh debootstrap-1.0.41-17.1.noarch.rpm * * * * * * * * * Create Container: * * * * * * * * * lxc-create -t ubuntu -n oneiric -f /usr/lib64/lxc/templates/lxc-ubuntu -- -r oneiric -a i386 It downloads the base Ubuntu packages and completes with: ... Download complete. Copy /var/cache/lxc/oneiric/rootfs-i386 to /var/lib/lxc/oneiric/rootfs ... Copying rootfs to /var/lib/lxc/oneiric/rootfs ...Please change root-password ! Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: lxcguest 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 6962 B of archives. After this operation, 115 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! lxcguest Get:1 http://archive.ubuntu.com/ubuntu/ oneiric/main lxcguest i386 0.7.5-0ubuntu8 [6962 B] Fetched 6962 B in 1s (4860 B/s) perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "en_US.UTF-8", LANG = "POSIX" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Can not write log, openpty() failed (/dev/pts not mounted?) Selecting previously deselected package lxcguest. (Reading database ... 10108 files and directories currently installed.) Unpacking lxcguest (from .../lxcguest_0.7.5-0ubuntu8_i386.deb) ... Can not write log, openpty() failed (/dev/pts not mounted?) Setting up lxcguest (0.7.5-0ubuntu8) ... 'ubuntu' template installed 'oneiric' created callandor:~ # lxc-start --name oneiric Segmentation fault Starting with strace ends with: getuid() = 0 getgid() = 0 geteuid() = 0 brk(0) = 0x604000 brk(0x625000) = 0x625000 access("/var/lib/lxc/oneiric/config", F_OK) = 0 open("/var/lib/lxc/oneiric/config", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0755, st_size=13082, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1e02c53000 read(3, "#!/bin/bash\n\n#\n# template script"..., 4096) = 4096 read(3, "ase'\"\n\t\treturn 1\n\t fi\n\tfi\n\n\te"..., 4096) = 4096 --- {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x12} (Segmentation fault) --- +++ killed by SIGSEGV +++ Segmentation fault Section from /var/lib/lxc/oneiric/config where the last read occurs: echo "Checking cache download in $cache/rootfs-$arch ... " if [ ! -e "$cache/rootfs-$arch" ]; then download_ubuntu $cache $arch $release if [ $? -ne 0 ]; then echo "Failed to download 'ubuntu $release base'" return 1 fi fi (/var/cache/lxc/oneiric/rootfs-i386 exists) * * * * * * * * * Alt config methoc * * * * * * * * * Tried running the config script directy: bash /var/lib/lxc/oneiric/config --path /var/lib/lxc/oneiric/rootfs/ -r oneiric -a i386 callandor:~ # bash /var/lib/lxc/oneiric/config -p /var/lib/lxc/oneiric/ -a i686 -r oneiric debootstrap is /usr/sbin/debootstrap Checking cache download in /var/cache/lxc/oneiric/rootfs-i386 ... Copy /var/cache/lxc/oneiric/rootfs-i386 to /var/lib/lxc/oneiric//rootfs ... Copying rootfs to /var/lib/lxc/oneiric//rootfs ...Please change root-password ! /var/lib/lxc/oneiric/config: line 169: [: =: unary operator expected Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: lxcguest 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/6962 B of archives. After this operation, 115 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! lxcguest perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "en_US.UTF-8", LANG = "POSIX" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Can not write log, openpty() failed (/dev/pts not mounted?) Selecting previously deselected package lxcguest. (Reading database ... 10108 files and directories currently installed.) Unpacking lxcguest (from .../lxcguest_0.7.5-0ubuntu8_i386.deb) ... Can not write log, openpty() failed (/dev/pts not mounted?) Setting up lxcguest (0.7.5-0ubuntu8) ... /var/lib/lxc/oneiric/config: line 498: lxc.utsname: command not found /var/lib/lxc/oneiric/config: line 500: lxc.tty: command not found /var/lib/lxc/oneiric/config: line 501: lxc.pts: command not found /var/lib/lxc/oneiric/config: line 502: lxc.rootfs: command not found /var/lib/lxc/oneiric/config: line 503: lxc.mount: command not found /var/lib/lxc/oneiric/config: line 504: lxc.arch: command not found /var/lib/lxc/oneiric/config: line 506: lxc.cgroup.devices.deny: command not found /var/lib/lxc/oneiric/config: line 508: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 509: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 511: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 512: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 516: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 517: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 518: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 519: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 521: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 523: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 524: lxc.utsname: command not found /var/lib/lxc/oneiric/config: line 526: lxc.tty: command not found /var/lib/lxc/oneiric/config: line 527: lxc.pts: command not found /var/lib/lxc/oneiric/config: line 528: lxc.rootfs: command not found /var/lib/lxc/oneiric/config: line 529: lxc.mount: command not found /var/lib/lxc/oneiric/config: line 530: lxc.arch: command not found /var/lib/lxc/oneiric/config: line 532: lxc.cgroup.devices.deny: command not found /var/lib/lxc/oneiric/config: line 534: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 535: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 537: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 538: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 542: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 543: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 544: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 545: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 547: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 549: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 550: lxc.utsname: command not found /var/lib/lxc/oneiric/config: line 552: lxc.tty: command not found /var/lib/lxc/oneiric/config: line 553: lxc.pts: command not found /var/lib/lxc/oneiric/config: line 554: lxc.rootfs: command not found /var/lib/lxc/oneiric/config: line 555: lxc.mount: command not found /var/lib/lxc/oneiric/config: line 556: lxc.arch: command not found /var/lib/lxc/oneiric/config: line 558: lxc.cgroup.devices.deny: command not found /var/lib/lxc/oneiric/config: line 560: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 561: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 563: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 564: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 568: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 569: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 570: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 571: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 573: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 575: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 576: lxc.utsname: command not found /var/lib/lxc/oneiric/config: line 578: lxc.tty: command not found /var/lib/lxc/oneiric/config: line 579: lxc.pts: command not found /var/lib/lxc/oneiric/config: line 580: lxc.rootfs: command not found /var/lib/lxc/oneiric/config: line 581: lxc.mount: command not found /var/lib/lxc/oneiric/config: line 582: lxc.arch: command not found /var/lib/lxc/oneiric/config: line 584: lxc.cgroup.devices.deny: command not found /var/lib/lxc/oneiric/config: line 586: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 587: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 589: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 590: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 594: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 595: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 596: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 597: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 599: lxc.cgroup.devices.allow: command not found /var/lib/lxc/oneiric/config: line 601: lxc.cgroup.devices.allow: command not found -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (1)
-
Pete Eby