lxc-test-unpriv revision 01c05c821093dc854def146d4bab62885d8eb664
369N/A# lxc: linux Container library 369N/A# Serge Hallyn <serge.hallyn@ubuntu.com> 369N/A# This is a test script for unprivileged containers 369N/A# This library is free software; you can redistribute it and/or 369N/A# modify it under the terms of the GNU Lesser General Public 369N/A# License as published by the Free Software Foundation; either 369N/A# version 2.1 of the License, or (at your option) any later version. 369N/A# This library is distributed in the hope that it will be useful, 369N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of 369N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 369N/A# Lesser General Public License for more details. 369N/A# You should have received a copy of the GNU Lesser General Public 5680N/A# License along with this library; if not, write to the Free Software 5680N/A# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 369N/A# This test assumes an Ubuntu host 369N/A echo "ERROR: Must run as root." lxc.network.link = lxcbr0 lxc.id_map = u 0 910000 9999 lxc.id_map = g 0 910000 9999 # default release is trusty, or the systems release if recognized # Copy the download template cache if available # Make sure we can start it - twice [
"$p1" !=
"-1" ] ||
{ echo "Failed to start container c1 (run $count)"; false; }[
"$p1" !=
"-1" ] ||
{ echo "Failed to start container c2"; false; } echo "Testing containers under different cgroups per subsystem" [
"$p1" !=
"-1" ] ||
{ echo "Failed to start container c1"; false; } echo "Testing lxc-attach and lxc-cgroup from different cgroup"