WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] How to create an Ubuntu Hardy guest

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] How to create an Ubuntu Hardy guest
From: Stephen Liu <satimis@xxxxxxxxx>
Date: Wed, 17 Sep 2008 00:22:38 +0800 (CST)
Delivery-date: Tue, 16 Sep 2008 09:23:16 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=y5MGoYtT0+v8e3FIBMwVGEzl0d3yhB0dcpd2GAJPQHrk/Avn7MN7qkl2Y6h0Qob7zIMNmUa1bZkg7czuvXZiVmzplCIh/0j7ZuWr1J835m/+n9Arr/4lNGh1rwsLLq8+4z4zZuCXhTpkzcPE750EaXLPaYRrj2QP7gjhnWe8OyE=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1221560624.17408.2.camel@supaari>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi Rogier,


Thanks for your advice.


--- Rogier Wessel <rhwessel@xxxxxxxxx> wrote:

> Hi Stephen,
> 
> On Tue, 2008-09-16 at 00:43 +0800, Stephen Liu wrote:
> > $ cat /mnt/para/debootstrap/debootstrap.log
> > /usr/lib/debootstrap/scripts/hardy: line 3: default_mirror: command
> > not
> > found
> > 
> > 
> > Unable to proceed further.
> 
> cp /usr/lib/debootstrap/scripts/breezy
> /usr/lib/debootstrap/scripts/hardy worked for me although I'm not
> completely sure about the implications of using the info of an older
> config.


# cp /usr/lib/debootstrap/scripts/breezy
/usr/lib/debootstrap/scripts/hardy

# rm /usr/lib/xen-tools/hardy.d


# xen-create-image --hostname=xen5.satimis.com --size=2Gb --swap=256Mb
--ide --ip=192.168.0.115 --netmask=255.255.255.0 --gateway=192.168.0.1
--force --dir=/vserver --memory=32Mb --arch=i386
--kernel=/boot/vmlinuz-2.6.18-xen --debootstrap --dist=hardy
--mirror=http://archive.ubuntu.com/ubuntu/ --passwd

  We're trying to configure an installation of hardy in
 /vserver - but there is no hook directory for us to use.

  This means we don't know how to configure this installation.

  We'd expect the hook directory to be : /usr/lib/xen-tools/hardy.d

  Aborting.


Logfile produced at:
         /var/log/xen-tools/xen5.satimis.com.log


$ tail /var/log/xen-tools/xen5.satimis.com.log

  We're trying to configure an installation of hardy in
 /vserver - but there is no hook directory for us to use.

  This means we don't know how to configure this installation.

  We'd expect the hook directory to be : /usr/lib/xen-tools/hardy.d

  Aborting.


Fails


AGAIN
=====

# cd /usr/lib/xen-tools/

# ln -s ubuntu.d hardy.d

# xen-create-image --hostname=xen5.satimis.com --size=2Gb --swap=256Mb
--ide --ip=192.168.0.115 --netmask=255.255.255.0 --gateway=192.168.0.1
--force --dir=/vserver --memory=32Mb --arch=i386
--kernel=/boot/vmlinuz-2.6.18-xen --debootstrap --dist=hardy
--mirror=http://archive.ubuntu.com/ubuntu/ --passwd
.....
.....

WARNING
-------
Loopback module not loaded and you're using loopback images
Run the following to load the module:

modprobe loop loop_max=255


Creating swap image: /vserver/domains/xen5.satimis.com/swap.img
Done

Creating disk image: /vserver/domains/xen5.satimis.com/disk.img
Done

Creating ext3 filesystem on /vserver/domains/xen5.satimis.com/disk.img
Done

Installing your system with debootstrap mirror
http://archive.ubuntu.com/ubuntu/
Done
System installation failed.  Aborting


Logfile produced at:
         /var/log/xen-tools/xen5.satimis.com.log
* end *


# tail /var/log/xen-tools/xen5.satimis.com.log

Copying files from new installation to host.
Copying files from /tmp/P36A9rHTCz/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


Still fail


I don't understand "There is no '/bin/ls' installed in the new
installation directory".  What does it refer to?


B.R.
Stephen L




Send instant messages to your online friends http://uk.messenger.yahoo.com 

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users