Advertisement
Guest User

Untitled

a guest
May 14th, 2015
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.64 KB | None | 0 0
  1. root@xubuntu:~# sh script.sh
  2. + echo ==== SYSTEM INFO & INSTALL ====
  3. ==== SYSTEM INFO & INSTALL ====
  4. + lsb_release -a
  5. No LSB modules are available.
  6. Distributor ID: Ubuntu
  7. Description: Ubuntu 15.04
  8. Release: 15.04
  9. Codename: vivid
  10. + uname -a
  11. 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
  12. + apt-get update
  13. Ign cdrom://Xubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422.1) vivid InRelease
  14. Ign cdrom://Xubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422.1) vivid/main Translation-en_US
  15. Ign cdrom://Xubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422.1) vivid/main Translation-en
  16. Ign cdrom://Xubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422.1) vivid/multiverse Translation-en_US
  17. Ign cdrom://Xubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422.1) vivid/multiverse Translation-en
  18. Ign cdrom://Xubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422.1) vivid/restricted Translation-en_US
  19. Ign cdrom://Xubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422.1) vivid/restricted Translation-en
  20. Ign cdrom://Xubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422.1) vivid/universe Translation-en_US
  21. Ign cdrom://Xubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422.1) vivid/universe Translation-en
  22. Ign http://archive.ubuntu.com vivid InRelease
  23. Ign http://security.ubuntu.com vivid-security InRelease
  24. Ign http://archive.ubuntu.com vivid-updates InRelease
  25. Get:1 http://security.ubuntu.com vivid-security Release.gpg [933 B]
  26. Get:2 http://archive.ubuntu.com vivid Release.gpg [933 B]
  27. Get:3 http://security.ubuntu.com vivid-security Release [63.5 kB]
  28. Get:4 http://archive.ubuntu.com vivid-updates Release.gpg [933 B]
  29. Get:5 http://archive.ubuntu.com vivid Release [217 kB]
  30. Get:6 http://security.ubuntu.com vivid-security/main amd64 Packages [30.5 kB]
  31. Get:7 http://security.ubuntu.com vivid-security/restricted amd64 Packages [28 B]
  32. Get:8 http://security.ubuntu.com vivid-security/universe amd64 Packages [12.6 kB]
  33. Get:9 http://security.ubuntu.com vivid-security/multiverse amd64 Packages [1,159 B]
  34. Get:10 http://security.ubuntu.com vivid-security/main Translation-en [16.0 kB]
  35. Get:11 http://security.ubuntu.com vivid-security/multiverse Translation-en [601 B]
  36. Get:12 http://security.ubuntu.com vivid-security/restricted Translation-en [14 B]
  37. Get:13 http://security.ubuntu.com vivid-security/universe Translation-en [8,975 B]
  38. Get:14 http://archive.ubuntu.com vivid-updates Release [63.5 kB]
  39. Get:15 http://archive.ubuntu.com vivid/main amd64 Packages [1,364 kB]
  40. Get:16 http://archive.ubuntu.com vivid/restricted amd64 Packages [15.4 kB]
  41. Get:17 http://archive.ubuntu.com vivid/universe amd64 Packages [6,485 kB]
  42. Get:18 http://archive.ubuntu.com vivid/multiverse amd64 Packages [134 kB]
  43. Get:19 http://archive.ubuntu.com vivid/main Translation-en [793 kB]
  44. Hit http://archive.ubuntu.com vivid/multiverse Translation-en
  45. Hit http://archive.ubuntu.com vivid/restricted Translation-en
  46. Get:20 http://archive.ubuntu.com vivid/universe Translation-en [4,456 kB]
  47. Get:21 http://archive.ubuntu.com vivid-updates/main amd64 Packages [55.8 kB]
  48. Get:22 http://archive.ubuntu.com vivid-updates/restricted amd64 Packages [28 B]
  49. Get:23 http://archive.ubuntu.com vivid-updates/universe amd64 Packages [30.4 kB]
  50. Get:24 http://archive.ubuntu.com vivid-updates/multiverse amd64 Packages [1,159 B]
  51. Get:25 http://archive.ubuntu.com vivid-updates/main Translation-en [27.1 kB]
  52. Get:26 http://archive.ubuntu.com vivid-updates/multiverse Translation-en [601 B]
  53. Get:27 http://archive.ubuntu.com vivid-updates/restricted Translation-en [14 B]
  54. Get:28 http://archive.ubuntu.com vivid-updates/universe Translation-en [17.3 kB]
  55. Fetched 13.8 MB in 55s (250 kB/s)
  56. Reading package lists... Done
  57. + apt-get install -y lxc
  58. Reading package lists... Done
  59. Building dependency tree
  60. Reading state information... Done
  61. The following extra packages will be installed:
  62. bridge-utils cgmanager cloud-image-utils debootstrap distro-info
  63. distro-info-data euca2ools libaio1 libboost-thread1.55.0 liblxc1 librados2
  64. librbd1 libseccomp2 lxc-templates lxcfs python-ndg-httpsclient
  65. python-requestbuilder python-requests python-setuptools python-urllib3
  66. python3-lxc qemu-utils sharutils uidmap
  67. Suggested packages:
  68. shunit2 lxctl qemu-user-static bsd-mailx mailx
  69. The following NEW packages will be installed:
  70. bridge-utils cgmanager cloud-image-utils debootstrap distro-info
  71. distro-info-data euca2ools libaio1 libboost-thread1.55.0 liblxc1 librados2
  72. librbd1 libseccomp2 lxc lxc-templates lxcfs python-ndg-httpsclient
  73. python-requestbuilder python-requests python-setuptools python-urllib3
  74. python3-lxc qemu-utils sharutils uidmap
  75. 0 upgraded, 25 newly installed, 0 to remove and 41 not upgraded.
  76. Need to get 5,699 kB of archives.
  77. After this operation, 22.7 MB of additional disk space will be used.
  78. Get:1 http://archive.ubuntu.com/ubuntu/ vivid/main libaio1 amd64 0.3.110-1 [6,454 B]
  79. Get:2 http://security.ubuntu.com/ubuntu/ vivid-security/main qemu-utils amd64 1:2.2+dfsg-5expubuntu9.1 [445 kB]
  80. Get:3 http://archive.ubuntu.com/ubuntu/ vivid/main libboost-thread1.55.0 amd64 1.55.0+dfsg-3ubuntu2 [31.5 kB]
  81. Get:4 http://archive.ubuntu.com/ubuntu/ vivid/main cgmanager amd64 0.36-2ubuntu5 [73.8 kB]
  82. Get:5 http://archive.ubuntu.com/ubuntu/ vivid/main libseccomp2 amd64 2.1.1-1 [26.3 kB]
  83. Get:6 http://archive.ubuntu.com/ubuntu/ vivid/main liblxc1 amd64 1.1.2-0ubuntu3 [175 kB]
  84. Get:7 http://archive.ubuntu.com/ubuntu/ vivid/main librados2 amd64 0.94.1-0ubuntu1 [1,550 kB]
  85. Get:8 http://archive.ubuntu.com/ubuntu/ vivid/main librbd1 amd64 0.94.1-0ubuntu1 [1,684 kB]
  86. Get:9 http://archive.ubuntu.com/ubuntu/ vivid/main python-urllib3 all 1.9.1-3 [49.1 kB]
  87. Get:10 http://archive.ubuntu.com/ubuntu/ vivid/main python-requests all 2.4.3-6 [193 kB]
  88. Get:11 http://archive.ubuntu.com/ubuntu/ vivid/main python-requestbuilder all 0.2.3-1 [27.2 kB]
  89. Get:12 http://archive.ubuntu.com/ubuntu/ vivid/main bridge-utils amd64 1.5-7ubuntu1 [29.1 kB]
  90. Get:13 http://archive.ubuntu.com/ubuntu/ vivid-updates/main distro-info-data all 0.26ubuntu0.1 [4,056 B]
  91. Get:14 http://archive.ubuntu.com/ubuntu/ vivid/main distro-info amd64 0.14 [20.1 kB]
  92. Get:15 http://archive.ubuntu.com/ubuntu/ vivid/main python-setuptools all 12.2-1 [197 kB]
  93. Get:16 http://archive.ubuntu.com/ubuntu/ vivid/main euca2ools all 3.1.0-1 [270 kB]
  94. Get:17 http://archive.ubuntu.com/ubuntu/ vivid/main python3-lxc amd64 1.1.2-0ubuntu3 [20.5 kB]
  95. Get:18 http://archive.ubuntu.com/ubuntu/ vivid/main lxc amd64 1.1.2-0ubuntu3 [520 kB]
  96. Get:19 http://archive.ubuntu.com/ubuntu/ vivid/main lxc-templates amd64 1.1.2-0ubuntu3 [63.8 kB]
  97. Get:20 http://archive.ubuntu.com/ubuntu/ vivid/main lxcfs amd64 0.7-0ubuntu4 [22.5 kB]
  98. Get:21 http://archive.ubuntu.com/ubuntu/ vivid/main python-ndg-httpsclient all 0.3.2-1ubuntu4 [20.8 kB]
  99. Get:22 http://archive.ubuntu.com/ubuntu/ vivid/main sharutils amd64 1:4.14-2 [146 kB]
  100. Get:23 http://archive.ubuntu.com/ubuntu/ vivid/main uidmap amd64 1:4.1.5.1-1.1ubuntu4 [63.3 kB]
  101. Get:24 http://archive.ubuntu.com/ubuntu/ vivid/main cloud-image-utils all 0.27-0ubuntu15 [25.5 kB]
  102. Get:25 http://archive.ubuntu.com/ubuntu/ vivid-updates/main debootstrap all 1.0.67ubuntu0.1 [35.5 kB]
  103. Fetched 5,699 kB in 23s (239 kB/s)
  104. Selecting previously unselected package libaio1:amd64.
  105. (Reading database ... 161283 files and directories currently installed.)
  106. Preparing to unpack .../libaio1_0.3.110-1_amd64.deb ...
  107. Unpacking libaio1:amd64 (0.3.110-1) ...
  108. Selecting previously unselected package libboost-thread1.55.0:amd64.
  109. Preparing to unpack .../libboost-thread1.55.0_1.55.0+dfsg-3ubuntu2_amd64.deb ...
  110. Unpacking libboost-thread1.55.0:amd64 (1.55.0+dfsg-3ubuntu2) ...
  111. Selecting previously unselected package cgmanager.
  112. Preparing to unpack .../cgmanager_0.36-2ubuntu5_amd64.deb ...
  113. Unpacking cgmanager (0.36-2ubuntu5) ...
  114. Selecting previously unselected package libseccomp2:amd64.
  115. Preparing to unpack .../libseccomp2_2.1.1-1_amd64.deb ...
  116. Unpacking libseccomp2:amd64 (2.1.1-1) ...
  117. Selecting previously unselected package liblxc1.
  118. Preparing to unpack .../liblxc1_1.1.2-0ubuntu3_amd64.deb ...
  119. Unpacking liblxc1 (1.1.2-0ubuntu3) ...
  120. Selecting previously unselected package librados2.
  121. Preparing to unpack .../librados2_0.94.1-0ubuntu1_amd64.deb ...
  122. Unpacking librados2 (0.94.1-0ubuntu1) ...
  123. Selecting previously unselected package librbd1.
  124. Preparing to unpack .../librbd1_0.94.1-0ubuntu1_amd64.deb ...
  125. Unpacking librbd1 (0.94.1-0ubuntu1) ...
  126. Selecting previously unselected package python-urllib3.
  127. Preparing to unpack .../python-urllib3_1.9.1-3_all.deb ...
  128. Unpacking python-urllib3 (1.9.1-3) ...
  129. Selecting previously unselected package python-requests.
  130. Preparing to unpack .../python-requests_2.4.3-6_all.deb ...
  131. Unpacking python-requests (2.4.3-6) ...
  132. Selecting previously unselected package python-requestbuilder.
  133. Preparing to unpack .../python-requestbuilder_0.2.3-1_all.deb ...
  134. Unpacking python-requestbuilder (0.2.3-1) ...
  135. Selecting previously unselected package bridge-utils.
  136. Preparing to unpack .../bridge-utils_1.5-7ubuntu1_amd64.deb ...
  137. Unpacking bridge-utils (1.5-7ubuntu1) ...
  138. Selecting previously unselected package distro-info-data.
  139. Preparing to unpack .../distro-info-data_0.26ubuntu0.1_all.deb ...
  140. Unpacking distro-info-data (0.26ubuntu0.1) ...
  141. Selecting previously unselected package distro-info.
  142. Preparing to unpack .../distro-info_0.14_amd64.deb ...
  143. Unpacking distro-info (0.14) ...
  144. Selecting previously unselected package python-setuptools.
  145. Preparing to unpack .../python-setuptools_12.2-1_all.deb ...
  146. Unpacking python-setuptools (12.2-1) ...
  147. Selecting previously unselected package euca2ools.
  148. Preparing to unpack .../euca2ools_3.1.0-1_all.deb ...
  149. Unpacking euca2ools (3.1.0-1) ...
  150. Selecting previously unselected package python3-lxc.
  151. Preparing to unpack .../python3-lxc_1.1.2-0ubuntu3_amd64.deb ...
  152. Unpacking python3-lxc (1.1.2-0ubuntu3) ...
  153. Selecting previously unselected package lxc.
  154. Preparing to unpack .../lxc_1.1.2-0ubuntu3_amd64.deb ...
  155. Unpacking lxc (1.1.2-0ubuntu3) ...
  156. Selecting previously unselected package lxc-templates.
  157. Preparing to unpack .../lxc-templates_1.1.2-0ubuntu3_amd64.deb ...
  158. Unpacking lxc-templates (1.1.2-0ubuntu3) ...
  159. Selecting previously unselected package lxcfs.
  160. Preparing to unpack .../lxcfs_0.7-0ubuntu4_amd64.deb ...
  161. Unpacking lxcfs (0.7-0ubuntu4) ...
  162. Selecting previously unselected package python-ndg-httpsclient.
  163. Preparing to unpack .../python-ndg-httpsclient_0.3.2-1ubuntu4_all.deb ...
  164. Unpacking python-ndg-httpsclient (0.3.2-1ubuntu4) ...
  165. Selecting previously unselected package qemu-utils.
  166. Preparing to unpack .../qemu-utils_1%3a2.2+dfsg-5expubuntu9.1_amd64.deb ...
  167. Unpacking qemu-utils (1:2.2+dfsg-5expubuntu9.1) ...
  168. Selecting previously unselected package sharutils.
  169. Preparing to unpack .../sharutils_1%3a4.14-2_amd64.deb ...
  170. Unpacking sharutils (1:4.14-2) ...
  171. Selecting previously unselected package uidmap.
  172. Preparing to unpack .../uidmap_1%3a4.1.5.1-1.1ubuntu4_amd64.deb ...
  173. Unpacking uidmap (1:4.1.5.1-1.1ubuntu4) ...
  174. Selecting previously unselected package cloud-image-utils.
  175. Preparing to unpack .../cloud-image-utils_0.27-0ubuntu15_all.deb ...
  176. Unpacking cloud-image-utils (0.27-0ubuntu15) ...
  177. Selecting previously unselected package debootstrap.
  178. Preparing to unpack .../debootstrap_1.0.67ubuntu0.1_all.deb ...
  179. Unpacking debootstrap (1.0.67ubuntu0.1) ...
  180. Processing triggers for ureadahead (0.100.0-19) ...
  181. Processing triggers for systemd (219-7ubuntu3) ...
  182. Processing triggers for man-db (2.7.0.2-5) ...
  183. Processing triggers for install-info (5.2.0.dfsg.1-6) ...
  184. Setting up libaio1:amd64 (0.3.110-1) ...
  185. Setting up libboost-thread1.55.0:amd64 (1.55.0+dfsg-3ubuntu2) ...
  186. Setting up cgmanager (0.36-2ubuntu5) ...
  187. Setting up libseccomp2:amd64 (2.1.1-1) ...
  188. Setting up liblxc1 (1.1.2-0ubuntu3) ...
  189. Setting up librados2 (0.94.1-0ubuntu1) ...
  190. Setting up librbd1 (0.94.1-0ubuntu1) ...
  191. Setting up python-urllib3 (1.9.1-3) ...
  192. Setting up python-requests (2.4.3-6) ...
  193. Setting up python-requestbuilder (0.2.3-1) ...
  194. Setting up bridge-utils (1.5-7ubuntu1) ...
  195. Setting up distro-info-data (0.26ubuntu0.1) ...
  196. Setting up distro-info (0.14) ...
  197. Setting up python-setuptools (12.2-1) ...
  198. Setting up euca2ools (3.1.0-1) ...
  199. Setting up python3-lxc (1.1.2-0ubuntu3) ...
  200. Setting up lxc (1.1.2-0ubuntu3) ...
  201. Setting up lxc dnsmasq configuration.
  202. Setting up lxc-templates (1.1.2-0ubuntu3) ...
  203. Setting up lxcfs (0.7-0ubuntu4) ...
  204. Setting up python-ndg-httpsclient (0.3.2-1ubuntu4) ...
  205. Setting up qemu-utils (1:2.2+dfsg-5expubuntu9.1) ...
  206. Setting up sharutils (1:4.14-2) ...
  207. Setting up uidmap (1:4.1.5.1-1.1ubuntu4) ...
  208. Setting up cloud-image-utils (0.27-0ubuntu15) ...
  209. Setting up debootstrap (1.0.67ubuntu0.1) ...
  210. Processing triggers for libc-bin (2.21-0ubuntu4) ...
  211. Processing triggers for ureadahead (0.100.0-19) ...
  212. Processing triggers for systemd (219-7ubuntu3) ...
  213. + apt-get clean
  214. + lxc-checkconfig
  215. Kernel configuration not found at /proc/config.gz; searching...
  216. Kernel configuration found at /boot/config-3.19.0-15-generic
  217. --- Namespaces ---
  218. Namespaces: enabled
  219. Utsname namespace: enabled
  220. Ipc namespace: enabled
  221. Pid namespace: enabled
  222. User namespace: enabled
  223. Network namespace: enabled
  224. Multiple /dev/pts instances: enabled
  225.  
  226. --- Control groups ---
  227. Cgroup: enabled
  228. Cgroup clone_children flag: enabled
  229. Cgroup device: enabled
  230. Cgroup sched: enabled
  231. Cgroup cpu account: enabled
  232. Cgroup memory controller: enabled
  233. Cgroup cpuset: enabled
  234.  
  235. --- Misc ---
  236. Veth pair device: enabled
  237. Macvlan: enabled
  238. Vlan: enabled
  239. File capabilities: enabled
  240.  
  241. Note : Before booting a new kernel, you can check its configuration
  242. usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig
  243.  
  244. + ifconfig
  245. eth0 Link encap:Ethernet HWaddr 08:00:27:12:9e:09
  246. inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
  247. inet6 addr: fe80::a00:27ff:fe12:9e09/64 Scope:Link
  248. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  249. RX packets:24855 errors:0 dropped:0 overruns:0 frame:0
  250. TX packets:11431 errors:0 dropped:0 overruns:0 carrier:0
  251. collisions:0 txqueuelen:1000
  252. RX bytes:20869869 (20.8 MB) TX bytes:715118 (715.1 KB)
  253.  
  254. lo Link encap:Local Loopback
  255. inet addr:127.0.0.1 Mask:255.0.0.0
  256. inet6 addr: ::1/128 Scope:Host
  257. UP LOOPBACK RUNNING MTU:65536 Metric:1
  258. RX packets:260 errors:0 dropped:0 overruns:0 frame:0
  259. TX packets:260 errors:0 dropped:0 overruns:0 carrier:0
  260. collisions:0 txqueuelen:0
  261. RX bytes:25501 (25.5 KB) TX bytes:25501 (25.5 KB)
  262.  
  263. lxcbr0 Link encap:Ethernet HWaddr 46:04:ec:2b:9d:2f
  264. inet addr:10.0.3.1 Bcast:0.0.0.0 Mask:255.255.255.0
  265. inet6 addr: fe80::4404:ecff:fe2b:9d2f/64 Scope:Link
  266. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  267. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  268. TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
  269. collisions:0 txqueuelen:0
  270. RX bytes:0 (0.0 B) TX bytes:3581 (3.5 KB)
  271.  
  272. + brctl show
  273. bridge name bridge id STP enabled interfaces
  274. lxcbr0 8000.000000000000 no
  275. + adduser testuser
  276. Adding user `testuser' ...
  277. Adding new group `testuser' (1000) ...
  278. Adding new user `testuser' (1000) with group `testuser' ...
  279. Creating home directory `/home/testuser' ...
  280. Copying files from `/etc/skel' ...
  281. Enter new UNIX password:
  282. Retype new UNIX password:
  283. passwd: password updated successfully
  284. Changing the user information for testuser
  285. Enter the new value, or press ENTER for the default
  286. Full Name []:
  287. Room Number []:
  288. Work Phone []:
  289. Home Phone []:
  290. Other []:
  291. Is the information correct? [Y/n]
  292. + cat /etc/subuid /etc/subgid
  293. testuser:100000:65536
  294. testuser:100000:65536
  295. + cat
  296. + sudo -u testuser -i mkdir -p .config/lxc
  297. + cut -d: -f2
  298. + grep testuser /etc/subuid
  299. + cut -d: -f2
  300. + grep testuser /etc/subgid
  301. + sudo -u testuser -i tee .config/lxc/default.conf
  302. lxc.id_map = u 0 100000 65536
  303. lxc.id_map = g 0 100000 65536
  304.  
  305. lxc.network.type = veth
  306. lxc.network.link = lxcbr0
  307. lxc.network.flags = up
  308. lxc.network.hwaddr = 00:16:3e:xx:xx:xx
  309. + cat /home/testuser/.config/lxc/default.conf
  310. lxc.id_map = u 0 100000 65536
  311. lxc.id_map = g 0 100000 65536
  312.  
  313. lxc.network.type = veth
  314. lxc.network.link = lxcbr0
  315. lxc.network.flags = up
  316. lxc.network.hwaddr = 00:16:3e:xx:xx:xx
  317. + echo ==== TEST UBUNTU VIVID GUEST ====
  318. ==== TEST UBUNTU VIVID GUEST ====
  319. + sudo -u testuser -i lxc-create -t download -n vivid1 -- -d ubuntu -r utopic -a amd64
  320. WARN: could not reopen tty: Permission denied
  321. WARN: could not reopen tty: Permission denied
  322. WARN: could not reopen tty: Permission denied
  323. WARN: could not reopen tty: Permission denied
  324. Setting up the GPG keyring
  325. Downloading the image index
  326. Downloading the rootfs
  327. Downloading the metadata
  328. The image cache is now ready
  329. Unpacking the rootfs
  330.  
  331. ---
  332. You just created an Ubuntu container (release=utopic, arch=amd64, variant=default)
  333.  
  334. To enable sshd, run: apt-get install openssh-server
  335.  
  336. For security reason, container images ship without user accounts
  337. and without a root password.
  338.  
  339. Use lxc-attach or chroot directly into the rootfs to set a root password
  340. or create user accounts.
  341. + [ 0 -eq 0 ]
  342. + rm /tmp/log
  343. rm: cannot remove ‘/tmp/log’: No such file or directory
  344. + sudo -u testuser -i lxc-start -n vivid1 -l debug --logfile /tmp/log
  345. lxc-start: lxc_start.c: main: 344 The container failed to start.
  346. lxc-start: lxc_start.c: main: 346 To get more details, run the container in foreground mode.
  347. lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.
  348. + cat /tmp/log
  349. lxc-start 1431627490.504 INFO lxc_start_ui - lxc_start.c:main:264 - using rcfile /home/testuser/.local/share/lxc/vivid1/config
  350. lxc-start 1431627490.504 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
  351. lxc-start 1431627490.504 WARN lxc_confile - confile.c:config_pivotdir:1768 - lxc.pivotdir is ignored. It will soon become an error.
  352. lxc-start 1431627490.504 INFO lxc_confile - confile.c:config_idmap:1376 - read uid map: type u nsid 0 hostid 100000 range 65536
  353. lxc-start 1431627490.504 INFO lxc_confile - confile.c:config_idmap:1376 - read uid map: type g nsid 0 hostid 100000 range 65536
  354. lxc-start 1431627490.504 WARN lxc_log - log.c:lxc_log_init:316 - lxc_log_init called with log already initialized
  355. lxc-start 1431627490.505 WARN lxc_cgmanager - cgmanager.c:cgm_get:963 - do_cgm_get exited with error
  356. lxc-start 1431627490.505 INFO lxc_start - start.c:lxc_check_inherited:221 - closed inherited fd 4
  357. 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
  358. lxc-start 1431627490.507 INFO lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM security driver AppArmor
  359. 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.
  360. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for reject_force_umount action 0
  361. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:210 - Setting seccomp rule to reject force umounts
  362.  
  363. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for reject_force_umount action 0
  364. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:438 - Adding non-compat rule bc nr1 == nr2 (-1, -1)
  365. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:210 - Setting seccomp rule to reject force umounts
  366.  
  367. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .[all].
  368. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .kexec_load errno 1.
  369. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for kexec_load action 327681
  370. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for kexec_load action 327681
  371. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (283, 246)
  372. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .open_by_handle_at errno 1.
  373. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for open_by_handle_at action 327681
  374. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for open_by_handle_at action 327681
  375. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (342, 304)
  376. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .init_module errno 1.
  377. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for init_module action 327681
  378. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for init_module action 327681
  379. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (128, 175)
  380. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .finit_module errno 1.
  381. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for finit_module action 327681
  382. lxc-start 1431627490.507 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:227 - Seccomp: got negative # for syscall: finit_module
  383. lxc-start 1431627490.507 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:228 - This syscall will NOT be blacklisted
  384. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for finit_module action 327681
  385. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:438 - Adding non-compat rule bc nr1 == nr2 (-10085, -10085)
  386. lxc-start 1431627490.507 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:227 - Seccomp: got negative # for syscall: finit_module
  387. lxc-start 1431627490.507 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:228 - This syscall will NOT be blacklisted
  388. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .delete_module errno 1.
  389. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for delete_module action 327681
  390. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for delete_module action 327681
  391. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (129, 176)
  392. lxc-start 1431627490.507 INFO lxc_seccomp - seccomp.c:parse_config_v2:451 - Merging in the compat seccomp ctx into the main one
  393. lxc-start 1431627490.507 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
  394. lxc-start 1431627490.507 DEBUG lxc_start - start.c:setup_signal_fd:259 - sigchild handler set
  395. lxc-start 1431627490.508 DEBUG lxc_console - console.c:lxc_console_peer_default:536 - no console peer
  396. lxc-start 1431627490.508 INFO lxc_start - start.c:lxc_check_inherited:221 - closed inherited fd 4
  397. 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
  398. lxc-start 1431627490.514 INFO lxc_start - start.c:lxc_init:451 - 'vivid1' is initialized
  399. lxc-start 1431627490.514 DEBUG lxc_start - start.c:__lxc_start:1137 - Not dropping cap_sys_boot or watching utmp
  400. lxc-start 1431627490.514 INFO lxc_start - start.c:resolve_clone_flags:848 - Cloning a new user namespace
  401. lxc-start 1431627490.514 INFO lxc_cgroup - cgroup.c:cgroup_init:65 - cgroup driver cgmanager initing for vivid1
  402. lxc-start 1431627490.520 ERROR lxc_cgmanager - cgmanager.c:lxc_cgmanager_enter:694 - call to cgmanager_move_pid_sync failed: invalid request
  403. lxc-start 1431627490.520 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
  404. lxc-start 1431627490.520 ERROR lxc_start - start.c:__lxc_start:1164 - failed to spawn 'vivid1'
  405. lxc-start 1431627490.520 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
  406. lxc-start 1431627490.520 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
  407. lxc-start 1431627490.520 WARN lxc_commands - commands.c:lxc_cmd_rsp_recv:172 - command get_init_pid failed to receive response
  408. lxc-start 1431627490.520 WARN lxc_cgmanager - cgmanager.c:cgm_get:963 - do_cgm_get exited with error
  409. lxc-start 1431627495.525 ERROR lxc_start_ui - lxc_start.c:main:344 - The container failed to start.
  410. lxc-start 1431627495.525 ERROR lxc_start_ui - lxc_start.c:main:346 - To get more details, run the container in foreground mode.
  411. 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.
  412. + echo ==== TEST DEBIAN JESSIE GUEST ====
  413. ==== TEST DEBIAN JESSIE GUEST ====
  414. + sudo -u testuser -i lxc-create -t download -n jessie1 -- -d debian -r jessie -a amd64
  415. WARN: could not reopen tty: Permission denied
  416. WARN: could not reopen tty: Permission denied
  417. WARN: could not reopen tty: Permission denied
  418. WARN: could not reopen tty: Permission denied
  419. Setting up the GPG keyring
  420. Downloading the image index
  421. Downloading the rootfs
  422. Downloading the metadata
  423. The image cache is now ready
  424. Unpacking the rootfs
  425.  
  426. ---
  427. You just created a Debian container (release=jessie, arch=amd64, variant=default)
  428.  
  429. To enable sshd, run: apt-get install openssh-server
  430.  
  431. For security reason, container images ship without user accounts
  432. and without a root password.
  433.  
  434. Use lxc-attach or chroot directly into the rootfs to set a root password
  435. or create user accounts.
  436. + [ 0 -eq 0 ]
  437. + rm /tmp/log
  438. + sudo -u testuser -i lxc-start -n jessie1 -l debug --logfile /tmp/log
  439. lxc-start: lxc_start.c: main: 344 The container failed to start.
  440. lxc-start: lxc_start.c: main: 346 To get more details, run the container in foreground mode.
  441. lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.
  442. + cat /tmp/log
  443. lxc-start 1431628623.401 INFO lxc_start_ui - lxc_start.c:main:264 - using rcfile /home/testuser/.local/share/lxc/jessie1/config
  444. lxc-start 1431628623.401 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
  445. lxc-start 1431628623.401 WARN lxc_confile - confile.c:config_pivotdir:1768 - lxc.pivotdir is ignored. It will soon become an error.
  446. lxc-start 1431628623.401 INFO lxc_confile - confile.c:config_idmap:1376 - read uid map: type u nsid 0 hostid 100000 range 65536
  447. lxc-start 1431628623.401 INFO lxc_confile - confile.c:config_idmap:1376 - read uid map: type g nsid 0 hostid 100000 range 65536
  448. lxc-start 1431628623.401 WARN lxc_log - log.c:lxc_log_init:316 - lxc_log_init called with log already initialized
  449. lxc-start 1431628623.401 WARN lxc_cgmanager - cgmanager.c:cgm_get:963 - do_cgm_get exited with error
  450. lxc-start 1431628623.402 INFO lxc_start - start.c:lxc_check_inherited:221 - closed inherited fd 4
  451. 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
  452. lxc-start 1431628623.405 INFO lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM security driver AppArmor
  453. 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.
  454. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for reject_force_umount action 0
  455. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:210 - Setting seccomp rule to reject force umounts
  456.  
  457. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for reject_force_umount action 0
  458. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:438 - Adding non-compat rule bc nr1 == nr2 (-1, -1)
  459. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:210 - Setting seccomp rule to reject force umounts
  460.  
  461. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .[all].
  462. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .kexec_load errno 1.
  463. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for kexec_load action 327681
  464. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for kexec_load action 327681
  465. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (283, 246)
  466. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .open_by_handle_at errno 1.
  467. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for open_by_handle_at action 327681
  468. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for open_by_handle_at action 327681
  469. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (342, 304)
  470. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .init_module errno 1.
  471. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for init_module action 327681
  472. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for init_module action 327681
  473. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (128, 175)
  474. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .finit_module errno 1.
  475. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for finit_module action 327681
  476. lxc-start 1431628623.405 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:227 - Seccomp: got negative # for syscall: finit_module
  477. lxc-start 1431628623.405 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:228 - This syscall will NOT be blacklisted
  478. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for finit_module action 327681
  479. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:438 - Adding non-compat rule bc nr1 == nr2 (-10085, -10085)
  480. lxc-start 1431628623.405 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:227 - Seccomp: got negative # for syscall: finit_module
  481. lxc-start 1431628623.405 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:228 - This syscall will NOT be blacklisted
  482. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .delete_module errno 1.
  483. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for delete_module action 327681
  484. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for delete_module action 327681
  485. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (129, 176)
  486. lxc-start 1431628623.405 INFO lxc_seccomp - seccomp.c:parse_config_v2:451 - Merging in the compat seccomp ctx into the main one
  487. lxc-start 1431628623.405 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
  488. lxc-start 1431628623.405 DEBUG lxc_start - start.c:setup_signal_fd:259 - sigchild handler set
  489. lxc-start 1431628623.405 DEBUG lxc_console - console.c:lxc_console_peer_default:536 - no console peer
  490. lxc-start 1431628623.405 INFO lxc_start - start.c:lxc_check_inherited:221 - closed inherited fd 4
  491. 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
  492. lxc-start 1431628623.412 INFO lxc_start - start.c:lxc_init:451 - 'jessie1' is initialized
  493. lxc-start 1431628623.412 DEBUG lxc_start - start.c:__lxc_start:1137 - Not dropping cap_sys_boot or watching utmp
  494. lxc-start 1431628623.412 INFO lxc_start - start.c:resolve_clone_flags:848 - Cloning a new user namespace
  495. lxc-start 1431628623.412 INFO lxc_cgroup - cgroup.c:cgroup_init:65 - cgroup driver cgmanager initing for jessie1
  496. lxc-start 1431628623.419 ERROR lxc_cgmanager - cgmanager.c:lxc_cgmanager_enter:694 - call to cgmanager_move_pid_sync failed: invalid request
  497. lxc-start 1431628623.419 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
  498. lxc-start 1431628623.419 ERROR lxc_start - start.c:__lxc_start:1164 - failed to spawn 'jessie1'
  499. lxc-start 1431628623.419 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
  500. lxc-start 1431628623.419 INFO lxc_utils - utils.c:get_rundir:483 - XDG_RUNTIME_DIR isn't set in the environment.
  501. lxc-start 1431628623.419 WARN lxc_commands - commands.c:lxc_cmd_rsp_recv:172 - command get_init_pid failed to receive response
  502. lxc-start 1431628623.419 WARN lxc_cgmanager - cgmanager.c:cgm_get:963 - do_cgm_get exited with error
  503. lxc-start 1431628628.424 ERROR lxc_start_ui - lxc_start.c:main:344 - The container failed to start.
  504. lxc-start 1431628628.424 ERROR lxc_start_ui - lxc_start.c:main:346 - To get more details, run the container in foreground mode.
  505. 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.
  506. + echo ==== END OF SCRIPT ====
  507. ==== END OF SCRIPT ====
  508. root@xubuntu:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement