Skip to content

Instantly share code, notes, and snippets.

@tarheelcoxn
Created December 13, 2010 20:15
Show Gist options
  • Save tarheelcoxn/739529 to your computer and use it in GitHub Desktop.
Save tarheelcoxn/739529 to your computer and use it in GitHub Desktop.
ubuntu-vm-builder fails with --raw
2010-12-13 15:06:45,998 INFO : Calling hook: preflight_check
2010-12-13 15:06:46,005 INFO : Calling hook: set_defaults
2010-12-13 15:06:46,007 INFO : Calling hook: bootstrap
2010-12-13 15:07:51,754 INFO : Calling hook: configure_os
2010-12-13 15:08:02,347 INFO : update-alternatives: error: no alternatives for rsh.
2010-12-13 15:08:02,446 INFO : update-alternatives: error: no alternatives for rlogin.
2010-12-13 15:08:02,545 INFO : update-alternatives: error: no alternatives for rcp.
2010-12-13 15:08:03,281 INFO : Creating SSH2 RSA key; this may take some time ...
2010-12-13 15:08:03,844 INFO : Creating SSH2 DSA key; this may take some time ...
2010-12-13 15:08:04,019 INFO :
2010-12-13 15:08:04,020 INFO : Warning: Fake initctl called, doing nothing
2010-12-13 15:08:04,021 INFO :
2010-12-13 15:08:04,021 INFO : Warning: Fake initctl called, doing nothing
2010-12-13 15:08:06,467 INFO :
2010-12-13 15:08:06,467 INFO : Current default time zone: 'Etc/UTC'
2010-12-13 15:08:06,473 INFO : Local time is now: Mon Dec 13 20:08:06 UTC 2010.
2010-12-13 15:08:06,473 INFO : Universal Time is now: Mon Dec 13 20:08:06 UTC 2010.
2010-12-13 15:08:06,474 INFO :
Extracting templates from packages: 100%
2010-12-13 15:08:15,279 INFO :
2010-12-13 15:08:15,280 INFO : Current default time zone: 'Etc/UTC'
2010-12-13 15:08:15,286 INFO : Local time is now: Mon Dec 13 20:08:15 UTC 2010.
2010-12-13 15:08:15,286 INFO : Universal Time is now: Mon Dec 13 20:08:15 UTC 2010.
2010-12-13 15:08:15,286 INFO : Run 'dpkg-reconfigure tzdata' if you wish to change it.
2010-12-13 15:08:15,287 INFO :
2010-12-13 15:08:21,883 INFO : start: Job is already running: network-interface-security
2010-12-13 15:08:23,675 INFO : Calling hook: post_install
2010-12-13 15:08:23,677 INFO : Calling hook: preflight_check
2010-12-13 15:08:23,851 INFO : Calling hook: configure_networking
2010-12-13 15:08:23,875 INFO : Calling hook: configure_mounting
2010-12-13 15:08:23,940 INFO : Calling hook: mount_partitions
2010-12-13 15:08:23,942 INFO : Mounting target filesystems
2010-12-13 15:08:23,943 INFO : Adding partition table to disk image: /dev/mapper/raid10-boot
2010-12-13 15:08:24,078 INFO : Adding type 4 partition to disk image: /dev/mapper/raid10-boot
2010-12-13 15:08:24,611 INFO : Adding type 3 partition to disk image: /dev/mapper/raid10-boot
2010-12-13 15:08:24,624 INFO : [0] ../../libparted/filesys.c:148 (ped_file_system_type_get): File system alias linux-swap(new) is deprecated
2010-12-13 15:08:24,625 ERROR : Process (['parted', '--script', '--', '/dev/mapper/raid10-boot', 'mkpart', 'primary', 'linux-swap(new)', '14336', '15359']) returned 1. stdout: Error: The location 15359 is outside of the device /dev/mapper/raid10-boot.
, stderr: [0] ../../libparted/filesys.c:148 (ped_file_system_type_get): File system alias linux-swap(new) is deprecated
Traceback (most recent call last):
File "/usr/bin/ubuntu-vm-builder", line 24, in <module>
uvb.main()
File "/usr/lib/python2.6/dist-packages/VMBuilder/contrib/cli.py", line 215, in main
hypervisor.install_os()
File "/usr/lib/python2.6/dist-packages/VMBuilder/hypervisor.py", line 65, in install_os
self.call_hooks('mount_partitions', self.chroot_dir)
File "/usr/lib/python2.6/dist-packages/VMBuilder/distro.py", line 67, in call_hooks
call_hooks(self, *args, **kwargs)
File "/usr/lib/python2.6/dist-packages/VMBuilder/util.py", line 165, in call_hooks
getattr(context, func, log_no_such_method)(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/VMBuilder/hypervisor.py", line 88, in mount_partitions
disk.partition()
File "/usr/lib/python2.6/dist-packages/VMBuilder/disk.py", line 114, in partition
part.create(self)
File "/usr/lib/python2.6/dist-packages/VMBuilder/disk.py", line 286, in create
run_cmd('parted', '--script', '--', disk.filename, 'mkpart', 'primary', self.parted_fstype(), self.begin, self.end)
File "/usr/lib/python2.6/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 (['parted', '--script', '--', '/dev/mapper/raid10-boot', 'mkpart', 'primary', 'linux-swap(new)', '14336', '15359']) returned 1. stdout: Error: The location 15359 is outside of the device /dev/mapper/raid10-boot.
, stderr: [0] ../../libparted/filesys.c:148 (ped_file_system_type_get): File system alias linux-swap(new) is deprecated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment