Xen chroot issue...

Discussion in 'HOWTO-Related Questions' started by stretch, Jun 23, 2006.

  1. stretch

    stretch New Member

    Hi all

    Sorry I am very new to Ubuntu and brand new to Xen etc...

    I have followed the guide from
    http://www.howtoforge.com/xen_3.0_ubuntu_dapper_drake

    and can get as far as the following command...

    Code:
    mount -o loop /xen-images/guest_base.img /xen-images/mnt
    debootstrap --arch i386 dapper /xen-images/mnt [url]http://archive.ubuntu.com/ubuntu/[/url]
    then it spits me out with an error;

    Code:
    root@computer:/# debootstrap dapper /xen-images/mnt/ [url]http://archive.ubuntu.com/ubuntu[/url]
    I: Retrieving Release
    I: Retrieving Packages
    I: Validating Packages
    I: Resolving dependencies of required packages...
    I: Resolving dependencies of base packages...
    W: Failure trying to run: chroot /xen-images/mnt mount -t proc proc /proc
    I hope someone can help me with this as I have been searching high and low almost all day to find the solution ;(

    If it is something obvious I will feel like an idiot but all help is much appreciated ;)

    Thanks in advance

    Stretch
    p.s. I am running
    Linux computer 2.6.16-xen #1 SMP Thu Apr 13 18:46:07 BST 2006 i686 GNU/Linux
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Did you run
    Code:
    debootstrap --arch i386 dapper /xen-images/mnt http://archive.ubuntu.com/ubuntu/
    or

    Code:
    debootstrap dapper /xen-images/mnt/ http://archive.ubuntu.com/ubuntu
    ? Should be the first one.
     
  3. ranamalo

    ranamalo New Member

    chroot problem

    Is the arch that you want available on the mirror you are using?
    For example, and you are using i386 so this is very unlikely, but I have experienced a similar error:

    code:
    I: Retrieving Release
    I: Retrieving Packages
    I: Retrieving Packages
    I: Resolving dependencies of required packages...
    I: Resolving dependencies of base packages...
    W: Failure trying to run: chroot /tmp/biL36tbPF5 mount -t proc proc /proc

    Copying files from new installation to host.
    Copying files from /tmp/biL36tbPF5/var/cache/apt/archives -> /var/cache/apt/archives
    Done
    Done
    The installation of the new system appears to have failed.

    There is no '/bin/ls' installed in the new installation directory
    Done
    System installation failed. Aborting

    Here I was trying to install an arch amd64 with my local mirror, which (i forgot) only had i386. So obviously it would not work. You either have to install an arch available, in this case i386, or modify the mirror so that amd64 is available.

    The --arch i386 option solved the problem.

    code:
    xen-create-image --arch i386 --hostname test

    And then I set my mirror to also download the amd64 architecture adding to /etc/apt/mirror.list:

    code:
    deb-amd64 http://ftp.us.debian.org/debian/ main contrib non-free

    Anyway, hope this helps someone.
     
    Last edited: Jul 6, 2008

Share This Page