Creating ubuntu guest fails on extracting adduser from vm-builder

Bug #1155186 reported by John Mitchell
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When running the command

ubuntu-vm-builder kvm ubuntu --suite=precise --flavour=virtual --arch=amd64 --libvirt=qemu:///system --hostname="dhyweb01" --bridge=br108 --user="myuser" --pass="password" --rootsize=32G --swapsize=2G --mem=1024 --addpkg=acpid --addpkg=openssh-server --addpkg=nano

I always recieve a failure on extracting files, I have tried multiple mirrors and removed the tmp files. To test this wasn't a box failure I installed a new box (same hardware specs) and same error happened. The download and verify both pass without any errors but the extract fails.

<<snip>>
I: Chosen extractor for .deb packages: dpkg-deb
I: Extracting adduser...
I: Extracting base-files...
I: Extracting base-passwd...
I: Extracting bash...
I: Extracting bsdutils...
I: Extracting busybox-initramfs...
I: Extracting coreutils...
I: Extracting cpio...
I: Extracting dash...
I: Extracting debconf...
I: Extracting debianutils...
I: Extracting diffutils...
I: Extracting dpkg...
I: Extracting e2fslibs...
, stderr:
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/tmpJaMnKL', 'http://archive.ubuntu.com/ubuntu']) returned 2. stdout: I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
I: Valid Release signature (key id 630239CC130E1A7FD81A27B140976EAF437D05B5)
<<snip>>

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ubuntu-vm-builder 0.12.4+bzr477-0ubuntu3
ProcVersionSignature: Ubuntu 3.2.0-38.61-generic 3.2.37
Uname: Linux 3.2.0-38-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.1
Architecture: amd64
Date: Thu Mar 14 15:18:29 2013
InstallationMedia: Ubuntu-Server 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120817.3)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: vm-builder
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
John Mitchell (mitchellj) wrote :
description: updated
summary: - Creating ubuntu guest fails on extracting adduser from virt-builder
+ Creating ubuntu guest fails on extracting adduser from vm-builder
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in vm-builder (Ubuntu):
status: New → Confirmed
Revision history for this message
John Mitchell (mitchellj) wrote :

So when I specify the --tmp directory manually such as --tmp=/var/lib/libvirt/images/tmp the install appears to work wihtout problems.

Revision history for this message
Mark Pace (pace) wrote :

I've just tried that as well and if I specify an alternate --tmp, I can create the ubuntu virtual

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.