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: "Stephen Liu" <satimis@xxxxxxxxx>
Subject: Re: [Xen-users] How to create an Ubuntu Hardy guest
From: "Todd Deshane" <deshantm@xxxxxxxxx>
Date: Mon, 15 Sep 2008 11:57:14 -0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 15 Sep 2008 08:58:25 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=TM8gJv2BZ0vxs6LoX2SJruY2UZVaEd0Pf/EDAKMUdXQ=; b=sVXmaSz5KfOnQqXKZoJJMhRUvfWTC2wFTSjE2bTgYGOV/UBjzKHTqmeX05NV/wsARl r2SXg0NQ5jFY7vO3WTOfE1EV0Ba3S1szcw/QsHqhQKamiiLpra+uW3jM6kqmmE80GjA+ TRybOoN4UQELlggrwYwK0JlbSHyWauxCAKmR0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references; b=ohmXzwGsaqQBk+iIWe6Vu3Rr9TVhT5gm+11da1NuZo4f4uWUgfFAeMsBoTwRCOshDc 5RUPxFqoqwvuZkO1GpeTbhbRT2gOFUJi45JUhhGzuKoNQHD4jLHa/TAPy4/1FKyRM0Az YQ7gmXzbRroShQ7L76ZZ7b/kuB5izn+dVhqwo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <902814.63448.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <1221472252.5365.73.camel@xxxxxxxxxxxxxxxxxxxxx> <902814.63448.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: deshantm@xxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Try a more manual procedure.

Something like:

sudo mkdir -p /xen/images
sudo dd if=/dev/zero of=/xen/images/para.partition bs=1M seek=10240 count=1
ls -lh /xen/images/
sudo mkfs.ext3 -F /xen/images/para.partition
sudo mkdir /mnt/para
sudo mount -o loop /xen/images/para.partition /mnt/para
http://archive.ubuntu.com/ubuntu
sudo debootstrap hardy /mnt/para

You should then have a file system at /mnt/para.

You can then customize things like hostname,etc.

When you are done customizing, umount it and make a domU config file.

something like:

kernel="/boot/<Xen kernel>"
ramdisk="/boot/Xen initrd"
disk=['tap:aio:/xen/images/para.partition,xvda1,w']
memory=512
vif=['']
root="/dev/xvda1"
extra='xencons=tty'

and then

xm create -c <the config file>


On Mon, Sep 15, 2008 at 7:40 AM, Stephen Liu <satimis@xxxxxxxxx> wrote:
>
> --- Tim Post <echo@xxxxxxxxxxxx> wrote:
>
>> On Mon, 2008-09-15 at 15:11 +0800, Stephen Liu wrote:
>> [ snip ]
>>
>> > WARNING
>> > -------
>> > Loopback module not loaded and you're using loopback images
>> > Run the following to load the module:
>> >
>> > modprobe loop loop_max=255
>>
>> Did you ensure that loop was loaded? If not, its going to be
>> impossible
>> to mount a file backed block device and copy over the newly strapped
>> file system, much less boot it.
>
>
> Hi Tim,
>
>
> # ps aux | grep loop
> root      3822  0.0  0.0      0     0 ?        S<   04:21   0:00
> [loop0]
> root      3876  0.0  0.0      0     0 ?        S<   04:21   0:00
> [loop1]
> root      4631  0.0  0.0   2760   696 pts/1    S+   04:36   0:00 grep
> loop
>
>
>
>> Please do what the warning recommends and try again.
>
>
> I really don't understand what "There is no '/bin/ls' installed in the
> new installation directory" refers.  I have been googling around.  Some
> threads said it is a bug.
>
>
> B.R.
> satimis
>
> 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
>



-- 
Todd Deshane
http://todddeshane.net
check out our book: http://runningxen.com

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