Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Command:
- 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
- 2015-10-18 11:16:28,875 INFO : logging to file: /tmp/tmpgU9P8T
- 2015-10-18 11:16:28,915 INFO : Calling hook: preflight_check
- 2015-10-18 11:16:28,919 INFO : Calling hook: set_defaults
- 2015-10-18 11:16:28,919 INFO : Calling hook: bootstrap
- 2015-10-18 11:21:47,737 INFO : Calling hook: configure_os
- 2015-10-18 11:22:10,724 INFO :
- Extracting templates from packages: 71%
- Extracting templates from packages: 100%
- 2015-10-18 11:22:46,768 INFO : Creating SSH2 RSA key; this may take some time ...
- 2015-10-18 11:22:46,951 INFO : Creating SSH2 DSA key; this may take some time ...
- 2015-10-18 11:22:46,957 INFO : Creating SSH2 ECDSA key; this may take some time ...
- 2015-10-18 11:22:46,975 INFO : Creating SSH2 ED25519 key; this may take some time ...
- 2015-10-18 11:22:48,108 INFO : invoke-rc.d: policy-rc.d denied execution of start.
- 2015-10-18 11:23:00,644 INFO :
- 2015-10-18 11:23:00,644 INFO : Current default time zone: 'Etc/UTC'
- 2015-10-18 11:23:00,647 INFO : Local time is now: Sun Oct 18 18:23:00 UTC 2015.
- 2015-10-18 11:23:00,648 INFO : Universal Time is now: Sun Oct 18 18:23:00 UTC 2015.
- 2015-10-18 11:23:00,648 INFO :
- 2015-10-18 11:23:42,408 INFO :
- Extracting templates from packages: 38%
- Extracting templates from packages: 77%
- Extracting templates from packages: 100%
- 2015-10-18 11:24:08,599 INFO :
- 2015-10-18 11:24:08,599 INFO : Current default time zone: 'Etc/UTC'
- 2015-10-18 11:24:08,602 INFO : Local time is now: Sun Oct 18 18:24:08 UTC 2015.
- 2015-10-18 11:24:08,602 INFO : Universal Time is now: Sun Oct 18 18:24:08 UTC 2015.
- 2015-10-18 11:24:08,602 INFO : Run 'dpkg-reconfigure tzdata' if you wish to change it.
- 2015-10-18 11:24:08,603 INFO :
- 2015-10-18 11:24:12,032 INFO : invoke-rc.d: policy-rc.d denied execution of stop.
- 2015-10-18 11:25:04,266 INFO : invoke-rc.d: policy-rc.d denied execution of stop.
- 2015-10-18 11:25:07,899 INFO : invoke-rc.d: policy-rc.d denied execution of start.
- 2015-10-18 11:25:09,162 INFO : invoke-rc.d: policy-rc.d denied execution of restart.
- 2015-10-18 11:25:17,825 INFO : invoke-rc.d: policy-rc.d denied execution of start.
- 2015-10-18 11:25:22,046 INFO : invoke-rc.d: policy-rc.d denied execution of restart.
- 2015-10-18 11:25:34,028 INFO : Cleaning up
- 2015-10-18 11:25:34,029 INFO : Calling hook: preflight_check
- 2015-10-18 11:25:34,078 INFO : Calling hook: configure_networking
- 2015-10-18 11:25:34,095 INFO : Calling hook: configure_mounting
- 2015-10-18 11:25:34,103 INFO : Calling hook: mount_partitions
- 2015-10-18 11:25:34,103 INFO : Mounting target filesystems
- 2015-10-18 11:25:34,104 INFO : Creating disk image: "/tmp/tmpQZDeJe" of size: 5120MB
- 2015-10-18 11:25:34,164 INFO : Adding partition table to disk image: /tmp/tmpQZDeJe
- 2015-10-18 11:25:34,244 INFO : Adding type 4 partition to disk image: /tmp/tmpQZDeJe
- 2015-10-18 11:25:34,245 INFO : Partition at beginning of disk - reserving first cylinder
- 2015-10-18 11:25:34,251 INFO : Warning: The resulting partition is not properly aligned for best performance.
- 2015-10-18 11:25:34,294 INFO : Adding type 3 partition to disk image: /tmp/tmpQZDeJe
- 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
- 2015-10-18 11:25:34,345 INFO : Creating loop devices corresponding to the created partitions
- 2015-10-18 11:25:34,354 INFO : Creating file systems
- 2015-10-18 11:25:34,359 INFO : mke2fs 1.42.12 (29-Aug-2014)
- 2015-10-18 11:25:37,764 INFO : Calling hook: install_bootloader
- 2015-10-18 11:26:01,451 INFO : initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
- 2015-10-18 11:26:04,063 INFO : Removing update-grub hooks from /etc/kernel-img.conf in favour of
- 2015-10-18 11:26:04,064 INFO : /etc/kernel/ hooks.
- 2015-10-18 11:26:04,237 INFO : Searching for GRUB installation directory ... found: /boot/grub
- 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
- 2015-10-18 11:26:04,313 INFO : Searching for GRUB installation directory ... found: /boot/grub
- 2015-10-18 11:26:04,317 INFO : Testing for an existing GRUB menu.lst file ...
- 2015-10-18 11:26:04,317 INFO :
- 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
- 2015-10-18 11:26:10,471 INFO : Searching for GRUB installation directory ... found: /boot/grub
- 2015-10-18 11:26:10,557 INFO : Searching for default file ... found: /boot/grub/default
- 2015-10-18 11:26:10,559 INFO : Testing for an existing GRUB menu.lst file ...
- 2015-10-18 11:26:10,560 INFO :
- 2015-10-18 11:26:10,560 INFO : Could not find /boot/grub/menu.lst file.
- 2015-10-18 11:26:10,560 INFO : Generating /boot/grub/menu.lst
- 2015-10-18 11:26:10,648 INFO : Searching for splash image ... none found, skipping ...
- 2015-10-18 11:26:10,861 INFO : grep: /boot/config*: No such file or directory
- 2015-10-18 11:26:10,974 INFO : Updating /boot/grub/menu.lst ... done
- 2015-10-18 11:26:10,975 INFO :
- 2015-10-18 11:26:11,307 INFO : Searching for GRUB installation directory ... found: /boot/grub
- 2015-10-18 11:26:11,402 INFO : Searching for default file ... found: /boot/grub/default
- 2015-10-18 11:26:11,407 INFO : Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
- 2015-10-18 11:26:11,555 INFO : Searching for splash image ... none found, skipping ...
- 2015-10-18 11:26:11,600 INFO : grep: /boot/config*: No such file or directory
- 2015-10-18 11:26:11,719 INFO : Updating /boot/grub/menu.lst ... done
- 2015-10-18 11:26:11,719 INFO :
- 2015-10-18 11:26:11,916 INFO : Searching for GRUB installation directory ... found: /boot/grub
- 2015-10-18 11:26:11,942 INFO : Calling hook: install_kernel
- 2015-10-18 11:26:22,935 INFO : grep: /proc/cpuinfo: No such file or directory
- 2015-10-18 11:26:22,936 INFO : This kernel does not support a non-PAE CPU.
- 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):
- 2015-10-18 11:26:22,940 INFO : subprocess new pre-installation script returned error exit status 1
- 2015-10-18 11:26:22,961 INFO : Examining /etc/kernel/postrm.d .
- 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
- 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
- 2015-10-18 11:26:24,579 INFO : Errors were encountered while processing:
- 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
- 2015-10-18 11:26:25,120 INFO : E: Sub-process /usr/bin/dpkg returned an error code (1)
- 2015-10-18 11:26:25,122 INFO : Cleaning up
- 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...
- Building dependency tree...
- Reading state information...
- The following extra packages will be installed:
- linux-image-3.13.0-65-generic
- Suggested packages:
- fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
- linux-headers-3.13.0-65-generic
- The following NEW packages will be installed:
- linux-image-3.13.0-65-generic linux-image-virtual
- 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
- Need to get 15.2 MB of archives.
- After this operation, 42.5 MB of additional disk space will be used.
- 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]
- Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main linux-image-virtual amd64 3.13.0.65.71 [2386 B]
- Fetched 15.2 MB in 9s (1636 kB/s)
- Selecting previously unselected package linux-image-3.13.0-65-generic.
- (Reading database ... 17744 files and directories currently installed.)
- Preparing to unpack .../linux-image-3.13.0-65-generic_3.13.0-65.106_amd64.deb ...
- Selecting previously unselected package linux-image-virtual.
- Preparing to unpack .../linux-image-virtual_3.13.0.65.71_amd64.deb ...
- Unpacking linux-image-virtual (3.13.0.65.71) ...
- , stderr: grep: /proc/cpuinfo: No such file or directory
- This kernel does not support a non-PAE CPU.
- dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-65-generic_3.13.0-65.106_amd64.deb (--unpack):
- subprocess new pre-installation script returned error exit status 1
- Examining /etc/kernel/postrm.d .
- run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
- run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
- Errors were encountered while processing:
- /var/cache/apt/archives/linux-image-3.13.0-65-generic_3.13.0-65.106_amd64.deb
- E: Sub-process /usr/bin/dpkg returned an error code (1)
- Traceback (most recent call last):
- File "/usr/bin/ubuntu-vm-builder", line 24, in <module>
- uvb.main()
- File "/usr/lib/python2.7/dist-packages/VMBuilder/contrib/cli.py", line 228, in main
- hypervisor.install_os()
- File "/usr/lib/python2.7/dist-packages/VMBuilder/hypervisor.py", line 70, in install_os
- self.call_hooks('install_kernel', self.chroot_dir)
- File "/usr/lib/python2.7/dist-packages/VMBuilder/distro.py", line 67, in call_hooks
- call_hooks(self, *args, **kwargs)
- File "/usr/lib/python2.7/dist-packages/VMBuilder/util.py", line 159, in call_hooks
- getattr(plugin, func)(*args, **kwargs)
- File "/usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/distro.py", line 190, in install_kernel
- self.suite.install_kernel(destdir)
- File "/usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.py", line 307, in install_kernel
- run_cmd('chroot', destdir, 'apt-get', '--force-yes', '-y', 'install', self.kernel_name(), env={ 'DEBIAN_FRONTEND' : 'noninteractive' })
- File "/usr/lib/python2.7/dist-packages/VMBuilder/util.py", line 120, in run_cmd
- raise VMBuilderException, "Process (%s) returned %d. stdout: %s, stderr: %s" % (args.__repr__(), status, mystdout.buf, mystderr.buf)
- VMBuilder.exception.VMBuilderException: Process (['chroot', '/tmp/tmpfuJ93Y', 'apt-get', '--force-yes', '-y', 'install', 'linux-image-virtual']) returned 100. stdout: Reading package lists...
- Building dependency tree...
- Reading state information...
- The following extra packages will be installed:
- linux-image-3.13.0-65-generic
- Suggested packages:
- fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
- linux-headers-3.13.0-65-generic
- The following NEW packages will be installed:
- linux-image-3.13.0-65-generic linux-image-virtual
- 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
- Need to get 15.2 MB of archives.
- After this operation, 42.5 MB of additional disk space will be used.
- 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]
- Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main linux-image-virtual amd64 3.13.0.65.71 [2386 B]
- Fetched 15.2 MB in 9s (1636 kB/s)
- Selecting previously unselected package linux-image-3.13.0-65-generic.
- (Reading database ... 17744 files and directories currently installed.)
- Preparing to unpack .../linux-image-3.13.0-65-generic_3.13.0-65.106_amd64.deb ...
- Selecting previously unselected package linux-image-virtual.
- Preparing to unpack .../linux-image-virtual_3.13.0.65.71_amd64.deb ...
- Unpacking linux-image-virtual (3.13.0.65.71) ...
- , stderr: grep: /proc/cpuinfo: No such file or directory
- This kernel does not support a non-PAE CPU.
- dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-65-generic_3.13.0-65.106_amd64.deb (--unpack):
- subprocess new pre-installation script returned error exit status 1
- Examining /etc/kernel/postrm.d .
- run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
- run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
- Errors were encountered while processing:
- /var/cache/apt/archives/linux-image-3.13.0-65-generic_3.13.0-65.106_amd64.deb
- E: Sub-process /usr/bin/dpkg returned an error code (1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement