Advertisement
Guest User

Untitled

a guest
May 14th, 2015
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.74 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 14.04.2 LTS
  8. Release: 14.04
  9. Codename: trusty
  10. + uname -a
  11. Linux xubuntu 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
  12. + apt-get update
  13. Ign cdrom://Xubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1) trusty InRelease
  14. Ign cdrom://Xubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1) trusty/main Translation-en_US
  15. Ign cdrom://Xubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1) trusty/main Translation-en
  16. Ign cdrom://Xubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1) trusty/multiverse Translation-en_US
  17. Ign cdrom://Xubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1) trusty/multiverse Translation-en
  18. Ign cdrom://Xubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1) trusty/restricted Translation-en_US
  19. Ign cdrom://Xubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1) trusty/restricted Translation-en
  20. Ign cdrom://Xubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1) trusty/universe Translation-en_US
  21. Ign cdrom://Xubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1) trusty/universe Translation-en
  22. Ign http://security.ubuntu.com trusty-security InRelease
  23. Get:1 http://security.ubuntu.com trusty-security Release.gpg [933 B]
  24. Get:2 http://security.ubuntu.com trusty-security Release [63.5 kB]
  25. Ign http://archive.ubuntu.com trusty InRelease
  26. Get:3 http://security.ubuntu.com trusty-security/main amd64 Packages [268 kB]
  27. Ign http://archive.ubuntu.com trusty-updates InRelease
  28. Hit http://archive.ubuntu.com trusty Release.gpg
  29. Get:4 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
  30. Hit http://archive.ubuntu.com trusty Release
  31. Get:5 http://security.ubuntu.com trusty-security/restricted amd64 Packages [8,875 B]
  32. Get:6 http://security.ubuntu.com trusty-security/universe amd64 Packages [102 kB]
  33. Get:7 http://archive.ubuntu.com trusty-updates Release [63.5 kB]
  34. Get:8 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [3,680 B]
  35. Get:9 http://security.ubuntu.com trusty-security/main Translation-en [136 kB]
  36. Hit http://archive.ubuntu.com trusty/main amd64 Packages
  37. Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
  38. Get:10 http://security.ubuntu.com trusty-security/multiverse Translation-en [1,679 B]
  39. Get:11 http://security.ubuntu.com trusty-security/restricted Translation-en [2,266 B]
  40. Get:12 http://security.ubuntu.com trusty-security/universe Translation-en [57.3 kB]
  41. Hit http://archive.ubuntu.com trusty/universe amd64 Packages
  42. Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages
  43. Hit http://archive.ubuntu.com trusty/main Translation-en
  44. Hit http://archive.ubuntu.com trusty/multiverse Translation-en
  45. Hit http://archive.ubuntu.com trusty/restricted Translation-en
  46. Hit http://archive.ubuntu.com trusty/universe Translation-en
  47. Get:13 http://archive.ubuntu.com trusty-updates/main amd64 Packages [516 kB]
  48. Get:14 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [9,238 B]
  49. Get:15 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [277 kB]
  50. Get:16 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [12.0 kB]
  51. Get:17 http://archive.ubuntu.com trusty-updates/main Translation-en [245 kB]
  52. Get:18 http://archive.ubuntu.com trusty-updates/multiverse Translation-en [6,148 B]
  53. Get:19 http://archive.ubuntu.com trusty-updates/restricted Translation-en [2,433 B]
  54. Get:20 http://archive.ubuntu.com trusty-updates/universe Translation-en [144 kB]
  55. Ign http://archive.ubuntu.com trusty/main Translation-en_US
  56. Ign http://archive.ubuntu.com trusty/multiverse Translation-en_US
  57. Ign http://archive.ubuntu.com trusty/restricted Translation-en_US
  58. Ign http://archive.ubuntu.com trusty/universe Translation-en_US
  59. Fetched 1,920 kB in 12s (149 kB/s)
  60. Reading package lists... Done
  61. + apt-get install -y lxc
  62. Reading package lists... Done
  63. Building dependency tree
  64. Reading state information... Done
  65. The following extra packages will be installed:
  66. bridge-utils cgmanager cloud-image-utils debootstrap distro-info
  67. distro-info-data euca2ools libaio1 libboost-system1.54.0
  68. libboost-thread1.54.0 liblxc1 librados2 librbd1 libseccomp2 lxc-templates
  69. python-distro-info python-requestbuilder python-setuptools python3-lxc
  70. qemu-utils sharutils uidmap
  71. Suggested packages:
  72. cgmanager-utils shunit2 lxctl qemu-user-static bsd-mailx mailx
  73. The following NEW packages will be installed:
  74. bridge-utils cgmanager cloud-image-utils debootstrap distro-info
  75. distro-info-data euca2ools libaio1 libboost-system1.54.0
  76. libboost-thread1.54.0 liblxc1 librados2 librbd1 libseccomp2 lxc
  77. lxc-templates python-distro-info python-requestbuilder python-setuptools
  78. python3-lxc qemu-utils sharutils uidmap
  79. 0 upgraded, 23 newly installed, 0 to remove and 205 not upgraded.
  80. Need to get 3,563 kB of archives.
  81. After this operation, 15.8 MB of additional disk space will be used.
  82. Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main libaio1 amd64 0.3.109-4 [6,364 B]
  83. Get:2 http://security.ubuntu.com/ubuntu/ trusty-security/main qemu-utils amd64 2.0.0+dfsg-2ubuntu1.11 [412 kB]
  84. Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-system1.54.0 amd64 1.54.0-4ubuntu3.1 [10.1 kB]
  85. Get:4 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-thread1.54.0 amd64 1.54.0-4ubuntu3.1 [26.5 kB]
  86. Get:5 http://archive.ubuntu.com/ubuntu/ trusty-updates/main cgmanager amd64 0.24-0ubuntu7.3 [49.9 kB]
  87. Get:6 http://archive.ubuntu.com/ubuntu/ trusty/main libseccomp2 amd64 2.1.0+dfsg-1 [34.8 kB]
  88. Get:7 http://archive.ubuntu.com/ubuntu/ trusty-updates/main liblxc1 amd64 1.0.7-0ubuntu0.1 [163 kB]
  89. Get:8 http://archive.ubuntu.com/ubuntu/ trusty-updates/main librados2 amd64 0.80.9-0ubuntu0.14.04.2 [1,429 kB]
  90. Get:9 http://archive.ubuntu.com/ubuntu/ trusty-updates/main librbd1 amd64 0.80.9-0ubuntu0.14.04.2 [319 kB]
  91. Get:10 http://archive.ubuntu.com/ubuntu/ trusty/main python-requestbuilder all 0.1.0~beta2-1build1 [25.4 kB]
  92. Get:11 http://archive.ubuntu.com/ubuntu/ trusty/main bridge-utils amd64 1.5-6ubuntu2 [29.2 kB]
  93. Get:12 http://archive.ubuntu.com/ubuntu/ trusty-updates/main distro-info-data all 0.18ubuntu0.3 [4,294 B]
  94. Get:13 http://archive.ubuntu.com/ubuntu/ trusty/main distro-info amd64 0.12 [19.3 kB]
  95. Get:14 http://archive.ubuntu.com/ubuntu/ trusty/main python-setuptools all 3.3-1ubuntu1 [230 kB]
  96. Get:15 http://archive.ubuntu.com/ubuntu/ trusty/main euca2ools all 3.0.2-1ubuntu1 [251 kB]
  97. Get:16 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python3-lxc amd64 1.0.7-0ubuntu0.1 [19.9 kB]
  98. Get:17 http://archive.ubuntu.com/ubuntu/ trusty-updates/main lxc amd64 1.0.7-0ubuntu0.1 [200 kB]
  99. Get:18 http://archive.ubuntu.com/ubuntu/ trusty-updates/main lxc-templates amd64 1.0.7-0ubuntu0.1 [62.4 kB]
  100. Get:19 http://archive.ubuntu.com/ubuntu/ trusty/main python-distro-info all 0.12 [8,082 B]
  101. Get:20 http://archive.ubuntu.com/ubuntu/ trusty/main sharutils amd64 1:4.14-1ubuntu1 [145 kB]
  102. Get:21 http://archive.ubuntu.com/ubuntu/ trusty/main uidmap amd64 1:4.1.5.1-1ubuntu9 [63.3 kB]
  103. Get:22 http://archive.ubuntu.com/ubuntu/ trusty-updates/main cloud-image-utils all 0.27-0ubuntu9.1 [25.6 kB]
  104. Get:23 http://archive.ubuntu.com/ubuntu/ trusty-updates/main debootstrap all 1.0.59ubuntu0.3 [29.8 kB]
  105. Fetched 3,563 kB in 16s (217 kB/s)
  106. Selecting previously unselected package libaio1:amd64.
  107. (Reading database ... 154842 files and directories currently installed.)
  108. Preparing to unpack .../libaio1_0.3.109-4_amd64.deb ...
  109. Unpacking libaio1:amd64 (0.3.109-4) ...
  110. Selecting previously unselected package libboost-system1.54.0:amd64.
  111. Preparing to unpack .../libboost-system1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
  112. Unpacking libboost-system1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
  113. Selecting previously unselected package libboost-thread1.54.0:amd64.
  114. Preparing to unpack .../libboost-thread1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
  115. Unpacking libboost-thread1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
  116. Selecting previously unselected package cgmanager.
  117. Preparing to unpack .../cgmanager_0.24-0ubuntu7.3_amd64.deb ...
  118. Unpacking cgmanager (0.24-0ubuntu7.3) ...
  119. Selecting previously unselected package libseccomp2:amd64.
  120. Preparing to unpack .../libseccomp2_2.1.0+dfsg-1_amd64.deb ...
  121. Unpacking libseccomp2:amd64 (2.1.0+dfsg-1) ...
  122. Selecting previously unselected package liblxc1.
  123. Preparing to unpack .../liblxc1_1.0.7-0ubuntu0.1_amd64.deb ...
  124. Unpacking liblxc1 (1.0.7-0ubuntu0.1) ...
  125. Selecting previously unselected package librados2.
  126. Preparing to unpack .../librados2_0.80.9-0ubuntu0.14.04.2_amd64.deb ...
  127. Unpacking librados2 (0.80.9-0ubuntu0.14.04.2) ...
  128. Selecting previously unselected package librbd1.
  129. Preparing to unpack .../librbd1_0.80.9-0ubuntu0.14.04.2_amd64.deb ...
  130. Unpacking librbd1 (0.80.9-0ubuntu0.14.04.2) ...
  131. Selecting previously unselected package python-requestbuilder.
  132. Preparing to unpack .../python-requestbuilder_0.1.0~beta2-1build1_all.deb ...
  133. Unpacking python-requestbuilder (0.1.0~beta2-1build1) ...
  134. Selecting previously unselected package bridge-utils.
  135. Preparing to unpack .../bridge-utils_1.5-6ubuntu2_amd64.deb ...
  136. Unpacking bridge-utils (1.5-6ubuntu2) ...
  137. Selecting previously unselected package distro-info-data.
  138. Preparing to unpack .../distro-info-data_0.18ubuntu0.3_all.deb ...
  139. Unpacking distro-info-data (0.18ubuntu0.3) ...
  140. Selecting previously unselected package distro-info.
  141. Preparing to unpack .../distro-info_0.12_amd64.deb ...
  142. Unpacking distro-info (0.12) ...
  143. Selecting previously unselected package python-setuptools.
  144. Preparing to unpack .../python-setuptools_3.3-1ubuntu1_all.deb ...
  145. Unpacking python-setuptools (3.3-1ubuntu1) ...
  146. Selecting previously unselected package euca2ools.
  147. Preparing to unpack .../euca2ools_3.0.2-1ubuntu1_all.deb ...
  148. Unpacking euca2ools (3.0.2-1ubuntu1) ...
  149. Selecting previously unselected package python3-lxc.
  150. Preparing to unpack .../python3-lxc_1.0.7-0ubuntu0.1_amd64.deb ...
  151. Unpacking python3-lxc (1.0.7-0ubuntu0.1) ...
  152. Selecting previously unselected package lxc.
  153. Preparing to unpack .../lxc_1.0.7-0ubuntu0.1_amd64.deb ...
  154. Unpacking lxc (1.0.7-0ubuntu0.1) ...
  155. Selecting previously unselected package lxc-templates.
  156. Preparing to unpack .../lxc-templates_1.0.7-0ubuntu0.1_amd64.deb ...
  157. Unpacking lxc-templates (1.0.7-0ubuntu0.1) ...
  158. Selecting previously unselected package python-distro-info.
  159. Preparing to unpack .../python-distro-info_0.12_all.deb ...
  160. Unpacking python-distro-info (0.12) ...
  161. Selecting previously unselected package qemu-utils.
  162. Preparing to unpack .../qemu-utils_2.0.0+dfsg-2ubuntu1.11_amd64.deb ...
  163. Unpacking qemu-utils (2.0.0+dfsg-2ubuntu1.11) ...
  164. Selecting previously unselected package sharutils.
  165. Preparing to unpack .../sharutils_1%3a4.14-1ubuntu1_amd64.deb ...
  166. Unpacking sharutils (1:4.14-1ubuntu1) ...
  167. Selecting previously unselected package uidmap.
  168. Preparing to unpack .../uidmap_1%3a4.1.5.1-1ubuntu9_amd64.deb ...
  169. Unpacking uidmap (1:4.1.5.1-1ubuntu9) ...
  170. Selecting previously unselected package cloud-image-utils.
  171. Preparing to unpack .../cloud-image-utils_0.27-0ubuntu9.1_all.deb ...
  172. Unpacking cloud-image-utils (0.27-0ubuntu9.1) ...
  173. Selecting previously unselected package debootstrap.
  174. Preparing to unpack .../debootstrap_1.0.59ubuntu0.3_all.deb ...
  175. Unpacking debootstrap (1.0.59ubuntu0.3) ...
  176. Processing triggers for ureadahead (0.100.0-16) ...
  177. Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
  178. Processing triggers for install-info (5.2.0.dfsg.1-2) ...
  179. Setting up libaio1:amd64 (0.3.109-4) ...
  180. Setting up libboost-system1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
  181. Setting up libboost-thread1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
  182. Setting up cgmanager (0.24-0ubuntu7.3) ...
  183. cgmanager start/running, process 7003
  184. cgproxy stop/pre-start, process 7040
  185. Setting up libseccomp2:amd64 (2.1.0+dfsg-1) ...
  186. Setting up librados2 (0.80.9-0ubuntu0.14.04.2) ...
  187. Setting up librbd1 (0.80.9-0ubuntu0.14.04.2) ...
  188. Setting up python-requestbuilder (0.1.0~beta2-1build1) ...
  189. Setting up bridge-utils (1.5-6ubuntu2) ...
  190. Setting up distro-info-data (0.18ubuntu0.3) ...
  191. Setting up distro-info (0.12) ...
  192. Setting up python-setuptools (3.3-1ubuntu1) ...
  193. Setting up euca2ools (3.0.2-1ubuntu1) ...
  194. Setting up python-distro-info (0.12) ...
  195. Setting up qemu-utils (2.0.0+dfsg-2ubuntu1.11) ...
  196. Setting up sharutils (1:4.14-1ubuntu1) ...
  197. Setting up uidmap (1:4.1.5.1-1ubuntu9) ...
  198. Setting up cloud-image-utils (0.27-0ubuntu9.1) ...
  199. Setting up debootstrap (1.0.59ubuntu0.3) ...
  200. Processing triggers for ureadahead (0.100.0-16) ...
  201. Setting up liblxc1 (1.0.7-0ubuntu0.1) ...
  202. Setting up python3-lxc (1.0.7-0ubuntu0.1) ...
  203. Setting up lxc (1.0.7-0ubuntu0.1) ...
  204. lxc start/running
  205. Setting up lxc dnsmasq configuration.
  206. Processing triggers for ureadahead (0.100.0-16) ...
  207. Setting up lxc-templates (1.0.7-0ubuntu0.1) ...
  208. Processing triggers for libc-bin (2.19-0ubuntu6.5) ...
  209. + apt-get clean
  210. + lxc-checkconfig
  211. Kernel configuration not found at /proc/config.gz; searching...
  212. Kernel configuration found at /boot/config-3.16.0-30-generic
  213. --- Namespaces ---
  214. Namespaces: enabled
  215. Utsname namespace: enabled
  216. Ipc namespace: enabled
  217. Pid namespace: enabled
  218. User namespace: enabled
  219. Network namespace: enabled
  220. Multiple /dev/pts instances: enabled
  221.  
  222. --- Control groups ---
  223. Cgroup: enabled
  224. Cgroup clone_children flag: enabled
  225. Cgroup device: enabled
  226. Cgroup sched: enabled
  227. Cgroup cpu account: enabled
  228. Cgroup memory controller: enabled
  229. Cgroup cpuset: enabled
  230.  
  231. --- Misc ---
  232. Veth pair device: enabled
  233. Macvlan: enabled
  234. Vlan: enabled
  235. File capabilities: enabled
  236.  
  237. Note : Before booting a new kernel, you can check its configuration
  238. usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig
  239.  
  240. + ifconfig
  241. eth0 Link encap:Ethernet HWaddr 08:00:27:12:9e:09
  242. inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
  243. inet6 addr: fe80::a00:27ff:fe12:9e09/64 Scope:Link
  244. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  245. RX packets:7773 errors:0 dropped:0 overruns:0 frame:0
  246. TX packets:4040 errors:0 dropped:0 overruns:0 carrier:0
  247. collisions:0 txqueuelen:1000
  248. RX bytes:5946562 (5.9 MB) TX bytes:276622 (276.6 KB)
  249.  
  250. lo Link encap:Local Loopback
  251. inet addr:127.0.0.1 Mask:255.0.0.0
  252. inet6 addr: ::1/128 Scope:Host
  253. UP LOOPBACK RUNNING MTU:65536 Metric:1
  254. RX packets:203 errors:0 dropped:0 overruns:0 frame:0
  255. TX packets:203 errors:0 dropped:0 overruns:0 carrier:0
  256. collisions:0 txqueuelen:0
  257. RX bytes:18180 (18.1 KB) TX bytes:18180 (18.1 KB)
  258.  
  259. lxcbr0 Link encap:Ethernet HWaddr 26:cc:10:6f:0c:0e
  260. inet addr:10.0.3.1 Bcast:10.0.3.255 Mask:255.255.255.0
  261. inet6 addr: fe80::24cc:10ff:fe6f:c0e/64 Scope:Link
  262. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  263. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  264. TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
  265. collisions:0 txqueuelen:0
  266. RX bytes:0 (0.0 B) TX bytes:1551 (1.5 KB)
  267.  
  268. + brctl show
  269. bridge name bridge id STP enabled interfaces
  270. lxcbr0 8000.000000000000 no
  271. + adduser testuser
  272. Adding user `testuser' ...
  273. Adding new group `testuser' (1000) ...
  274. Adding new user `testuser' (1000) with group `testuser' ...
  275. Creating home directory `/home/testuser' ...
  276. Copying files from `/etc/skel' ...
  277. Enter new UNIX password:
  278. Retype new UNIX password:
  279. passwd: password updated successfully
  280. Changing the user information for testuser
  281. Enter the new value, or press ENTER for the default
  282. Full Name []:
  283. Room Number []:
  284. Work Phone []:
  285. Home Phone []:
  286. Other []:
  287. Is the information correct? [Y/n]
  288. + cat /etc/subuid /etc/subgid
  289. testuser:100000:65536
  290. testuser:100000:65536
  291. + cat
  292. + sudo -u testuser -i mkdir -p .config/lxc
  293. + cut -d: -f2
  294. + grep testuser /etc/subuid
  295. + cut -d: -f2
  296. + grep testuser /etc/subgid
  297. + sudo -u testuser -i tee .config/lxc/default.conf
  298. lxc.id_map = u 0 100000 65536
  299. lxc.id_map = g 0 100000 65536
  300.  
  301. lxc.network.type = veth
  302. lxc.network.link = lxcbr0
  303. lxc.network.flags = up
  304. lxc.network.hwaddr = 00:16:3e:xx:xx:xx
  305. + cat /home/testuser/.config/lxc/default.conf
  306. lxc.id_map = u 0 100000 65536
  307. lxc.id_map = g 0 100000 65536
  308.  
  309. lxc.network.type = veth
  310. lxc.network.link = lxcbr0
  311. lxc.network.flags = up
  312. lxc.network.hwaddr = 00:16:3e:xx:xx:xx
  313. + echo ==== TEST UBUNTU VIVID GUEST ====
  314. ==== TEST UBUNTU VIVID GUEST ====
  315. + sudo -u testuser -i lxc-create -t download -n vivid1 -- -d ubuntu -r utopic -a amd64
  316. WARN: could not reopen tty: Permission denied
  317. WARN: could not reopen tty: Permission denied
  318. WARN: could not reopen tty: Permission denied
  319. WARN: could not reopen tty: Permission denied
  320. Setting up the GPG keyring
  321. Downloading the image index
  322. Downloading the rootfs
  323. Downloading the metadata
  324. The image cache is now ready
  325. Unpacking the rootfs
  326.  
  327. ---
  328. You just created an Ubuntu container (release=utopic, arch=amd64, variant=default)
  329.  
  330. To enable sshd, run: apt-get install openssh-server
  331.  
  332. For security reason, container images ship without user accounts
  333. and without a root password.
  334.  
  335. Use lxc-attach or chroot directly into the rootfs to set a root password
  336. or create user accounts.
  337. + [ 0 -eq 0 ]
  338. + rm /tmp/log
  339. rm: cannot remove ‘/tmp/log’: No such file or directory
  340. + sudo -u testuser -i lxc-start -n vivid1 -l debug --logfile /tmp/log
  341. WARN: could not reopen tty: Permission denied
  342. WARN: could not reopen tty: Permission denied
  343. WARN: could not reopen tty: Permission denied
  344. WARN: could not reopen tty: Permission denied
  345. WARN: could not reopen tty: Permission denied
  346. lxc-start: cgmanager.c: lxc_cgmanager_create: 299 call to cgmanager_create_sync failed: invalid request
  347. lxc-start: cgmanager.c: lxc_cgmanager_create: 301 Failed to create hugetlb:vivid1
  348. lxc-start: cgmanager.c: cgm_create: 646 Error creating cgroup hugetlb:vivid1
  349. lxc-start: start.c: lxc_spawn: 861 failed creating cgroups
  350. lxc-start: start.c: __lxc_start: 1080 failed to spawn 'vivid1'
  351. lxc-start: lxc_start.c: main: 342 The container failed to start.
  352. lxc-start: lxc_start.c: main: 346 Additional information can be obtained by setting the --logfile and --logpriority options.
  353. + cat /tmp/log
  354. lxc-start 1431627862.080 INFO lxc_start_ui - lxc_start.c:main:265 - using rcfile /home/testuser/.local/share/lxc/vivid1/config
  355. lxc-start 1431627862.080 INFO lxc_utils - utils.c:get_rundir:409 - XDG_RUNTIME_DIR isn't set in the environment.
  356. lxc-start 1431627862.080 INFO lxc_confile - confile.c:config_idmap:1325 - read uid map: type u nsid 0 hostid 100000 range 65536
  357. lxc-start 1431627862.080 INFO lxc_confile - confile.c:config_idmap:1325 - read uid map: type g nsid 0 hostid 100000 range 65536
  358. lxc-start 1431627862.081 WARN lxc_log - log.c:lxc_log_init:316 - lxc_log_init called with log already initialized
  359. lxc-start 1431627862.081 WARN lxc_cgmanager - cgmanager.c:cgm_get:954 - do_cgm_get exited with error
  360. lxc-start 1431627862.081 INFO lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM security driver AppArmor
  361. lxc-start 1431627862.081 INFO lxc_utils - utils.c:get_rundir:409 - XDG_RUNTIME_DIR isn't set in the environment.
  362. lxc-start 1431627862.081 DEBUG lxc_conf - conf.c:lxc_create_tty:3665 - allocated pty '/dev/pts/0' (5/6)
  363. lxc-start 1431627862.081 DEBUG lxc_conf - conf.c:lxc_create_tty:3665 - allocated pty '/dev/pts/10' (7/8)
  364. lxc-start 1431627862.081 DEBUG lxc_conf - conf.c:lxc_create_tty:3665 - allocated pty '/dev/pts/12' (9/10)
  365. lxc-start 1431627862.081 DEBUG lxc_conf - conf.c:lxc_create_tty:3665 - allocated pty '/dev/pts/14' (11/12)
  366. lxc-start 1431627862.081 INFO lxc_conf - conf.c:lxc_create_tty:3676 - tty's configured
  367. lxc-start 1431627862.081 DEBUG lxc_start - start.c:setup_signal_fd:247 - sigchild handler set
  368. lxc-start 1431627862.081 DEBUG lxc_console - console.c:lxc_console_peer_default:500 - opening /dev/tty for console peer
  369. lxc-start 1431627862.081 DEBUG lxc_console - console.c:lxc_console_peer_default:506 - using '/dev/tty' as console
  370. lxc-start 1431627862.081 DEBUG lxc_console - console.c:lxc_console_sigwinch_init:179 - 7493 got SIGWINCH fd 17
  371. lxc-start 1431627862.081 DEBUG lxc_console - console.c:lxc_console_winsz:88 - set winsz dstfd:14 cols:80 rows:24
  372. lxc-start 1431627862.106 INFO lxc_start - start.c:lxc_init:443 - 'vivid1' is initialized
  373. lxc-start 1431627862.107 DEBUG lxc_start - start.c:__lxc_start:1058 - Not dropping cap_sys_boot or watching utmp
  374. lxc-start 1431627862.107 INFO lxc_start - start.c:lxc_spawn:802 - Cloning a new user namespace
  375. lxc-start 1431627862.107 INFO lxc_cgroup - cgroup.c:cgroup_init:62 - cgroup driver cgmanager initing for vivid1
  376. lxc-start 1431627862.107 ERROR lxc_cgmanager - cgmanager.c:lxc_cgmanager_create:299 - call to cgmanager_create_sync failed: invalid request
  377. lxc-start 1431627862.107 ERROR lxc_cgmanager - cgmanager.c:lxc_cgmanager_create:301 - Failed to create hugetlb:vivid1
  378. lxc-start 1431627862.107 ERROR lxc_cgmanager - cgmanager.c:cgm_create:646 - Error creating cgroup hugetlb:vivid1
  379. lxc-start 1431627862.107 INFO lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:523 - cgroup removal attempt: hugetlb:vivid1 did not exist
  380. lxc-start 1431627862.107 INFO lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:523 - cgroup removal attempt: net_prio:vivid1 did not exist
  381. lxc-start 1431627862.107 INFO lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:523 - cgroup removal attempt: perf_event:vivid1 did not exist
  382. lxc-start 1431627862.107 INFO lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:523 - cgroup removal attempt: blkio:vivid1 did not exist
  383. lxc-start 1431627862.107 INFO lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:523 - cgroup removal attempt: net_cls:vivid1 did not exist
  384. lxc-start 1431627862.108 INFO lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:523 - cgroup removal attempt: freezer:vivid1 did not exist
  385. lxc-start 1431627862.108 INFO lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:523 - cgroup removal attempt: devices:vivid1 did not exist
  386. lxc-start 1431627862.108 INFO lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:523 - cgroup removal attempt: memory:vivid1 did not exist
  387. lxc-start 1431627862.108 INFO lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:523 - cgroup removal attempt: cpuacct:vivid1 did not exist
  388. lxc-start 1431627862.108 INFO lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:523 - cgroup removal attempt: cpu:vivid1 did not exist
  389. lxc-start 1431627862.108 INFO lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:523 - cgroup removal attempt: cpuset:vivid1 did not exist
  390. lxc-start 1431627862.108 INFO lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:523 - cgroup removal attempt: name=systemd:vivid1 did not exist
  391. lxc-start 1431627862.108 ERROR lxc_start - start.c:lxc_spawn:861 - failed creating cgroups
  392. lxc-start 1431627862.108 INFO lxc_utils - utils.c:get_rundir:409 - XDG_RUNTIME_DIR isn't set in the environment.
  393. lxc-start 1431627862.109 ERROR lxc_start - start.c:__lxc_start:1080 - failed to spawn 'vivid1'
  394. lxc-start 1431627862.109 INFO lxc_utils - utils.c:get_rundir:409 - XDG_RUNTIME_DIR isn't set in the environment.
  395. lxc-start 1431627862.109 INFO lxc_utils - utils.c:get_rundir:409 - XDG_RUNTIME_DIR isn't set in the environment.
  396. lxc-start 1431627862.109 ERROR lxc_start_ui - lxc_start.c:main:342 - The container failed to start.
  397. lxc-start 1431627862.109 ERROR lxc_start_ui - lxc_start.c:main:346 - Additional information can be obtained by setting the --logfile and --logpriority options.
  398. + echo ==== TEST DEBIAN JESSIE GUEST ====
  399. ==== TEST DEBIAN JESSIE GUEST ====
  400. + sudo -u testuser -i lxc-create -t download -n jessie1 -- -d debian -r jessie -a amd64
  401. WARN: could not reopen tty: Permission denied
  402. WARN: could not reopen tty: Permission denied
  403. WARN: could not reopen tty: Permission denied
  404. WARN: could not reopen tty: Permission denied
  405. Setting up the GPG keyring
  406. Downloading the image index
  407. ERROR: Couldn't find a matching image.
  408. lxc_container: lxccontainer.c: create_run_template: 1125 container creation template for jessie1 failed
  409. lxc_container: utils.c: _recursive_rmdir_onedev: 99 _recursive_rmdir_onedev: failed to delete /home/testuser/.local/share/lxc/jessie1
  410. lxc_container: lxccontainer.c: lxcapi_destroy: 2088 Error destroying container directory for jessie1
  411. lxc_container: lxc_create.c: main: 271 Error creating container jessie1
  412. + [ 1 -eq 0 ]
  413. + echo ==== END OF SCRIPT ====
  414. ==== END OF SCRIPT ====
  415. root@xubuntu:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement