ubuntu-vm-builder fails to build kvm hardy

Bug #356043 reported by Fabián Rodríguez
2
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ouput:

magicfab@tiara:~$ sudo ubuntu-vm-builder kvm hardy --arch 'i386' --mem '1024' --rootsize '16536' --swapsize '512' --kernel-flavour 'generic' --hostname 'servera' --mirror 'http://hypnotoad/apt-cacher?/us.archive.ubuntu.com/ubuntu/' --components 'main,universe' --name 'student' --user 'student' --pass 'ubuntu'
[sudo] password for magicfab:
2009-04-06 01:42:16,991 INFO Creating disk image: /tmp/vmbuilderjDzpTE/disk0.img
2009-04-06 01:42:17,108 INFO Adding partition table to disk image: /tmp/vmbuilderjDzpTE/disk0.img
2009-04-06 01:42:17,251 INFO Adding type 1 partition to disk image: /tmp/vmbuilderjDzpTE/disk0.img
2009-04-06 01:42:17,284 INFO Adding type 3 partition to disk image: /tmp/vmbuilderjDzpTE/disk0.img
2009-04-06 01:42:17,311 INFO Creating loop devices corresponding to the created partitions
2009-04-06 01:42:17,380 INFO Creating file systems
2009-04-06 01:42:17,449 INFO mke2fs 1.41.4 (27-Jan-2009)
2009-04-06 01:42:28,774 INFO Mounting target filesystems
2009-04-06 01:42:28,791 INFO Installing guest operating system. This might take some time...
2009-04-06 01:44:42,632 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:44:42,633 INFO Moving old data out of the way
2009-04-06 01:44:42,634 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:44:42,876 INFO Searching for GRUB installation directory ... found: /boot/grub
2009-04-06 01:44:43,500 INFO Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
2009-04-06 01:44:43,503 INFO Searching for GRUB installation directory ... found: /boot/grub
2009-04-06 01:44:43,510 INFO Testing for an existing GRUB menu.lst file ...
2009-04-06 01:44:43,510 INFO
2009-04-06 01:44:43,511 INFO Could not find /boot/grub/menu.lst file.
2009-04-06 01:44:43,512 INFO Generating /boot/grub/menu.lst
2009-04-06 01:44:43,632 INFO Searching for splash image ... none found, skipping ...
2009-04-06 01:44:43,807 INFO grep: /boot/config*: No such file or directory
2009-04-06 01:44:43,897 INFO Updating /boot/grub/menu.lst ... done
2009-04-06 01:44:43,897 INFO
2009-04-06 01:44:44,122 INFO Searching for GRUB installation directory ... found: /boot/grub
2009-04-06 01:44:44,227 INFO Searching for default file ... found: /boot/grub/default
2009-04-06 01:44:44,236 INFO Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
2009-04-06 01:44:44,404 INFO Searching for splash image ... none found, skipping ...
2009-04-06 01:44:44,443 INFO grep: /boot/config*: No such file or directory
2009-04-06 01:44:44,548 INFO Updating /boot/grub/menu.lst ... done
2009-04-06 01:44:44,548 INFO
2009-04-06 01:44:44,602 INFO Searching for GRUB installation directory ... found: /boot/grub
2009-04-06 01:44:48,294 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:44:50,304 INFO Done.
2009-04-06 01:45:00,938 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:45:01,002 INFO Running depmod.
2009-04-06 01:45:01,624 INFO update-initramfs: Generating /boot/initrd.img-2.6.24-23-generic
2009-04-06 01:45:11,787 INFO Running postinst hook script /usr/sbin/update-grub.
2009-04-06 01:45:11,920 INFO Searching for GRUB installation directory ... found: /boot/grub
2009-04-06 01:45:12,883 INFO Searching for default file ... found: /boot/grub/default
2009-04-06 01:45:12,891 INFO Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
2009-04-06 01:45:13,193 INFO Searching for splash image ... none found, skipping ...
2009-04-06 01:45:13,275 INFO Found kernel: /boot/vmlinuz-2.6.24-23-generic
2009-04-06 01:45:13,458 INFO Replacing config file /var/run/grub/menu.lst with new version
2009-04-06 01:45:13,523 INFO Updating /boot/grub/menu.lst ... done
2009-04-06 01:45:13,524 INFO
2009-04-06 01:45:24,779 INFO
2009-04-06 01:45:24,780 INFO Current default timezone: 'America/New_York'
2009-04-06 01:45:24,785 INFO Local time is now: Mon Apr 6 01:45:24 EDT 2009.
2009-04-06 01:45:24,786 INFO Universal Time is now: Mon Apr 6 05:45:24 UTC 2009.
2009-04-06 01:45:24,787 INFO
2009-04-06 01:45:28,616 INFO update-initramfs: Generating /boot/initrd.img-2.6.24-23-generic
Extracting templates from packages: 100%
2009-04-06 01:45:54,607 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,438 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,440 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,440 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,441 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,442 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,443 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,444 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,445 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,446 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,447 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,448 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,448 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,449 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,450 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,451 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,452 INFO find: /var/cache/fontconfig: No such file or directory
2009-04-06 01:46:09,453 INFO find: /var/cache/fonts: No such file or directory
2009-04-06 01:46:09,453 INFO find: /var/cache/anthy: No such file or directory
2009-04-06 01:46:09,454 INFO find: /var/lib/gconf: No such file or directory
2009-04-06 01:46:09,455 INFO find: /var/lib/defoma: No such file or directory
2009-04-06 01:46:09,456 INFO find: /var/log/installer: No such file or directory
2009-04-06 01:46:09,456 INFO find: /cdrom: No such file or directory
2009-04-06 01:46:09,457 INFO find: /media/cdrom: No such file or directory
2009-04-06 01:46:09,458 INFO find: /usr/share/fonts: No such file or directory
2009-04-06 01:46:09,458 INFO find: /var/lib/anthy: No such file or directory
2009-04-06 01:46:09,459 INFO find: /var/lib/defoma: No such file or directory
2009-04-06 01:46:09,460 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,461 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,462 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,463 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,464 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,465 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,466 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,467 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,467 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,468 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,469 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,475 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,476 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,477 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,478 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,479 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,479 INFO
2009-04-06 01:46:09,480 INFO Current default timezone: 'America/New_York'
2009-04-06 01:46:09,481 INFO Local time is now: Mon Apr 6 01:46:05 EDT 2009.
2009-04-06 01:46:09,482 INFO Universal Time is now: Mon Apr 6 05:46:05 UTC 2009.
2009-04-06 01:46:09,482 INFO Run 'dpkg-reconfigure tzdata' if you wish to change it.
2009-04-06 01:46:09,482 INFO
2009-04-06 01:46:09,483 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,484 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,507 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,508 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,509 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,510 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,510 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,511 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:09,512 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:10,307 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:10,939 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:11,290 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:11,362 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:16,386 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-04-06 01:46:20,353 INFO update-initramfs: deferring update (trigger activated)
2009-04-06 01:46:34,298 INFO Copying to disk images
2009-04-06 01:46:56,025 INFO Installing bootloader
2009-04-06 01:47:00,748 INFO Unmounting target filesystem
2009-04-06 01:47:01,418 INFO device-mapper: remove ioctl failed: Device or resource busy
2009-04-06 01:47:01,420 INFO ioctl: LOOP_CLR_FD: Device or resource busy
2009-04-06 01:47:01,421 INFO Cleaning up
Traceback (most recent call last):
  File "/usr/bin/ubuntu-vm-builder", line 29, in <module>
    VMBuilder.run()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/__init__.py", line 66, in run
    frontend.run()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/cli/__init__.py", line 67, in run
    vm.create()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/vm.py", line 469, in create
    raise e
VMBuilder.exception.VMBuilderException: Process (['kpartx', '-d', '/tmp/vmbuilderjDzpTE/disk0.img']) returned 1. stdout: , stderr: device-mapper: remove ioctl failed: Device or resource busy
ioctl: LOOP_CLR_FD: Device or resource busy
magicfab@tiara:~$

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: ubuntu-vm-builder 0.10-0ubuntu1
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: vm-builder
Uname: Linux 2.6.28-11-generic i686

Revision history for this message
Fabián Rodríguez (magicfab) wrote :
Revision history for this message
Todd Deshane (deshantm) wrote :

This looks like it might be a duplicate of bug #342359

Can you see if the changes in the following fix your problem too:
https://code.launchpad.net/~jdstrand/vmbuilder/vmbuilder-jdstrand

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.