It was indeed because of a secure the kernel.
Thx.
Dr. Alix Mougenot | Head of Technology (Directeur Technique), Loodies |
www.loodies.com | S: alix_loodies | a...@loodies.com | 20 rue Jean Batiste
Pigalle, 75009 Paris.
2012/5/15 Serge Hallyn <998...@bugs.launchpad.net>
> Thanks for reporting this bug.
>
> I suspect you'll have to change your configuration to allow things like
> mounting inside a chroot, etc. If you feel this is a bug in debootstrap
> you could file a bug against it, but I think privileged operation is
> assumed, and so this is not a valid bug.
>
> ** Changed in: vm-builder (Ubuntu)
> Status: New => Invalid
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/998732
>
> Title:
> vmbuilder debootstrap crash
>
> Status in “vm-builder” package in Ubuntu:
> Invalid
>
> Bug description:
> package:
> ubuntu-vm-builder_0.12.4+bzr477
>
> real package:
> python-vm-builder_0.12.4+bzr477
>
> running on:
> Ubuntu 12.04 LTS
>
> by running the following command (just a test):
> $ sudo vmbuilder kvm ubuntu --suite precise --flavour server --libvirt
> qemu:///system
>
> is triggered the following exception:
> W: Failure trying to run: chroot /tmp/tmprLI6UB mount -t proc proc /proc
> Traceback (most recent call last):
>File "/usr/bin/vmbuilder", line 24, in
> cli.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/tmprLI6UB', '
> http://archive.ubuntu.com/ubuntu']) returned 1
>
> - debootstrap may be the culprit its version is 1.0.39ubuntu0.1
> - the targeted folder is a correct root folder
> - /proc is a correct proc folder
>
> complete output:
> 2012-05-13 13:56:04,184 INFO: Calling hook: preflight_check
> 2012-05-13 13:56:04,186 INFO: Calling hook: set_defaults
> 2012-05-13 13:56:04,186 INFO: Calling hook: bootstrap
> 2012-05-13 13:57:12,195 INFO: Cleaning up
> 2012-05-13 13:57:12,195 ERROR : Process (['/usr/sbin/debootstrap',
> '--arch=amd64', 'precise', '/tmp/tmprLI6UB', '
> http://archive.ubuntu.com/ubuntu']) returned 1. stdout: I: Retrieving
> Release
> I: Retrieving Release.gpg
> I: Checking Release signature
> I: Valid Release signature (key id
> 630239CC130E1A7FD81A27B140976EAF437D05B5)
> I: Retrieving Packages
> I: Validating Packages
> I: Resolving dependencies of required packages...
> I: Resolving dependencies of base packages...
> I: Checking component main on http://archive.ubuntu.com/ubuntu...
> I: Retrieving adduser
> I: Validating adduser
> I: Retrieving apt
> I: Validating apt
> I: Retrieving apt-utils
> I: Validating apt-utils
> I: Retrieving base-files
> I: Validating base-files
> I: Retrieving base-passwd
> I: Validating base-passwd
> I: Retrieving bash
> I: Validating bash
> I: Retrieving bsdutils
> I: Validating bsdutils
> I: Retrieving busybox-initramfs
> I: Validating busybox-initramfs
> I: Retrieving bzip2
> I: Validating bzip2
> I: Retrieving console-setup
> I: Validating console-setup
> I: Retrieving coreutils
> I: Validating coreutils
> I: Retrieving cpio
> I: Validating cpio
> I: Retrieving cron
> I: Validating cron
> I: Retrieving dash
> I: Validating dash
> I: Retrieving debconf
> I: Validating debconf
> I: Retrieving debconf-i18n
> I: Validating debconf-i18n
> I: Retrieving debianutils
> I: Validating debianutils
> I: Retrieving diffutils
> I: Validating diffutils
> I: Retrieving dmsetup
> I: Validating dmsetup
> I: Retrieving dpkg
> I: Validating dpkg
> I: Retrieving e2fslibs
> I: Validating e2fslibs
> I: Retrieving e2fsprogs
> I: Validating e2fsprogs
> I: Retrieving eject
> I: Validating eject
> I: Retrieving file
> I: Validating file
> I: Retrieving findutils
> I: Validating findutils
> I: Retrieving gcc-4.6-base
> I: Validating gcc-4.6-base
> I: Retrieving gnupg
> I: Validating