I get a similar error (see below the output that was left in my putty
console by the time it failed). My hardware does support virtualization
(see output below)

--------------------------------
Check for hardware support
--------------------------------
hypervisor@hypervisor:~$ sudo egrep '(vmx|svm)' --color=always /proc/cpuinfo
[sudo] password for hypervisor:
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm 
constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc 
aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr 
pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm 
ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm 
constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc 
aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr 
pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm 
ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm 
constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc 
aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr 
pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm 
ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm 
constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc 
aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr 
pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm 
ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid

-----------------------------
Attempt to create virtual machine by running the following command (with 
"sudo"):
vmbuilder kvm ubuntu \
        --dest=/home/hypervisor/[path]\
        --overwrite \
        --mem=1024 \
        --cpus=1 \
        --rootsize=7168 \
        --swapsize=1024 \
        --addpkg=openssh-server \
        --addpkg=vim \
        --addpkg=cron \
        --addpkg=acpid \
        --addpkg=ubuntu-desktop \
        --addpkg=xrdp \
        --addpkg=nano \
        --addpkg=firestarter \
        --addpkg=build-essential \
        --addpkg=cdbs \
        --addpkg=debhelper \
        --addpkg=python-setuptools \
        --arch=amd64 \
        --suite=precise \
        --ip=[address] \
        --mask=255.255.255.0 \
        --bcast=192.168.0.255 \
        --gw=[address] \
        --flavour virtual \
        --components main,universe,restricted \
        --hostname [name]\
        --user [user]\
        --pass [pass]\
        --libvirt qemu:///system \
        --bridge=br0;
---------------------------------


---------------------------------
Output
---------------------------------

2012-11-26 21:29:59,879 INFO    :
2012-11-26 21:29:59,879 INFO    : Warning: Fake initctl called, doing nothing
2012-11-26 21:29:59,880 INFO    :
2012-11-26 21:29:59,880 INFO    : Warning: Fake initctl called, doing nothing
2012-11-26 21:30:11,650 INFO    : invoke-rc.d: policy-rc.d denied execution of 
force-reload.
2012-11-26 21:30:43,598 INFO    : invoke-rc.d: policy-rc.d denied execution of 
start.
2012-11-26 21:30:49,146 INFO    : invoke-rc.d: policy-rc.d denied execution of 
start.
2012-11-26 21:30:51,057 INFO    : aspell-autobuildhash: processing: en 
[en-common]
2012-11-26 21:30:51,380 INFO    : aspell-autobuildhash: processing: en 
[en-variant_0]
2012-11-26 21:30:51,386 INFO    : aspell-autobuildhash: processing: en 
[en-variant_1]
2012-11-26 21:30:51,398 INFO    : aspell-autobuildhash: processing: en 
[en-variant_2]
2012-11-26 21:30:51,409 INFO    : aspell-autobuildhash: processing: en 
[en_CA-w_accents-only]
2012-11-26 21:30:51,423 INFO    : aspell-autobuildhash: processing: en 
[en_CA-wo_accents-only]
2012-11-26 21:30:51,437 INFO    : aspell-autobuildhash: processing: en 
[en_GB-ise-w_accents-only]
2012-11-26 21:30:51,451 INFO    : aspell-autobuildhash: processing: en 
[en_GB-ise-wo_accents-only]
2012-11-26 21:30:51,465 INFO    : aspell-autobuildhash: processing: en 
[en_GB-ize-w_accents-only]
2012-11-26 21:30:51,479 INFO    : aspell-autobuildhash: processing: en 
[en_GB-ize-wo_accents-only]
2012-11-26 21:30:51,494 INFO    : aspell-autobuildhash: processing: en 
[en_US-w_accents-only]
2012-11-26 21:30:51,507 INFO    : aspell-autobuildhash: processing: en 
[en_US-wo_accents-only]
2012-11-26 21:31:57,488 INFO    : invoke-rc.d: policy-rc.d denied execution of 
start.
2012-11-26 21:32:17,657 INFO    : Adding saned group and user...
2012-11-26 21:32:18,488 INFO    :  Removing any system startup links for 
/etc/init.d/saned ...
2012-11-26 21:32:18,516 INFO    : invoke-rc.d: policy-rc.d denied execution of 
start.
2012-11-26 21:32:19,641 INFO    : WARNING:softwarecenter.db.update:Failed to 
setup dbus (ignoring)
2012-11-26 21:32:19,646 INFO    : 
INFO:softwarecenter.db.pkginfo_impl.aptcache:aptcache.open()
2012-11-26 21:32:42,750 INFO    : invoke-rc.d: policy-rc.d denied execution of 
restart.
2012-11-26 21:32:54,214 INFO    :
2012-11-26 21:32:54,214 INFO    : Current default time zone: 'Etc/UTC'
2012-11-26 21:32:54,217 INFO    : Local time is now:      Mon Nov 26 21:32:54 
UTC 2012.
2012-11-26 21:32:54,217 INFO    : Universal Time is now:  Mon Nov 26 21:32:54 
UTC 2012.
2012-11-26 21:32:54,217 INFO    :
Extracting templates from packages: 100%
2012-11-26 21:33:23,803 INFO    : gpg: key []: "Ubuntu Archive Automatic 
Signing Key <[email protected]>" not changed
2012-11-26 21:33:23,806 INFO    : gpg: key []: "Ubuntu CD Image Automatic 
Signing Key <[email protected]>" not changed
2012-11-26 21:33:23,808 INFO    : gpg: key []: public key "Ubuntu Archive 
Automatic Signing Key (2012) <[email protected]>" imported
2012-11-26 21:33:23,810 INFO    : gpg: key []: public key "Ubuntu CD Image 
Automatic Signing Key (2012) <[email protected]>" imported
2012-11-26 21:33:23,810 INFO    : gpg: Total number processed: 4
2012-11-26 21:33:23,810 INFO    : gpg:               imported: 2  (RSA: 2)
2012-11-26 21:33:23,810 INFO    : gpg:              unchanged: 2
2012-11-26 21:33:23,811 INFO    : gpg: no ultimately trusted keys found
2012-11-26 21:33:33,274 INFO    : gpg: key []: "Ubuntu Archive Automatic 
Signing Key <[email protected]>" not changed
2012-11-26 21:33:33,276 INFO    : gpg: key []: "Ubuntu CD Image Automatic 
Signing Key <[email protected]>" not changed
2012-11-26 21:33:33,278 INFO    : gpg: key []: "Ubuntu Archive Automatic 
Signing Key (2012) <[email protected]>" not changed
2012-11-26 21:33:33,280 INFO    : gpg: key []: "Ubuntu CD Image Automatic 
Signing Key (2012) <[email protected]>" not changed
2012-11-26 21:33:33,280 INFO    : gpg: Total number processed: 4
2012-11-26 21:33:33,280 INFO    : gpg:              unchanged: 4
2012-11-26 21:34:10,816 INFO    :
2012-11-26 21:34:10,816 INFO    : Current default time zone: 'Etc/UTC'
2012-11-26 21:34:10,819 INFO    : Local time is now:      Mon Nov 26 21:34:10 
UTC 2012.
2012-11-26 21:34:10,819 INFO    : Universal Time is now:  Mon Nov 26 21:34:10 
UTC 2012.
2012-11-26 21:34:10,819 INFO    : Run 'dpkg-reconfigure tzdata' if you wish to 
change it.
2012-11-26 21:34:10,819 INFO    :
2012-11-26 21:34:19,408 INFO    : invoke-rc.d: policy-rc.d denied execution of 
stop.
2012-11-26 21:34:27,063 INFO    : invoke-rc.d: policy-rc.d denied execution of 
start.
2012-11-26 21:34:28,618 INFO    : invoke-rc.d: policy-rc.d denied execution of 
restart.
2012-11-26 21:34:32,286 INFO    : invoke-rc.d: policy-rc.d denied execution of 
start.
2012-11-26 21:34:40,802 INFO    : Cleaning up
2012-11-26 21:34:40,802 INFO    : Calling hook: preflight_check
2012-11-26 21:34:41,042 INFO    : Calling hook: configure_networking
2012-11-26 21:34:41,076 INFO    : Calling hook: configure_mounting
2012-11-26 21:34:41,085 INFO    : Calling hook: mount_partitions
2012-11-26 21:34:41,086 INFO    : Mounting target filesystems
2012-11-26 21:34:41,086 INFO    : Creating disk image: "/tmp/tmpFYGDcO" of 
size: 8192MB
2012-11-26 21:34:41,125 INFO    : Adding partition table to disk image: 
/tmp/tmpFYGDcO
2012-11-26 21:34:41,621 INFO    : Adding type 4 partition to disk image: 
/tmp/tmpFYGDcO
2012-11-26 21:34:41,621 INFO    : Partition at beginning of disk - reserving 
first cylinder
2012-11-26 21:34:41,949 INFO    : Adding type 3 partition to disk image: 
/tmp/tmpFYGDcO
2012-11-26 21:34:41,954 INFO    : [0] ../../libparted/filesys.c:148 
(ped_file_system_type_get): File system alias linux-swap(new) is deprecated
2012-11-26 21:34:42,227 INFO    : Creating loop devices corresponding to the 
created partitions
2012-11-26 21:34:42,256 INFO    : Creating file systems
2012-11-26 21:34:42,296 INFO    : mke2fs 1.42 (29-Nov-2011)
2012-11-26 21:34:44,925 INFO    : mkswap: /dev/mapper/loop0p2: warning: don't 
erase bootbits sectors
2012-11-26 21:34:44,925 INFO    :         on whole disk. Use -f to force.
2012-11-26 21:35:39,518 INFO    : Calling hook: install_bootloader
2012-11-26 21:36:15,559 INFO    : Removing update-grub hooks from 
/etc/kernel-img.conf in favour of
2012-11-26 21:36:15,559 INFO    : /etc/kernel/ hooks.
2012-11-26 21:36:15,730 INFO    : Searching for GRUB installation directory ... 
found: /boot/grub
2012-11-26 21:36:15,788 INFO    : Searching for default file ... Generating 
/boot/grub/default file and setting the default boot entry to 0
2012-11-26 21:36:15,789 INFO    : Searching for GRUB installation directory ... 
found: /boot/grub
2012-11-26 21:36:15,794 INFO    : Testing for an existing GRUB menu.lst file ...
2012-11-26 21:36:15,794 INFO    :
2012-11-26 21:36:15,794 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
2012-11-26 21:36:19,967 INFO    : Searching for GRUB installation directory ... 
found: /boot/grub
2012-11-26 21:36:20,023 INFO    : Searching for default file ... found: 
/boot/grub/default
2012-11-26 21:36:20,026 INFO    : Testing for an existing GRUB menu.lst file ...
2012-11-26 21:36:20,026 INFO    :
2012-11-26 21:36:20,026 INFO    : Could not find /boot/grub/menu.lst file.
2012-11-26 21:36:20,027 INFO    : Generating /boot/grub/menu.lst
2012-11-26 21:36:20,090 INFO    : Searching for splash image ... none found, 
skipping ...
2012-11-26 21:36:20,279 INFO    : grep: /boot/config*: No such file or directory
2012-11-26 21:36:20,392 INFO    : Updating /boot/grub/menu.lst ... done
2012-11-26 21:36:20,392 INFO    :
2012-11-26 21:36:21,006 INFO    : Searching for GRUB installation directory ... 
found: /boot/grub
2012-11-26 21:36:21,062 INFO    : Searching for default file ... found: 
/boot/grub/default
2012-11-26 21:36:21,066 INFO    : Testing for an existing GRUB menu.lst file 
... found: /boot/grub/menu.lst
2012-11-26 21:36:21,172 INFO    : Searching for splash image ... none found, 
skipping ...
2012-11-26 21:36:21,203 INFO    : grep: /boot/config*: No such file or directory
2012-11-26 21:36:21,321 INFO    : Updating /boot/grub/menu.lst ... done
2012-11-26 21:36:21,321 INFO    :
2012-11-26 21:36:21,629 INFO    : Searching for GRUB installation directory ... 
found: /boot/grub
2012-11-26 21:36:21,636 INFO    : Calling hook: install_kernel
2012-11-26 21:36:45,013 INFO    : Done.
2012-11-26 21:37:00,960 INFO    : Running depmod.
2012-11-26 21:37:01,054 INFO    : update-initramfs: deferring update (hook will 
be called later)
2012-11-26 21:37:01,063 INFO    : Examining /etc/kernel/postinst.d.
2012-11-26 21:37:01,064 INFO    : run-parts: executing 
/etc/kernel/postinst.d/initramfs-tools 3.2.0-33-virtual 
/boot/vmlinuz-3.2.0-33-virtual
2012-11-26 21:37:01,068 INFO    : update-initramfs: Generating 
/boot/initrd.img-3.2.0-33-virtual
2012-11-26 21:37:04,078 INFO    : run-parts: executing 
/etc/kernel/postinst.d/pm-utils 3.2.0-33-virtual /boot/vmlinuz-3.2.0-33-virtual
2012-11-26 21:37:04,080 INFO    : run-parts: executing 
/etc/kernel/postinst.d/update-notifier 3.2.0-33-virtual 
/boot/vmlinuz-3.2.0-33-virtual
2012-11-26 21:37:04,082 INFO    : run-parts: executing 
/etc/kernel/postinst.d/zz-update-grub 3.2.0-33-virtual 
/boot/vmlinuz-3.2.0-33-virtual
2012-11-26 21:37:04,253 INFO    : Searching for GRUB installation directory ... 
found: /boot/grub
2012-11-26 21:37:04,308 INFO    : Searching for default file ... found: 
/boot/grub/default
2012-11-26 21:37:04,313 INFO    : Testing for an existing GRUB menu.lst file 
... found: /boot/grub/menu.lst
2012-11-26 21:37:04,418 INFO    : Searching for splash image ... none found, 
skipping ...
2012-11-26 21:37:04,489 INFO    : Found kernel: /boot/vmlinuz-3.2.0-33-virtual
2012-11-26 21:37:04,626 INFO    : Replacing config file /run/grub/menu.lst with 
new version
2012-11-26 21:37:04,656 INFO    : Updating /boot/grub/menu.lst ... done
2012-11-26 21:37:04,657 INFO    :
2012-11-26 21:37:08,844 INFO    : Calling hook: post_install
2012-11-26 21:37:08,844 INFO    : Calling hook: unmount_partitions
2012-11-26 21:37:08,845 INFO    : Unmounting target filesystem
2012-11-26 21:37:13,760 INFO    : Calling hook: convert
2012-11-26 21:37:13,761 INFO    : Converting /tmp/tmpFYGDcO to qcow2, format 
/home/hypervisor/[path]/tmpFYGDcO.qcow2
2012-11-26 21:37:56,975 INFO    : Calling hook: fix_ownership
2012-11-26 21:37:57,029 INFO    : Calling hook: deploy
libvir: Domain Config error : internal error no supported architecture for os 
type 'hvm'
2012-11-26 21:37:57,190 INFO    : Cleaning up
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 227, 
in main
    hypervisor.finalise(destdir)
  File "/usr/lib/python2.7/dist-packages/VMBuilder/hypervisor.py", line 79, in 
finalise
    self.call_hooks('deploy', destdir)
  File "/usr/lib/python2.7/dist-packages/VMBuilder/distro.py", line 69, in 
call_hooks
    self.cleanup()
  File "/usr/lib/python2.7/dist-packages/VMBuilder/distro.py", line 44, in 
cleanup
    self._cleanup_cbs.pop(0)()
  File "/usr/lib/python2.7/dist-packages/VMBuilder/disk.py", line 129, in 
<lambda>
    self.vm.add_clean_cb(lambda : self.unmap(ignore_fail=True))
  File "/usr/lib/python2.7/dist-packages/VMBuilder/disk.py", line 194, in unmap
    parted_oldmap=part.filename[len("/dev/mapper/"):-1]+"p"+part.filename[-1]
TypeError: 'NoneType' object has no attribute '__getitem__'
hypervisor@hypervisor:~$

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1019009

Title:
  building precise on precise fails with TypeError: 'NoneType' object
  has no attribute '__getitem__'

To manage notifications about this bug go to:
https://bugs.launchpad.net/vmbuilder/+bug/1019009/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to