Advertisement
Guest User

Untitled

a guest
Oct 18th, 2015
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.77 KB | None | 0 0
  1. Command:
  2. ubuntu-vm-builder kvm trusty --domain [my domain] --dest db --arch amd64 --hostname db --mem 25165824 --user [my default user] --pass [my pass] --ip 192.168.0.11 --mask 255.255.255.0 --net 192.168.0.0 --bcast 192.168.0.255 --gw 192.169.0.10 --dns 192.168.0.10 --components 'main,universe,restricted' --addpkg openssh-server --addpkg vim --libvirt qemu:///system
  3.  
  4.  
  5.  
  6. 2015-10-18 11:16:28,875 INFO : logging to file: /tmp/tmpgU9P8T
  7. 2015-10-18 11:16:28,915 INFO : Calling hook: preflight_check
  8. 2015-10-18 11:16:28,919 INFO : Calling hook: set_defaults
  9. 2015-10-18 11:16:28,919 INFO : Calling hook: bootstrap
  10. 2015-10-18 11:21:47,737 INFO : Calling hook: configure_os
  11. 2015-10-18 11:22:10,724 INFO :
  12. Extracting templates from packages: 71%
  13. Extracting templates from packages: 100%
  14. 2015-10-18 11:22:46,768 INFO : Creating SSH2 RSA key; this may take some time ...
  15. 2015-10-18 11:22:46,951 INFO : Creating SSH2 DSA key; this may take some time ...
  16. 2015-10-18 11:22:46,957 INFO : Creating SSH2 ECDSA key; this may take some time ...
  17. 2015-10-18 11:22:46,975 INFO : Creating SSH2 ED25519 key; this may take some time ...
  18. 2015-10-18 11:22:48,108 INFO : invoke-rc.d: policy-rc.d denied execution of start.
  19. 2015-10-18 11:23:00,644 INFO :
  20. 2015-10-18 11:23:00,644 INFO : Current default time zone: 'Etc/UTC'
  21. 2015-10-18 11:23:00,647 INFO : Local time is now: Sun Oct 18 18:23:00 UTC 2015.
  22. 2015-10-18 11:23:00,648 INFO : Universal Time is now: Sun Oct 18 18:23:00 UTC 2015.
  23. 2015-10-18 11:23:00,648 INFO :
  24. 2015-10-18 11:23:42,408 INFO :
  25. Extracting templates from packages: 38%
  26. Extracting templates from packages: 77%
  27. Extracting templates from packages: 100%
  28. 2015-10-18 11:24:08,599 INFO :
  29. 2015-10-18 11:24:08,599 INFO : Current default time zone: 'Etc/UTC'
  30. 2015-10-18 11:24:08,602 INFO : Local time is now: Sun Oct 18 18:24:08 UTC 2015.
  31. 2015-10-18 11:24:08,602 INFO : Universal Time is now: Sun Oct 18 18:24:08 UTC 2015.
  32. 2015-10-18 11:24:08,602 INFO : Run 'dpkg-reconfigure tzdata' if you wish to change it.
  33. 2015-10-18 11:24:08,603 INFO :
  34. 2015-10-18 11:24:12,032 INFO : invoke-rc.d: policy-rc.d denied execution of stop.
  35. 2015-10-18 11:25:04,266 INFO : invoke-rc.d: policy-rc.d denied execution of stop.
  36. 2015-10-18 11:25:07,899 INFO : invoke-rc.d: policy-rc.d denied execution of start.
  37. 2015-10-18 11:25:09,162 INFO : invoke-rc.d: policy-rc.d denied execution of restart.
  38. 2015-10-18 11:25:17,825 INFO : invoke-rc.d: policy-rc.d denied execution of start.
  39. 2015-10-18 11:25:22,046 INFO : invoke-rc.d: policy-rc.d denied execution of restart.
  40. 2015-10-18 11:25:34,028 INFO : Cleaning up
  41. 2015-10-18 11:25:34,029 INFO : Calling hook: preflight_check
  42. 2015-10-18 11:25:34,078 INFO : Calling hook: configure_networking
  43. 2015-10-18 11:25:34,095 INFO : Calling hook: configure_mounting
  44. 2015-10-18 11:25:34,103 INFO : Calling hook: mount_partitions
  45. 2015-10-18 11:25:34,103 INFO : Mounting target filesystems
  46. 2015-10-18 11:25:34,104 INFO : Creating disk image: "/tmp/tmpQZDeJe" of size: 5120MB
  47. 2015-10-18 11:25:34,164 INFO : Adding partition table to disk image: /tmp/tmpQZDeJe
  48. 2015-10-18 11:25:34,244 INFO : Adding type 4 partition to disk image: /tmp/tmpQZDeJe
  49. 2015-10-18 11:25:34,245 INFO : Partition at beginning of disk - reserving first cylinder
  50. 2015-10-18 11:25:34,251 INFO : Warning: The resulting partition is not properly aligned for best performance.
  51. 2015-10-18 11:25:34,294 INFO : Adding type 3 partition to disk image: /tmp/tmpQZDeJe
  52. 2015-10-18 11:25:34,302 INFO : [0] ../../libparted/filesys.c:148 (ped_file_system_type_get): File system alias linux-swap(new) is deprecated
  53. 2015-10-18 11:25:34,345 INFO : Creating loop devices corresponding to the created partitions
  54. 2015-10-18 11:25:34,354 INFO : Creating file systems
  55. 2015-10-18 11:25:34,359 INFO : mke2fs 1.42.12 (29-Aug-2014)
  56. 2015-10-18 11:25:37,764 INFO : Calling hook: install_bootloader
  57. 2015-10-18 11:26:01,451 INFO : initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
  58. 2015-10-18 11:26:04,063 INFO : Removing update-grub hooks from /etc/kernel-img.conf in favour of
  59. 2015-10-18 11:26:04,064 INFO : /etc/kernel/ hooks.
  60. 2015-10-18 11:26:04,237 INFO : Searching for GRUB installation directory ... found: /boot/grub
  61. 2015-10-18 11:26:04,311 INFO : Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
  62. 2015-10-18 11:26:04,313 INFO : Searching for GRUB installation directory ... found: /boot/grub
  63. 2015-10-18 11:26:04,317 INFO : Testing for an existing GRUB menu.lst file ...
  64. 2015-10-18 11:26:04,317 INFO :
  65. 2015-10-18 11:26:04,317 INFO : Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) /usr/sbin/update-grub: line 1094: read: read error: 0: Bad file descriptor
  66. 2015-10-18 11:26:10,471 INFO : Searching for GRUB installation directory ... found: /boot/grub
  67. 2015-10-18 11:26:10,557 INFO : Searching for default file ... found: /boot/grub/default
  68. 2015-10-18 11:26:10,559 INFO : Testing for an existing GRUB menu.lst file ...
  69. 2015-10-18 11:26:10,560 INFO :
  70. 2015-10-18 11:26:10,560 INFO : Could not find /boot/grub/menu.lst file.
  71. 2015-10-18 11:26:10,560 INFO : Generating /boot/grub/menu.lst
  72. 2015-10-18 11:26:10,648 INFO : Searching for splash image ... none found, skipping ...
  73. 2015-10-18 11:26:10,861 INFO : grep: /boot/config*: No such file or directory
  74. 2015-10-18 11:26:10,974 INFO : Updating /boot/grub/menu.lst ... done
  75. 2015-10-18 11:26:10,975 INFO :
  76. 2015-10-18 11:26:11,307 INFO : Searching for GRUB installation directory ... found: /boot/grub
  77. 2015-10-18 11:26:11,402 INFO : Searching for default file ... found: /boot/grub/default
  78. 2015-10-18 11:26:11,407 INFO : Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
  79. 2015-10-18 11:26:11,555 INFO : Searching for splash image ... none found, skipping ...
  80. 2015-10-18 11:26:11,600 INFO : grep: /boot/config*: No such file or directory
  81. 2015-10-18 11:26:11,719 INFO : Updating /boot/grub/menu.lst ... done
  82. 2015-10-18 11:26:11,719 INFO :
  83. 2015-10-18 11:26:11,916 INFO : Searching for GRUB installation directory ... found: /boot/grub
  84. 2015-10-18 11:26:11,942 INFO : Calling hook: install_kernel
  85. 2015-10-18 11:26:22,935 INFO : grep: /proc/cpuinfo: No such file or directory
  86. 2015-10-18 11:26:22,936 INFO : This kernel does not support a non-PAE CPU.
  87. 2015-10-18 11:26:22,939 INFO : dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-65-generic_3.13.0-65.106_amd64.deb (--unpack):
  88. 2015-10-18 11:26:22,940 INFO : subprocess new pre-installation script returned error exit status 1
  89. 2015-10-18 11:26:22,961 INFO : Examining /etc/kernel/postrm.d .
  90. 2015-10-18 11:26:22,962 INFO : run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
  91. 2015-10-18 11:26:22,965 INFO : run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
  92. 2015-10-18 11:26:24,579 INFO : Errors were encountered while processing:
  93. 2015-10-18 11:26:24,579 INFO : /var/cache/apt/archives/linux-image-3.13.0-65-generic_3.13.0-65.106_amd64.deb
  94. 2015-10-18 11:26:25,120 INFO : E: Sub-process /usr/bin/dpkg returned an error code (1)
  95. 2015-10-18 11:26:25,122 INFO : Cleaning up
  96. 2015-10-18 11:26:29,204 ERROR : Process (['chroot', '/tmp/tmpfuJ93Y', 'apt-get', '--force-yes', '-y', 'install', 'linux-image-virtual']) returned 100. stdout: Reading package lists...
  97. Building dependency tree...
  98. Reading state information...
  99. The following extra packages will be installed:
  100. linux-image-3.13.0-65-generic
  101. Suggested packages:
  102. fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
  103. linux-headers-3.13.0-65-generic
  104. The following NEW packages will be installed:
  105. linux-image-3.13.0-65-generic linux-image-virtual
  106. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  107. Need to get 15.2 MB of archives.
  108. After this operation, 42.5 MB of additional disk space will be used.
  109. Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main linux-image-3.13.0-65-generic amd64 3.13.0-65.106 [15.2 MB]
  110. Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main linux-image-virtual amd64 3.13.0.65.71 [2386 B]
  111. Fetched 15.2 MB in 9s (1636 kB/s)
  112. Selecting previously unselected package linux-image-3.13.0-65-generic.
  113. (Reading database ... 17744 files and directories currently installed.)
  114. Preparing to unpack .../linux-image-3.13.0-65-generic_3.13.0-65.106_amd64.deb ...
  115. Selecting previously unselected package linux-image-virtual.
  116. Preparing to unpack .../linux-image-virtual_3.13.0.65.71_amd64.deb ...
  117. Unpacking linux-image-virtual (3.13.0.65.71) ...
  118. , stderr: grep: /proc/cpuinfo: No such file or directory
  119. This kernel does not support a non-PAE CPU.
  120. dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-65-generic_3.13.0-65.106_amd64.deb (--unpack):
  121. subprocess new pre-installation script returned error exit status 1
  122. Examining /etc/kernel/postrm.d .
  123. run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
  124. run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
  125. Errors were encountered while processing:
  126. /var/cache/apt/archives/linux-image-3.13.0-65-generic_3.13.0-65.106_amd64.deb
  127. E: Sub-process /usr/bin/dpkg returned an error code (1)
  128.  
  129. Traceback (most recent call last):
  130. File "/usr/bin/ubuntu-vm-builder", line 24, in <module>
  131. uvb.main()
  132. File "/usr/lib/python2.7/dist-packages/VMBuilder/contrib/cli.py", line 228, in main
  133. hypervisor.install_os()
  134. File "/usr/lib/python2.7/dist-packages/VMBuilder/hypervisor.py", line 70, in install_os
  135. self.call_hooks('install_kernel', self.chroot_dir)
  136. File "/usr/lib/python2.7/dist-packages/VMBuilder/distro.py", line 67, in call_hooks
  137. call_hooks(self, *args, **kwargs)
  138. File "/usr/lib/python2.7/dist-packages/VMBuilder/util.py", line 159, in call_hooks
  139. getattr(plugin, func)(*args, **kwargs)
  140. File "/usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/distro.py", line 190, in install_kernel
  141. self.suite.install_kernel(destdir)
  142. File "/usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.py", line 307, in install_kernel
  143. run_cmd('chroot', destdir, 'apt-get', '--force-yes', '-y', 'install', self.kernel_name(), env={ 'DEBIAN_FRONTEND' : 'noninteractive' })
  144. File "/usr/lib/python2.7/dist-packages/VMBuilder/util.py", line 120, in run_cmd
  145. raise VMBuilderException, "Process (%s) returned %d. stdout: %s, stderr: %s" % (args.__repr__(), status, mystdout.buf, mystderr.buf)
  146. VMBuilder.exception.VMBuilderException: Process (['chroot', '/tmp/tmpfuJ93Y', 'apt-get', '--force-yes', '-y', 'install', 'linux-image-virtual']) returned 100. stdout: Reading package lists...
  147. Building dependency tree...
  148. Reading state information...
  149. The following extra packages will be installed:
  150. linux-image-3.13.0-65-generic
  151. Suggested packages:
  152. fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
  153. linux-headers-3.13.0-65-generic
  154. The following NEW packages will be installed:
  155. linux-image-3.13.0-65-generic linux-image-virtual
  156. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  157. Need to get 15.2 MB of archives.
  158. After this operation, 42.5 MB of additional disk space will be used.
  159. Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main linux-image-3.13.0-65-generic amd64 3.13.0-65.106 [15.2 MB]
  160. Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main linux-image-virtual amd64 3.13.0.65.71 [2386 B]
  161. Fetched 15.2 MB in 9s (1636 kB/s)
  162. Selecting previously unselected package linux-image-3.13.0-65-generic.
  163. (Reading database ... 17744 files and directories currently installed.)
  164. Preparing to unpack .../linux-image-3.13.0-65-generic_3.13.0-65.106_amd64.deb ...
  165. Selecting previously unselected package linux-image-virtual.
  166. Preparing to unpack .../linux-image-virtual_3.13.0.65.71_amd64.deb ...
  167. Unpacking linux-image-virtual (3.13.0.65.71) ...
  168. , stderr: grep: /proc/cpuinfo: No such file or directory
  169. This kernel does not support a non-PAE CPU.
  170. dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-65-generic_3.13.0-65.106_amd64.deb (--unpack):
  171. subprocess new pre-installation script returned error exit status 1
  172. Examining /etc/kernel/postrm.d .
  173. run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
  174. run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
  175. Errors were encountered while processing:
  176. /var/cache/apt/archives/linux-image-3.13.0-65-generic_3.13.0-65.106_amd64.deb
  177. E: Sub-process /usr/bin/dpkg returned an error code (1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement