ubuntu-vm-bilder doesn't create a VM image from iso image

Bug #971212 reported by srini
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)
New
Undecided
Unassigned

Bug Description

ubuntu-vm-builder calls debootstrap to create a basic system of <suite> into <TARGET> from MIRROR. MIRROR can be http:// URL or a file:/// URL which ubuntu-vm-builder uses.

http:/// URL works properly, but when an iso image is mounted and given as file:/// URL, an error is returned.

It would be nice to fix the iso option for vm-build as it would be a lot faster. It appears debootstrap needs a script to facilitate that.

$ sudo ubuntu-vm-builder xen precise --tmpfs=- --flavour=virtual --iso=/home/cloud/Downloads/precise-dvd-amd64.iso -a amd64
2012-04-01 19:03:09,164 INFO : Mounting tmpfs under /tmp/tmpim_TZ5tmpfs
2012-04-01 19:03:09,170 INFO : Calling hook: preflight_check
2012-04-01 19:03:09,172 INFO : Calling hook: set_defaults
2012-04-01 19:03:09,173 INFO : Calling hook: bootstrap
2012-04-01 19:03:09,363 INFO : Cleaning up
2012-04-01 19:03:09,392 ERROR : Process (['/usr/sbin/debootstrap', '--arch=amd64', 'precise', '/tmp/tmpim_TZ5tmpfs', 'file:///tmp/tmppNpSWc']) returned 1. stdout: I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
I: Valid Release signature (key id C5986B4F1257FFA86632CBA746181433FBB75451)
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Chosen extractor for .deb packages: dpkg-deb
W: Failure trying to run: chroot /tmp/tmpim_TZ5tmpfs mount -t proc proc /proc
, stderr:
2012-04-01 19:03:09,392 INFO : Unmounting tmpfs from /tmp/tmpim_TZ5tmpfs
Traceback (most recent call last):
  File "/usr/bin/ubuntu-vm-builder", line 24, in <module>
    uvb.main()
  File "/usr/lib/python2.7/dist-packages/VMBuilder/contrib/cli.py", line 216, in main
    distro.build_chroot()
  File "/usr/lib/python2.7/dist-packages/VMBuilder/distro.py", line 83, in build_chroot
    self.call_hooks('bootstrap')
  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 165, in call_hooks
    getattr(context, func, log_no_such_method)(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/distro.py", line 136, in bootstrap
    self.suite.debootstrap()
  File "/usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.py", line 269, in debootstrap
    run_cmd(*cmd, **kwargs)
  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 (['/usr/sbin/debootstrap', '--arch=amd64', 'precise', '/tmp/tmpim_TZ5tmpfs', 'file:///tmp/tmppNpSWc']) returned 1. stdout: I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
I: Valid Release signature (key id C5986B4F1257FFA86632CBA746181433FBB75451)
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Chosen extractor for .deb packages: dpkg-deb
W: Failure trying to run: chroot /tmp/tmpim_TZ5tmpfs mount -t proc proc /proc
, stderr:

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ubuntu-vm-builder 0.12.4+bzr477-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-21.34-generic 3.2.13
Uname: Linux 3.2.0-21-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.0-0ubuntu2
Architecture: amd64
Date: Sun Apr 1 18:49:41 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120306)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: vm-builder
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
srini (skanduru) wrote :
Mathew Hodson (mhodson)
affects: ubuntu-vm-builder (Ubuntu) → vm-builder (Ubuntu)
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.