Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@xubuntu:~# sh script.sh
- + echo ==== SYSTEM INFO & INSTALL ====
- ==== SYSTEM INFO & INSTALL ====
- + lsb_release -a
- No LSB modules are available.
- Distributor ID: Ubuntu
- Description: Ubuntu 15.04
- Release: 15.04
- Codename: vivid
- + uname -a
- Linux xubuntu 3.19.0-15-generic #15-Ubuntu SMP Thu Apr 16 23:32:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
- + apt-get update
- Ign cdrom://Xubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422.1) vivid InRelease
- Ign cdrom://Xubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422.1) vivid/main Translation-en_US
- Ign cdrom://Xubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422.1) vivid/main Translation-en
- Ign cdrom://Xubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422.1) vivid/multiverse Translation-en_US
- Ign cdrom://Xubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422.1) vivid/multiverse Translation-en
- Ign cdrom://Xubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422.1) vivid/restricted Translation-en_US
- Ign cdrom://Xubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422.1) vivid/restricted Translation-en
- Ign cdrom://Xubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422.1) vivid/universe Translation-en_US
- Ign cdrom://Xubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422.1) vivid/universe Translation-en
- Ign http://archive.ubuntu.com vivid InRelease
- Ign http://security.ubuntu.com vivid-security InRelease
- Ign http://archive.ubuntu.com vivid-updates InRelease
- Get:1 http://security.ubuntu.com vivid-security Release.gpg [933 B]
- Get:2 http://archive.ubuntu.com vivid Release.gpg [933 B]
- Get:3 http://security.ubuntu.com vivid-security Release [63.5 kB]
- Get:4 http://archive.ubuntu.com vivid-updates Release.gpg [933 B]
- Get:5 http://archive.ubuntu.com vivid Release [217 kB]
- Get:6 http://security.ubuntu.com vivid-security/main amd64 Packages [30.5 kB]
- Get:7 http://security.ubuntu.com vivid-security/restricted amd64 Packages [28 B]
- Get:8 http://security.ubuntu.com vivid-security/universe amd64 Packages [12.6 kB]
- Get:9 http://security.ubuntu.com vivid-security/multiverse amd64 Packages [1,159 B]
- Get:10 http://security.ubuntu.com vivid-security/main Translation-en [16.0 kB]
- Get:11 http://security.ubuntu.com vivid-security/multiverse Translation-en [601 B]
- Get:12 http://security.ubuntu.com vivid-security/restricted Translation-en [14 B]
- Get:13 http://security.ubuntu.com vivid-security/universe Translation-en [8,975 B]
- Get:14 http://archive.ubuntu.com vivid-updates Release [63.5 kB]
- Get:15 http://archive.ubuntu.com vivid/main amd64 Packages [1,364 kB]
- Get:16 http://archive.ubuntu.com vivid/restricted amd64 Packages [15.4 kB]
- Get:17 http://archive.ubuntu.com vivid/universe amd64 Packages [6,485 kB]
- Get:18 http://archive.ubuntu.com vivid/multiverse amd64 Packages [134 kB]
- Get:19 http://archive.ubuntu.com vivid/main Translation-en [793 kB]
- Hit http://archive.ubuntu.com vivid/multiverse Translation-en
- Hit http://archive.ubuntu.com vivid/restricted Translation-en
- Get:20 http://archive.ubuntu.com vivid/universe Translation-en [4,456 kB]
- Get:21 http://archive.ubuntu.com vivid-updates/main amd64 Packages [55.8 kB]
- Get:22 http://archive.ubuntu.com vivid-updates/restricted amd64 Packages [28 B]
- Get:23 http://archive.ubuntu.com vivid-updates/universe amd64 Packages [30.4 kB]
- Get:24 http://archive.ubuntu.com vivid-updates/multiverse amd64 Packages [1,159 B]
- Get:25 http://archive.ubuntu.com vivid-updates/main Translation-en [27.1 kB]
- Get:26 http://archive.ubuntu.com vivid-updates/multiverse Translation-en [601 B]
- Get:27 http://archive.ubuntu.com vivid-updates/restricted Translation-en [14 B]
- Get:28 http://archive.ubuntu.com vivid-updates/universe Translation-en [17.3 kB]
- Fetched 13.8 MB in 55s (250 kB/s)
- Reading package lists... Done
- + apt-get install -y lxc
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following extra packages will be installed:
- bridge-utils cgmanager cloud-image-utils debootstrap distro-info
- distro-info-data euca2ools libaio1 libboost-thread1.55.0 liblxc1 librados2
- librbd1 libseccomp2 lxc-templates lxcfs python-ndg-httpsclient
- python-requestbuilder python-requests python-setuptools python-urllib3
- python3-lxc qemu-utils sharutils uidmap
- Suggested packages:
- shunit2 lxctl qemu-user-static bsd-mailx mailx
- The following NEW packages will be installed:
- bridge-utils cgmanager cloud-image-utils debootstrap distro-info
- distro-info-data euca2ools libaio1 libboost-thread1.55.0 liblxc1 librados2
- librbd1 libseccomp2 lxc lxc-templates lxcfs python-ndg-httpsclient
- python-requestbuilder python-requests python-setuptools python-urllib3
- python3-lxc qemu-utils sharutils uidmap
- 0 upgraded, 25 newly installed, 0 to remove and 41 not upgraded.
- Need to get 5,699 kB of archives.
- After this operation, 22.7 MB of additional disk space will be used.
- Get:1 http://archive.ubuntu.com/ubuntu/ vivid/main libaio1 amd64 0.3.110-1 [6,454 B]
- Get:2 http://security.ubuntu.com/ubuntu/ vivid-security/main qemu-utils amd64 1:2.2+dfsg-5expubuntu9.1 [445 kB]
- Get:3 http://archive.ubuntu.com/ubuntu/ vivid/main libboost-thread1.55.0 amd64 1.55.0+dfsg-3ubuntu2 [31.5 kB]
- Get:4 http://archive.ubuntu.com/ubuntu/ vivid/main cgmanager amd64 0.36-2ubuntu5 [73.8 kB]
- Get:5 http://archive.ubuntu.com/ubuntu/ vivid/main libseccomp2 amd64 2.1.1-1 [26.3 kB]
- Get:6 http://archive.ubuntu.com/ubuntu/ vivid/main liblxc1 amd64 1.1.2-0ubuntu3 [175 kB]
- Get:7 http://archive.ubuntu.com/ubuntu/ vivid/main librados2 amd64 0.94.1-0ubuntu1 [1,550 kB]
- Get:8 http://archive.ubuntu.com/ubuntu/ vivid/main librbd1 amd64 0.94.1-0ubuntu1 [1,684 kB]
- Get:9 http://archive.ubuntu.com/ubuntu/ vivid/main python-urllib3 all 1.9.1-3 [49.1 kB]
- Get:10 http://archive.ubuntu.com/ubuntu/ vivid/main python-requests all 2.4.3-6 [193 kB]
- Get:11 http://archive.ubuntu.com/ubuntu/ vivid/main python-requestbuilder all 0.2.3-1 [27.2 kB]
- Get:12 http://archive.ubuntu.com/ubuntu/ vivid/main bridge-utils amd64 1.5-7ubuntu1 [29.1 kB]
- Get:13 http://archive.ubuntu.com/ubuntu/ vivid-updates/main distro-info-data all 0.26ubuntu0.1 [4,056 B]
- Get:14 http://archive.ubuntu.com/ubuntu/ vivid/main distro-info amd64 0.14 [20.1 kB]
- Get:15 http://archive.ubuntu.com/ubuntu/ vivid/main python-setuptools all 12.2-1 [197 kB]
- Get:16 http://archive.ubuntu.com/ubuntu/ vivid/main euca2ools all 3.1.0-1 [270 kB]
- Get:17 http://archive.ubuntu.com/ubuntu/ vivid/main python3-lxc amd64 1.1.2-0ubuntu3 [20.5 kB]
- Get:18 http://archive.ubuntu.com/ubuntu/ vivid/main lxc amd64 1.1.2-0ubuntu3 [520 kB]
- Get:19 http://archive.ubuntu.com/ubuntu/ vivid/main lxc-templates amd64 1.1.2-0ubuntu3 [63.8 kB]
- Get:20 http://archive.ubuntu.com/ubuntu/ vivid/main lxcfs amd64 0.7-0ubuntu4 [22.5 kB]
- Get:21 http://archive.ubuntu.com/ubuntu/ vivid/main python-ndg-httpsclient all 0.3.2-1ubuntu4 [20.8 kB]
- Get:22 http://archive.ubuntu.com/ubuntu/ vivid/main sharutils amd64 1:4.14-2 [146 kB]
- Get:23 http://archive.ubuntu.com/ubuntu/ vivid/main uidmap amd64 1:4.1.5.1-1.1ubuntu4 [63.3 kB]
- Get:24 http://archive.ubuntu.com/ubuntu/ vivid/main cloud-image-utils all 0.27-0ubuntu15 [25.5 kB]
- Get:25 http://archive.ubuntu.com/ubuntu/ vivid-updates/main debootstrap all 1.0.67ubuntu0.1 [35.5 kB]
- Fetched 5,699 kB in 23s (239 kB/s)
- Selecting previously unselected package libaio1:amd64.
- (Reading database ... 161283 files and directories currently installed.)
- Preparing to unpack .../libaio1_0.3.110-1_amd64.deb ...
- Unpacking libaio1:amd64 (0.3.110-1) ...
- Selecting previously unselected package libboost-thread1.55.0:amd64.
- Preparing to unpack .../libboost-thread1.55.0_1.55.0+dfsg-3ubuntu2_amd64.deb ...
- Unpacking libboost-thread1.55.0:amd64 (1.55.0+dfsg-3ubuntu2) ...
- Selecting previously unselected package cgmanager.
- Preparing to unpack .../cgmanager_0.36-2ubuntu5_amd64.deb ...
- Unpacking cgmanager (0.36-2ubuntu5) ...
- Selecting previously unselected package libseccomp2:amd64.
- Preparing to unpack .../libseccomp2_2.1.1-1_amd64.deb ...
- Unpacking libseccomp2:amd64 (2.1.1-1) ...
- Selecting previously unselected package liblxc1.
- Preparing to unpack .../liblxc1_1.1.2-0ubuntu3_amd64.deb ...
- Unpacking liblxc1 (1.1.2-0ubuntu3) ...
- Selecting previously unselected package librados2.
- Preparing to unpack .../librados2_0.94.1-0ubuntu1_amd64.deb ...
- Unpacking librados2 (0.94.1-0ubuntu1) ...
- Selecting previously unselected package librbd1.
- Preparing to unpack .../librbd1_0.94.1-0ubuntu1_amd64.deb ...
- Unpacking librbd1 (0.94.1-0ubuntu1) ...
- Selecting previously unselected package python-urllib3.
- Preparing to unpack .../python-urllib3_1.9.1-3_all.deb ...
- Unpacking python-urllib3 (1.9.1-3) ...
- Selecting previously unselected package python-requests.
- Preparing to unpack .../python-requests_2.4.3-6_all.deb ...
- Unpacking python-requests (2.4.3-6) ...
- Selecting previously unselected package python-requestbuilder.
- Preparing to unpack .../python-requestbuilder_0.2.3-1_all.deb ...
- Unpacking python-requestbuilder (0.2.3-1) ...
- Selecting previously unselected package bridge-utils.
- Preparing to unpack .../bridge-utils_1.5-7ubuntu1_amd64.deb ...
- Unpacking bridge-utils (1.5-7ubuntu1) ...
- Selecting previously unselected package distro-info-data.
- Preparing to unpack .../distro-info-data_0.26ubuntu0.1_all.deb ...
- Unpacking distro-info-data (0.26ubuntu0.1) ...
- Selecting previously unselected package distro-info.
- Preparing to unpack .../distro-info_0.14_amd64.deb ...
- Unpacking distro-info (0.14) ...
- Selecting previously unselected package python-setuptools.
- Preparing to unpack .../python-setuptools_12.2-1_all.deb ...
- Unpacking python-setuptools (12.2-1) ...
- Selecting previously unselected package euca2ools.
- Preparing to unpack .../euca2ools_3.1.0-1_all.deb ...
- Unpacking euca2ools (3.1.0-1) ...
- Selecting previously unselected package python3-lxc.
- Preparing to unpack .../python3-lxc_1.1.2-0ubuntu3_amd64.deb ...
- Unpacking python3-lxc (1.1.2-0ubuntu3) ...
- Selecting previously unselected package lxc.
- Preparing to unpack .../lxc_1.1.2-0ubuntu3_amd64.deb ...
- Unpacking lxc (1.1.2-0ubuntu3) ...
- Selecting previously unselected package lxc-templates.
- Preparing to unpack .../lxc-templates_1.1.2-0ubuntu3_amd64.deb ...
- Unpacking lxc-templates (1.1.2-0ubuntu3) ...
- Selecting previously unselected package lxcfs.
- Preparing to unpack .../lxcfs_0.7-0ubuntu4_amd64.deb ...
- Unpacking lxcfs (0.7-0ubuntu4) ...
- Selecting previously unselected package python-ndg-httpsclient.
- Preparing to unpack .../python-ndg-httpsclient_0.3.2-1ubuntu4_all.deb ...
- Unpacking python-ndg-httpsclient (0.3.2-1ubuntu4) ...
- Selecting previously unselected package qemu-utils.
- Preparing to unpack .../qemu-utils_1%3a2.2+dfsg-5expubuntu9.1_amd64.deb ...
- Unpacking qemu-utils (1:2.2+dfsg-5expubuntu9.1) ...
- Selecting previously unselected package sharutils.
- Preparing to unpack .../sharutils_1%3a4.14-2_amd64.deb ...
- Unpacking sharutils (1:4.14-2) ...
- Selecting previously unselected package uidmap.
- Preparing to unpack .../uidmap_1%3a4.1.5.1-1.1ubuntu4_amd64.deb ...
- Unpacking uidmap (1:4.1.5.1-1.1ubuntu4) ...
- Selecting previously unselected package cloud-image-utils.
- Preparing to unpack .../cloud-image-utils_0.27-0ubuntu15_all.deb ...
- Unpacking cloud-image-utils (0.27-0ubuntu15) ...
- Selecting previously unselected package debootstrap.
- Preparing to unpack .../debootstrap_1.0.67ubuntu0.1_all.deb ...
- Unpacking debootstrap (1.0.67ubuntu0.1) ...
- Processing triggers for ureadahead (0.100.0-19) ...
- Processing triggers for systemd (219-7ubuntu3) ...
- Processing triggers for man-db (2.7.0.2-5) ...
- Processing triggers for install-info (5.2.0.dfsg.1-6) ...
- Setting up libaio1:amd64 (0.3.110-1) ...
- Setting up libboost-thread1.55.0:amd64 (1.55.0+dfsg-3ubuntu2) ...
- Setting up cgmanager (0.36-2ubuntu5) ...
- Setting up libseccomp2:amd64 (2.1.1-1) ...
- Setting up liblxc1 (1.1.2-0ubuntu3) ...
- Setting up librados2 (0.94.1-0ubuntu1) ...
- Setting up librbd1 (0.94.1-0ubuntu1) ...
- Setting up python-urllib3 (1.9.1-3) ...
- Setting up python-requests (2.4.3-6) ...
- Setting up python-requestbuilder (0.2.3-1) ...
- Setting up bridge-utils (1.5-7ubuntu1) ...
- Setting up distro-info-data (0.26ubuntu0.1) ...
- Setting up distro-info (0.14) ...
- Setting up python-setuptools (12.2-1) ...
- Setting up euca2ools (3.1.0-1) ...
- Setting up python3-lxc (1.1.2-0ubuntu3) ...
- Setting up lxc (1.1.2-0ubuntu3) ...
- Setting up lxc dnsmasq configuration.
- Setting up lxc-templates (1.1.2-0ubuntu3) ...
- Setting up lxcfs (0.7-0ubuntu4) ...
- Setting up python-ndg-httpsclient (0.3.2-1ubuntu4) ...
- Setting up qemu-utils (1:2.2+dfsg-5expubuntu9.1) ...
- Setting up sharutils (1:4.14-2) ...
- Setting up uidmap (1:4.1.5.1-1.1ubuntu4) ...
- Setting up cloud-image-utils (0.27-0ubuntu15) ...
- Setting up debootstrap (1.0.67ubuntu0.1) ...
- Processing triggers for libc-bin (2.21-0ubuntu4) ...
- Processing triggers for ureadahead (0.100.0-19) ...
- Processing triggers for systemd (219-7ubuntu3) ...
- + apt-get clean
- + lxc-checkconfig
- Kernel configuration not found at /proc/config.gz; searching...
- Kernel configuration found at /boot/config-3.19.0-15-generic
- --- Namespaces ---
- Namespaces: enabled
- Utsname namespace: enabled
- Ipc namespace: enabled
- Pid namespace: enabled
- User namespace: enabled
- Network namespace: enabled
- Multiple /dev/pts instances: enabled
- --- Control groups ---
- Cgroup: enabled
- Cgroup clone_children flag: enabled
- Cgroup device: enabled
- Cgroup sched: enabled
- Cgroup cpu account: enabled
- Cgroup memory controller: enabled
- Cgroup cpuset: enabled
- --- Misc ---
- Veth pair device: enabled
- Macvlan: enabled
- Vlan: enabled
- File capabilities: enabled
- Note : Before booting a new kernel, you can check its configuration
- usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig
- + ifconfig
- eth0 Link encap:Ethernet HWaddr 08:00:27:12:9e:09
- inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
- inet6 addr: fe80::a00:27ff:fe12:9e09/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:24855 errors:0 dropped:0 overruns:0 frame:0
- TX packets:11431 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:20869869 (20.8 MB) TX bytes:715118 (715.1 KB)
- lo Link encap:Local Loopback
- inet addr:127.0.0.1 Mask:255.0.0.0
- inet6 addr: ::1/128 Scope:Host
- UP LOOPBACK RUNNING MTU:65536 Metric:1
- RX packets:260 errors:0 dropped:0 overruns:0 frame:0
- TX packets:260 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:25501 (25.5 KB) TX bytes:25501 (25.5 KB)
- lxcbr0 Link encap:Ethernet HWaddr 46:04:ec:2b:9d:2f
- inet addr:10.0.3.1 Bcast:0.0.0.0 Mask:255.255.255.0
- inet6 addr: fe80::4404:ecff:fe2b:9d2f/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:0 errors:0 dropped:0 overruns:0 frame:0
- TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:0 (0.0 B) TX bytes:3581 (3.5 KB)
- + brctl show
- bridge name bridge id STP enabled interfaces
- lxcbr0 8000.000000000000 no
- + adduser testuser
- Adding user `testuser' ...
- Adding new group `testuser' (1000) ...
- Adding new user `testuser' (1000) with group `testuser' ...
- Creating home directory `/home/testuser' ...
- Copying files from `/etc/skel' ...
- Enter new UNIX password:
- Retype new UNIX password:
- passwd: password updated successfully
- Changing the user information for testuser
- Enter the new value, or press ENTER for the default
- Full Name []:
- Room Number []:
- Work Phone []:
- Home Phone []:
- Other []:
- Is the information correct? [Y/n]
- + cat /etc/subuid /etc/subgid
- testuser:100000:65536
- testuser:100000:65536
- + cat
- + sudo -u testuser -i mkdir -p .config/lxc
- + cut -d: -f2
- + grep testuser /etc/subuid
- + cut -d: -f2
- + grep testuser /etc/subgid
- + sudo -u testuser -i tee .config/lxc/default.conf
- lxc.id_map = u 0 100000 65536
- lxc.id_map = g 0 100000 65536
- lxc.network.type = veth
- lxc.network.link = lxcbr0
- lxc.network.flags = up
- lxc.network.hwaddr = 00:16:3e:xx:xx:xx
- + cat /home/testuser/.config/lxc/default.conf
- lxc.id_map = u 0 100000 65536
- lxc.id_map = g 0 100000 65536
- lxc.network.type = veth
- lxc.network.link = lxcbr0
- lxc.network.flags = up
- lxc.network.hwaddr = 00:16:3e:xx:xx:xx
- + echo ==== TEST UBUNTU VIVID GUEST ====
- ==== TEST UBUNTU VIVID GUEST ====
- + sudo -u testuser -i lxc-create -t download -n vivid1 -- -d ubuntu -r utopic -a amd64
- WARN: could not reopen tty: Permission denied
- WARN: could not reopen tty: Permission denied
- WARN: could not reopen tty: Permission denied
- WARN: could not reopen tty: Permission denied
- Setting up the GPG keyring
- Downloading the image index
- Downloading the rootfs
- Downloading the metadata
- The image cache is now ready
- Unpacking the rootfs
- ---
- You just created an Ubuntu container (release=utopic, arch=amd64, variant=default)
- To enable sshd, run: apt-get install openssh-server
- For security reason, container images ship without user accounts
- and without a root password.
- Use lxc-attach or chroot directly into the rootfs to set a root password
- or create user accounts.
- + [ 0 -eq 0 ]
- + rm /tmp/log
- rm: cannot remove ‘/tmp/log’: No such file or directory
- + sudo -u testuser -i lxc-start -n vivid1 -l debug --logfile /tmp/log
- lxc-start: lxc_start.c: main: 344 The container failed to start.
- lxc-start: lxc_start.c: main: 346 To get more details, run the container in foreground mode.
- lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.
- + cat /tmp/log
- lxc-start 1431627490.504 INFO lxc_start_ui - lxc_start.c:main:264 - using rcfile /home/testuser/.local/share/lxc/vivid1/config
- lxc-start 1431627490.504 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
- lxc-start 1431627490.504 WARN lxc_confile - confile.c:config_pivotdir:1768 - lxc.pivotdir is ignored. It will soon become an error.
- lxc-start 1431627490.504 INFO lxc_confile - confile.c:config_idmap:1376 - read uid map: type u nsid 0 hostid 100000 range 65536
- lxc-start 1431627490.504 INFO lxc_confile - confile.c:config_idmap:1376 - read uid map: type g nsid 0 hostid 100000 range 65536
- lxc-start 1431627490.504 WARN lxc_log - log.c:lxc_log_init:316 - lxc_log_init called with log already initialized
- lxc-start 1431627490.505 WARN lxc_cgmanager - cgmanager.c:cgm_get:963 - do_cgm_get exited with error
- lxc-start 1431627490.505 INFO lxc_start - start.c:lxc_check_inherited:221 - closed inherited fd 4
- lxc-start 1431627490.507 INFO lxc_container - lxccontainer.c:lxcapi_start:627 - Attempting to set proc title to [lxc monitor] /home/testuser/.local/share/lxc vivid1
- lxc-start 1431627490.507 INFO lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM security driver AppArmor
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .reject_force_umount # comment this to allow umount -f; not recommended.
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for reject_force_umount action 0
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:210 - Setting seccomp rule to reject force umounts
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for reject_force_umount action 0
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:438 - Adding non-compat rule bc nr1 == nr2 (-1, -1)
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:210 - Setting seccomp rule to reject force umounts
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .[all].
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .kexec_load errno 1.
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for kexec_load action 327681
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for kexec_load action 327681
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (283, 246)
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .open_by_handle_at errno 1.
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for open_by_handle_at action 327681
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for open_by_handle_at action 327681
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (342, 304)
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .init_module errno 1.
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for init_module action 327681
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for init_module action 327681
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (128, 175)
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .finit_module errno 1.
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for finit_module action 327681
- lxc-start 1431627490.507 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:227 - Seccomp: got negative # for syscall: finit_module
- lxc-start 1431627490.507 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:228 - This syscall will NOT be blacklisted
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for finit_module action 327681
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:438 - Adding non-compat rule bc nr1 == nr2 (-10085, -10085)
- lxc-start 1431627490.507 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:227 - Seccomp: got negative # for syscall: finit_module
- lxc-start 1431627490.507 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:228 - This syscall will NOT be blacklisted
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .delete_module errno 1.
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for delete_module action 327681
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for delete_module action 327681
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (129, 176)
- lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:451 - Merging in the compat seccomp ctx into the main one
- lxc-start 1431627490.507 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
- lxc-start 1431627490.507 DEBUG lxc_start - start.c:setup_signal_fd:259 - sigchild handler set
- lxc-start 1431627490.508 DEBUG lxc_console - console.c:lxc_console_peer_default:536 - no console peer
- lxc-start 1431627490.508 INFO lxc_start - start.c:lxc_check_inherited:221 - closed inherited fd 4
- lxc-start 1431627490.509 INFO lxc_monitor - monitor.c:lxc_monitor_sock_name:177 - using monitor sock name lxc/97369c3f358b910d//home/testuser/.local/share/lxc
- lxc-start 1431627490.514 INFO lxc_start - start.c:lxc_init:451 - 'vivid1' is initialized
- lxc-start 1431627490.514 DEBUG lxc_start - start.c:__lxc_start:1137 - Not dropping cap_sys_boot or watching utmp
- lxc-start 1431627490.514 INFO lxc_start - start.c:resolve_clone_flags:848 - Cloning a new user namespace
- lxc-start 1431627490.514 INFO lxc_cgroup - cgroup.c:cgroup_init:65 - cgroup driver cgmanager initing for vivid1
- lxc-start 1431627490.520 ERROR lxc_cgmanager - cgmanager.c:lxc_cgmanager_enter:694 - call to cgmanager_move_pid_sync failed: invalid request
- lxc-start 1431627490.520 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
- lxc-start 1431627490.520 ERROR lxc_start - start.c:__lxc_start:1164 - failed to spawn 'vivid1'
- lxc-start 1431627490.520 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
- lxc-start 1431627490.520 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
- lxc-start 1431627490.520 WARN lxc_commands - commands.c:lxc_cmd_rsp_recv:172 - command get_init_pid failed to receive response
- lxc-start 1431627490.520 WARN lxc_cgmanager - cgmanager.c:cgm_get:963 - do_cgm_get exited with error
- lxc-start 1431627495.525 ERROR lxc_start_ui - lxc_start.c:main:344 - The container failed to start.
- lxc-start 1431627495.525 ERROR lxc_start_ui - lxc_start.c:main:346 - To get more details, run the container in foreground mode.
- lxc-start 1431627495.525 ERROR lxc_start_ui - lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.
- + echo ==== TEST DEBIAN JESSIE GUEST ====
- ==== TEST DEBIAN JESSIE GUEST ====
- + sudo -u testuser -i lxc-create -t download -n jessie1 -- -d debian -r jessie -a amd64
- WARN: could not reopen tty: Permission denied
- WARN: could not reopen tty: Permission denied
- WARN: could not reopen tty: Permission denied
- WARN: could not reopen tty: Permission denied
- Setting up the GPG keyring
- Downloading the image index
- Downloading the rootfs
- Downloading the metadata
- The image cache is now ready
- Unpacking the rootfs
- ---
- You just created a Debian container (release=jessie, arch=amd64, variant=default)
- To enable sshd, run: apt-get install openssh-server
- For security reason, container images ship without user accounts
- and without a root password.
- Use lxc-attach or chroot directly into the rootfs to set a root password
- or create user accounts.
- + [ 0 -eq 0 ]
- + rm /tmp/log
- + sudo -u testuser -i lxc-start -n jessie1 -l debug --logfile /tmp/log
- lxc-start: lxc_start.c: main: 344 The container failed to start.
- lxc-start: lxc_start.c: main: 346 To get more details, run the container in foreground mode.
- lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.
- + cat /tmp/log
- lxc-start 1431628623.401 INFO lxc_start_ui - lxc_start.c:main:264 - using rcfile /home/testuser/.local/share/lxc/jessie1/config
- lxc-start 1431628623.401 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
- lxc-start 1431628623.401 WARN lxc_confile - confile.c:config_pivotdir:1768 - lxc.pivotdir is ignored. It will soon become an error.
- lxc-start 1431628623.401 INFO lxc_confile - confile.c:config_idmap:1376 - read uid map: type u nsid 0 hostid 100000 range 65536
- lxc-start 1431628623.401 INFO lxc_confile - confile.c:config_idmap:1376 - read uid map: type g nsid 0 hostid 100000 range 65536
- lxc-start 1431628623.401 WARN lxc_log - log.c:lxc_log_init:316 - lxc_log_init called with log already initialized
- lxc-start 1431628623.401 WARN lxc_cgmanager - cgmanager.c:cgm_get:963 - do_cgm_get exited with error
- lxc-start 1431628623.402 INFO lxc_start - start.c:lxc_check_inherited:221 - closed inherited fd 4
- lxc-start 1431628623.404 INFO lxc_container - lxccontainer.c:lxcapi_start:627 - Attempting to set proc title to [lxc monitor] /home/testuser/.local/share/lxc jessie1
- lxc-start 1431628623.405 INFO lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM security driver AppArmor
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .reject_force_umount # comment this to allow umount -f; not recommended.
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for reject_force_umount action 0
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:210 - Setting seccomp rule to reject force umounts
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for reject_force_umount action 0
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:438 - Adding non-compat rule bc nr1 == nr2 (-1, -1)
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:210 - Setting seccomp rule to reject force umounts
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .[all].
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .kexec_load errno 1.
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for kexec_load action 327681
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for kexec_load action 327681
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (283, 246)
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .open_by_handle_at errno 1.
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for open_by_handle_at action 327681
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for open_by_handle_at action 327681
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (342, 304)
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .init_module errno 1.
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for init_module action 327681
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for init_module action 327681
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (128, 175)
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .finit_module errno 1.
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for finit_module action 327681
- lxc-start 1431628623.405 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:227 - Seccomp: got negative # for syscall: finit_module
- lxc-start 1431628623.405 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:228 - This syscall will NOT be blacklisted
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for finit_module action 327681
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:438 - Adding non-compat rule bc nr1 == nr2 (-10085, -10085)
- lxc-start 1431628623.405 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:227 - Seccomp: got negative # for syscall: finit_module
- lxc-start 1431628623.405 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:228 - This syscall will NOT be blacklisted
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .delete_module errno 1.
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for delete_module action 327681
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for delete_module action 327681
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (129, 176)
- lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:451 - Merging in the compat seccomp ctx into the main one
- lxc-start 1431628623.405 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
- lxc-start 1431628623.405 DEBUG lxc_start - start.c:setup_signal_fd:259 - sigchild handler set
- lxc-start 1431628623.405 DEBUG lxc_console - console.c:lxc_console_peer_default:536 - no console peer
- lxc-start 1431628623.405 INFO lxc_start - start.c:lxc_check_inherited:221 - closed inherited fd 4
- lxc-start 1431628623.407 INFO lxc_monitor - monitor.c:lxc_monitor_sock_name:177 - using monitor sock name lxc/97369c3f358b910d//home/testuser/.local/share/lxc
- lxc-start 1431628623.412 INFO lxc_start - start.c:lxc_init:451 - 'jessie1' is initialized
- lxc-start 1431628623.412 DEBUG lxc_start - start.c:__lxc_start:1137 - Not dropping cap_sys_boot or watching utmp
- lxc-start 1431628623.412 INFO lxc_start - start.c:resolve_clone_flags:848 - Cloning a new user namespace
- lxc-start 1431628623.412 INFO lxc_cgroup - cgroup.c:cgroup_init:65 - cgroup driver cgmanager initing for jessie1
- lxc-start 1431628623.419 ERROR lxc_cgmanager - cgmanager.c:lxc_cgmanager_enter:694 - call to cgmanager_move_pid_sync failed: invalid request
- lxc-start 1431628623.419 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
- lxc-start 1431628623.419 ERROR lxc_start - start.c:__lxc_start:1164 - failed to spawn 'jessie1'
- lxc-start 1431628623.419 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
- lxc-start 1431628623.419 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
- lxc-start 1431628623.419 WARN lxc_commands - commands.c:lxc_cmd_rsp_recv:172 - command get_init_pid failed to receive response
- lxc-start 1431628623.419 WARN lxc_cgmanager - cgmanager.c:cgm_get:963 - do_cgm_get exited with error
- lxc-start 1431628628.424 ERROR lxc_start_ui - lxc_start.c:main:344 - The container failed to start.
- lxc-start 1431628628.424 ERROR lxc_start_ui - lxc_start.c:main:346 - To get more details, run the container in foreground mode.
- lxc-start 1431628628.424 ERROR lxc_start_ui - lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.
- + echo ==== END OF SCRIPT ====
- ==== END OF SCRIPT ====
- root@xubuntu:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement