build of trusty fails when installing kernel - stderr: grep: /proc/cpuinfo: No such file or directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vm-builder (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I'm unable to build a VM with trusty.
Seems like /proc/cpuinfo is unavailable when installing the kernel package,
causing a check of CPU capabalities (PAE) to fail,
finally leading to the kernel being found unsuitable.
kidmose@radagast:~$ sudo vmbuilder kvm ubuntu --suite trusty
[sudo] password for kidmose:
2014-09-05 13:53:37,070 INFO : logging to file: /tmp/tmpzU9yG3
2014-09-05 13:53:37,096 INFO : Calling hook: preflight_check
2014-09-05 13:53:37,099 INFO : Calling hook: set_defaults
2014-09-05 13:53:37,100 INFO : Calling hook: bootstrap
2014-09-05 13:56:28,972 INFO : Calling hook: configure_os
2014-09-05 13:56:37,390 INFO :
2014-09-05 13:56:37,390 INFO : Current default time zone: 'Etc/UTC'
2014-09-05 13:56:37,392 INFO : Local time is now: Fri Sep 5 11:56:37 UTC 2014.
2014-09-05 13:56:37,392 INFO : Universal Time is now: Fri Sep 5 11:56:37 UTC 2014.
2014-09-05 13:56:37,393 INFO :
Extracting templates from packages: 100%
2014-09-05 13:56:48,808 INFO :
2014-09-05 13:56:48,808 INFO : Current default time zone: 'Etc/UTC'
2014-09-05 13:56:48,810 INFO : Local time is now: Fri Sep 5 11:56:48 UTC 2014.
2014-09-05 13:56:48,810 INFO : Universal Time is now: Fri Sep 5 11:56:48 UTC 2014.
2014-09-05 13:56:48,810 INFO : Run 'dpkg-reconfigure tzdata' if you wish to change it.
2014-09-05 13:56:48,810 INFO :
2014-09-05 13:57:10,556 INFO : invoke-rc.d: policy-rc.d denied execution of restart.
2014-09-05 13:57:13,023 INFO : invoke-rc.d: policy-rc.d denied execution of start.
2014-09-05 13:57:14,309 INFO : invoke-rc.d: policy-rc.d denied execution of restart.
2014-09-05 13:57:19,773 INFO : Cleaning up
2014-09-05 13:57:19,773 INFO : Calling hook: preflight_check
2014-09-05 13:57:19,774 INFO : Calling hook: configure_
2014-09-05 13:57:19,784 INFO : Calling hook: configure_mounting
2014-09-05 13:57:19,790 INFO : Calling hook: mount_partitions
2014-09-05 13:57:19,791 INFO : Mounting target filesystems
2014-09-05 13:57:19,791 INFO : Creating disk image: "/tmp/tmpoGvhvN" of size: 5120MB
2014-09-05 13:57:19,801 INFO : Adding partition table to disk image: /tmp/tmpoGvhvN
2014-09-05 13:57:19,841 INFO : Adding type 4 partition to disk image: /tmp/tmpoGvhvN
2014-09-05 13:57:19,842 INFO : Partition at beginning of disk - reserving first cylinder
2014-09-05 13:57:19,864 INFO : Adding type 3 partition to disk image: /tmp/tmpoGvhvN
2014-09-05 13:57:19,868 INFO : [0] ../../libparted
2014-09-05 13:57:19,887 INFO : Creating loop devices corresponding to the created partitions
2014-09-05 13:57:19,893 INFO : Creating file systems
2014-09-05 13:57:19,895 INFO : mke2fs 1.42.9 (4-Feb-2014)
2014-09-05 13:57:20,524 INFO : mkswap: /dev/mapper/
2014-09-05 13:57:20,525 INFO : on whole disk. Use -f to force.
2014-09-05 13:57:22,168 INFO : Calling hook: install_bootloader
2014-09-05 13:57:36,698 INFO : Removing update-grub hooks from /etc/kernel-
2014-09-05 13:57:36,699 INFO : /etc/kernel/ hooks.
2014-09-05 13:57:36,809 INFO : Searching for GRUB installation directory ... found: /boot/grub
2014-09-05 13:57:36,870 INFO : Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
2014-09-05 13:57:36,871 INFO : Searching for GRUB installation directory ... found: /boot/grub
2014-09-05 13:57:36,874 INFO : Testing for an existing GRUB menu.lst file ...
2014-09-05 13:57:36,874 INFO :
2014-09-05 13:57:36,875 INFO : Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) /usr/sbin/
2014-09-05 13:57:40,320 INFO : Searching for GRUB installation directory ... found: /boot/grub
2014-09-05 13:57:40,381 INFO : Searching for default file ... found: /boot/grub/default
2014-09-05 13:57:40,383 INFO : Testing for an existing GRUB menu.lst file ...
2014-09-05 13:57:40,383 INFO :
2014-09-05 13:57:40,383 INFO : Could not find /boot/grub/menu.lst file.
2014-09-05 13:57:40,383 INFO : Generating /boot/grub/menu.lst
2014-09-05 13:57:40,443 INFO : Searching for splash image ... none found, skipping ...
2014-09-05 13:57:40,573 INFO : grep: /boot/config*: No such file or directory
2014-09-05 13:57:40,642 INFO : Updating /boot/grub/menu.lst ... done
2014-09-05 13:57:40,642 INFO :
2014-09-05 13:57:40,954 INFO : Searching for GRUB installation directory ... found: /boot/grub
2014-09-05 13:57:41,015 INFO : Searching for default file ... found: /boot/grub/default
2014-09-05 13:57:41,018 INFO : Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
2014-09-05 13:57:41,116 INFO : Searching for splash image ... none found, skipping ...
2014-09-05 13:57:41,144 INFO : grep: /boot/config*: No such file or directory
2014-09-05 13:57:41,217 INFO : Updating /boot/grub/menu.lst ... done
2014-09-05 13:57:41,218 INFO :
2014-09-05 13:57:41,302 INFO : Searching for GRUB installation directory ... found: /boot/grub
2014-09-05 13:57:41,320 INFO : Calling hook: install_kernel
2014-09-05 13:57:46,065 INFO : grep: /proc/cpuinfo: No such file or directory
2014-09-05 13:57:46,065 INFO : This kernel does not support a non-PAE CPU.
2014-09-05 13:57:46,068 INFO : dpkg: error processing archive /var/cache/
2014-09-05 13:57:46,069 INFO : subprocess new pre-installation script returned error exit status 1
2014-09-05 13:57:46,080 INFO : Examining /etc/kernel/
2014-09-05 13:57:46,081 INFO : run-parts: executing /etc/kernel/
2014-09-05 13:57:46,083 INFO : run-parts: executing /etc/kernel/
2014-09-05 13:57:46,808 INFO : Errors were encountered while processing:
2014-09-05 13:57:46,808 INFO : /var/cache/
2014-09-05 13:57:47,215 INFO : E: Sub-process /usr/bin/dpkg returned an error code (1)
2014-09-05 13:57:47,216 INFO : Cleaning up
2014-09-05 13:57:50,800 ERROR : Process (['chroot', '/tmp/tmpZGmzq4', 'apt-get', '--force-yes', '-y', 'install', 'linux-
Building dependency tree...
Reading state information...
The following extra packages will be installed:
linux-
Suggested packages:
fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
linux-
The following NEW packages will be installed:
linux-
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.1 MB of archives.
After this operation, 42.1 MB of additional disk space will be used.
Get:1 http://
Get:2 http://
Fetched 15.1 MB in 3s (4026 kB/s)
Selecting previously unselected package linux-image-
(Reading database ... 11744 files and directories currently installed.)
Preparing to unpack .../linux-
Selecting previously unselected package linux-image-
Preparing to unpack .../linux-
Unpacking linux-image-virtual (3.13.0.35.42) ...
, stderr: grep: /proc/cpuinfo: No such file or directory
This kernel does not support a non-PAE CPU.
dpkg: error processing archive /var/cache/
subprocess new pre-installation script returned error exit status 1
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
Traceback (most recent call last):
File "/usr/bin/
cli.main()
File "/usr/lib/
hypervisor.
File "/usr/lib/
self.
File "/usr/lib/
call_
File "/usr/lib/
getattr(plugin, func)(*args, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
run_
File "/usr/lib/
raise VMBuilderException, "Process (%s) returned %d. stdout: %s, stderr: %s" % (args.__repr__(), status, mystdout.buf, mystderr.buf)
VMBuilder.
Building dependency tree...
Reading state information...
The following extra packages will be installed:
linux-
Suggested packages:
fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
linux-
The following NEW packages will be installed:
linux-
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.1 MB of archives.
After this operation, 42.1 MB of additional disk space will be used.
Get:1 http://
Get:2 http://
Fetched 15.1 MB in 3s (4026 kB/s)
Selecting previously unselected package linux-image-
(Reading database ... 11744 files and directories currently installed.)
Preparing to unpack .../linux-
Selecting previously unselected package linux-image-
Preparing to unpack .../linux-
Unpacking linux-image-virtual (3.13.0.35.42) ...
, stderr: grep: /proc/cpuinfo: No such file or directory
This kernel does not support a non-PAE CPU.
dpkg: error processing archive /var/cache/
subprocess new pre-installation script returned error exit status 1
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
kidmose@radagast:~$ uname -a
Linux radagast 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
kidmose@radagast:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
kidmose@radagast:~$ apt-cache policy ubuntu-vm-builder
ubuntu-vm-builder:
Installed: 0.12.4+
Candidate: 0.12.4+
Version table:
*** 0.12.4+
500 http://
100 /var/lib/
kidmose@radagast:~$
duplicate of #1037607