Error: Defining virtual machine (using vmbuilder)
I have Ubuntu Server 12.10 installed on to a Lenovo ThinkServer Machine. I am trying to do virualization using KVM. I used the following command to define a virtual machine:
sudo vmbuilder kvm ubuntu --suite quantal --flavour virtual --arch amd64 -o --libvirt qemu:///system --ip 192.168.0.110 --hostname BasicVM --part vmbuilder.partition --user basicvm --name basicvm--pass basicvm --bridge br0 --tmpfs -
This apparently did not work and I got the following error:
The following extra packages will be installed:
linux-
Suggested packages:
fdutils linux-doc-3.5.0 linux-source-3.5.0 linux-tools
The following NEW packages will be installed:
linux-
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.8 MB of archives.
After this operation, 31.5 MB of additional disk space will be used.
Get:1 http://
Get:2 http://
Fetched 11.8 MB in 6s (1722 kB/s)
Selecting previously unselected package linux-image-
(Reading database ... 10116 files and directories currently installed.)
Unpacking linux-image-
Selecting previously unselected package linux-image-
Unpacking linux-image-virtual (from .../linux-
, stderr: grep: /proc/cpuinfo: No such file or directory
This kernel does not support a non-PAE CPU.
dpkg: error processing /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)
Any suggestions?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu kvm Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Hassan Abbas
- Solved:
- 2012-12-19
- Last query:
- 2012-12-19
- Last reply:
Hassan Abbas (habbas99) said : | #1 |
Here is the entire thing (including command and result):
primaryuser@
2012-12-18 22:45:09,435 INFO : Calling hook: preflight_check
2012-12-18 22:45:09,437 INFO : Calling hook: set_defaults
2012-12-18 22:45:09,438 INFO : Calling hook: bootstrap
2012-12-18 22:50:39,505 INFO : Calling hook: configure_os
2012-12-18 22:50:59,328 INFO :
2012-12-18 22:50:59,328 INFO : Current default time zone: 'Etc/UTC'
2012-12-18 22:50:59,332 INFO : Local time is now: Tue Dec 18 22:50:59 UTC 2012.
2012-12-18 22:50:59,332 INFO : Universal Time is now: Tue Dec 18 22:50:59 UTC 2012.
2012-12-18 22:50:59,332 INFO :
2012-12-18 22:51:26,967 INFO : gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key <email address hidden>" not changed
2012-12-18 22:51:26,971 INFO : gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key <email address hidden>" not changed
2012-12-18 22:51:26,973 INFO : gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <email address hidden>" not changed
2012-12-18 22:51:26,975 INFO : gpg: key EFE21092: "Ubuntu CD Image Automatic Signing Key (2012) <email address hidden>" not changed
2012-12-18 22:51:26,975 INFO : gpg: Total number processed: 4
2012-12-18 22:51:26,975 INFO : gpg: unchanged: 4
2012-12-18 22:51:50,743 INFO : Cleaning up
2012-12-18 22:51:50,745 INFO : Calling hook: preflight_check
2012-12-18 22:51:50,892 INFO : Calling hook: configure_
2012-12-18 22:51:50,913 INFO : Calling hook: configure_mounting
2012-12-18 22:51:50,919 INFO : Calling hook: mount_partitions
2012-12-18 22:51:50,920 INFO : Mounting target filesystems
2012-12-18 22:51:50,920 INFO : Creating disk image: "/tmp/tmpRuqy7D" of size: 12001MB
2012-12-18 22:51:50,949 INFO : Adding partition table to disk image: /tmp/tmpRuqy7D
2012-12-18 22:51:51,065 INFO : Adding type 4 partition to disk image: /tmp/tmpRuqy7D
2012-12-18 22:51:51,065 INFO : Partition at beginning of disk - reserving first cylinder
2012-12-18 22:51:51,114 INFO : Adding type 3 partition to disk image: /tmp/tmpRuqy7D
2012-12-18 22:51:51,119 INFO : [0] ../../libparted
2012-12-18 22:51:51,163 INFO : Creating loop devices corresponding to the created partitions
2012-12-18 22:51:51,172 INFO : Creating file systems
2012-12-18 22:51:51,194 INFO : mke2fs 1.42.5 (29-Jul-2012)
2012-12-18 22:51:54,776 INFO : mkswap: /dev/mapper/
2012-12-18 22:51:54,776 INFO : on whole disk. Use -f to force.
2012-12-18 22:51:54,838 INFO : Creating disk image: "/tmp/tmpjFO2ce" of size: 20001MB
2012-12-18 22:51:54,850 INFO : Adding partition table to disk image: /tmp/tmpjFO2ce
2012-12-18 22:51:54,929 INFO : Adding type 4 partition to disk image: /tmp/tmpjFO2ce
2012-12-18 22:51:54,929 INFO : Partition at beginning of disk - reserving first cylinder
2012-12-18 22:51:54,985 INFO : Creating loop devices corresponding to the created partitions
2012-12-18 22:51:54,993 INFO : Creating file systems
2012-12-18 22:51:54,996 INFO : mke2fs 1.42.5 (29-Jul-2012)
2012-12-18 22:51:54,999 INFO : warning: 128 blocks unused.
2012-12-18 22:51:54,999 INFO :
2012-12-18 22:52:02,106 INFO : Calling hook: install_bootloader
2012-12-18 22:52:34,209 INFO : Removing update-grub hooks from /etc/kernel-
2012-12-18 22:52:34,209 INFO : /etc/kernel/ hooks.
2012-12-18 22:52:34,319 INFO : Searching for GRUB installation directory ... found: /boot/grub
2012-12-18 22:52:34,398 INFO : Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
2012-12-18 22:52:34,399 INFO : Searching for GRUB installation directory ... found: /boot/grub
2012-12-18 22:52:34,406 INFO : Testing for an existing GRUB menu.lst file ...
2012-12-18 22:52:34,406 INFO :
2012-12-18 22:52:34,407 INFO : Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) /usr/sbin/
2012-12-18 22:52:37,678 INFO : Searching for GRUB installation directory ... found: /boot/grub
2012-12-18 22:52:37,755 INFO : Searching for default file ... found: /boot/grub/default
2012-12-18 22:52:37,760 INFO : Testing for an existing GRUB menu.lst file ...
2012-12-18 22:52:37,760 INFO :
2012-12-18 22:52:37,760 INFO : Could not find /boot/grub/menu.lst file.
2012-12-18 22:52:37,760 INFO : Generating /boot/grub/menu.lst
2012-12-18 22:52:37,846 INFO : Searching for splash image ... none found, skipping ...
2012-12-18 22:52:38,034 INFO : grep: /boot/config*: No such file or directory
2012-12-18 22:52:38,139 INFO : Updating /boot/grub/menu.lst ... done
2012-12-18 22:52:38,139 INFO :
2012-12-18 22:52:38,542 INFO : Searching for GRUB installation directory ... found: /boot/grub
2012-12-18 22:52:38,619 INFO : Searching for default file ... found: /boot/grub/default
2012-12-18 22:52:38,625 INFO : Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
2012-12-18 22:52:38,770 INFO : Searching for splash image ... none found, skipping ...
2012-12-18 22:52:38,803 INFO : grep: /boot/config*: No such file or directory
2012-12-18 22:52:38,911 INFO : Updating /boot/grub/menu.lst ... done
2012-12-18 22:52:38,911 INFO :
2012-12-18 22:52:39,056 INFO : Searching for GRUB installation directory ... found: /boot/grub
2012-12-18 22:52:39,071 INFO : Calling hook: install_kernel
2012-12-18 22:52:50,394 INFO : grep: /proc/cpuinfo: No such file or directory
2012-12-18 22:52:50,395 INFO : This kernel does not support a non-PAE CPU.
2012-12-18 22:52:50,401 INFO : dpkg: error processing /var/cache/
2012-12-18 22:52:50,401 INFO : subprocess new pre-installation script returned error exit status 1
2012-12-18 22:52:50,415 INFO : Examining /etc/kernel/
2012-12-18 22:52:50,416 INFO : run-parts: executing /etc/kernel/
2012-12-18 22:52:50,418 INFO : run-parts: executing /etc/kernel/
2012-12-18 22:52:51,778 INFO : Errors were encountered while processing:
2012-12-18 22:52:51,778 INFO : /var/cache/
2012-12-18 22:52:51,781 INFO : E: Sub-process /usr/bin/dpkg returned an error code (1)
2012-12-18 22:52:51,782 INFO : Cleaning up
2012-12-18 22:52:59,037 ERROR : Process (['chroot', '/tmp/tmpVimx9T', '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.5.0 linux-source-3.5.0 linux-tools
The following NEW packages will be installed:
linux-
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.8 MB of archives.
After this operation, 31.5 MB of additional disk space will be used.
Get:1 http://
Get:2 http://
Fetched 11.8 MB in 9s (1201 kB/s)
Selecting previously unselected package linux-image-
(Reading database ... 10116 files and directories currently installed.)
Unpacking linux-image-
Selecting previously unselected package linux-image-
Unpacking linux-image-virtual (from .../linux-
, stderr: grep: /proc/cpuinfo: No such file or directory
This kernel does not support a non-PAE CPU.
dpkg: error processing /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, log_no_
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.5.0 linux-source-3.5.0 linux-tools
The following NEW packages will be installed:
linux-
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.8 MB of archives.
After this operation, 31.5 MB of additional disk space will be used.
Get:1 http://
Get:2 http://
Fetched 11.8 MB in 9s (1201 kB/s)
Selecting previously unselected package linux-image-
(Reading database ... 10116 files and directories currently installed.)
Unpacking linux-image-
Selecting previously unselected package linux-image-
Unpacking linux-image-virtual (from .../linux-
, stderr: grep: /proc/cpuinfo: No such file or directory
This kernel does not support a non-PAE CPU.
dpkg: error processing /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)
Hassan Abbas (habbas99) said : | #2 |
This actually resolved my issues.
http://