Public bug reported: 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_networking 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/filesys.c:148 (ped_file_system_type_get): File system alias linux-swap(new) is deprecated 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/loop0p2: warning: don't erase bootbits sectors 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-img.conf in favour of 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/update-grub: line 1094: read: read error: 0: Bad file descriptor 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/apt/archives/linux-image-3.13.0-35-generic_3.13.0-35.62_amd64.deb (--unpack): 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/postrm.d . 2014-09-05 13:57:46,081 INFO : run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-35-generic /boot/vmlinuz-3.13.0-35-generic 2014-09-05 13:57:46,083 INFO : run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-35-generic /boot/vmlinuz-3.13.0-35-generic 2014-09-05 13:57:46,808 INFO : Errors were encountered while processing: 2014-09-05 13:57:46,808 INFO : /var/cache/apt/archives/linux-image-3.13.0-35-generic_3.13.0-35.62_amd64.deb 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-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-35-generic Suggested packages: fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools linux-headers-3.13.0-35-generic The following NEW packages will be installed: linux-image-3.13.0-35-generic linux-image-virtual 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://archive.ubuntu.com/ubuntu/ trusty-updates/main linux-image-3.13.0-35-generic amd64 3.13.0-35.62 [15.1 MB] Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main linux-image-virtual amd64 3.13.0.35.42 [2340 B] Fetched 15.1 MB in 3s (4026 kB/s) Selecting previously unselected package linux-image-3.13.0-35-generic. (Reading database ... 11744 files and directories currently installed.) Preparing to unpack .../linux-image-3.13.0-35-generic_3.13.0-35.62_amd64.deb ... Selecting previously unselected package linux-image-virtual. Preparing to unpack .../linux-image-virtual_3.13.0.35.42_amd64.deb ... 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/apt/archives/linux-image-3.13.0-35-generic_3.13.0-35.62_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-35-generic /boot/vmlinuz-3.13.0-35-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-35-generic /boot/vmlinuz-3.13.0-35-generic Errors were encountered while processing: /var/cache/apt/archives/linux-image-3.13.0-35-generic_3.13.0-35.62_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) Traceback (most recent call last): File "/usr/bin/vmbuilder", line 24, in <module> cli.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/tmpZGmzq4', '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-35-generic Suggested packages: fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools linux-headers-3.13.0-35-generic The following NEW packages will be installed: linux-image-3.13.0-35-generic linux-image-virtual 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://archive.ubuntu.com/ubuntu/ trusty-updates/main linux-image-3.13.0-35-generic amd64 3.13.0-35.62 [15.1 MB] Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main linux-image-virtual amd64 3.13.0.35.42 [2340 B] Fetched 15.1 MB in 3s (4026 kB/s) Selecting previously unselected package linux-image-3.13.0-35-generic. (Reading database ... 11744 files and directories currently installed.) Preparing to unpack .../linux-image-3.13.0-35-generic_3.13.0-35.62_amd64.deb ... Selecting previously unselected package linux-image-virtual. Preparing to unpack .../linux-image-virtual_3.13.0.35.42_amd64.deb ... 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/apt/archives/linux-image-3.13.0-35-generic_3.13.0-35.62_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-35-generic /boot/vmlinuz-3.13.0-35-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-35-generic /boot/vmlinuz-3.13.0-35-generic Errors were encountered while processing: /var/cache/apt/archives/linux-image-3.13.0-35-generic_3.13.0-35.62_amd64.deb 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+bzr489-0ubuntu2 Candidate: 0.12.4+bzr489-0ubuntu2 Version table: *** 0.12.4+bzr489-0ubuntu2 0 500 http://dk.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages 100 /var/lib/dpkg/status kidmose@radagast:~$ ** Affects: vm-builder (Ubuntu) Importance: Undecided Status: New ** Attachment added: "Log file: /tmp/tmpzU9yG3" https://bugs.launchpad.net/bugs/1365985/+attachment/4196371/+files/tmpzU9yG3 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in Ubuntu. https://bugs.launchpad.net/bugs/1365985 Title: build of trusty fails when installing kernel - stderr: grep: /proc/cpuinfo: No such file or directory To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/1365985/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs