[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: "Stephen Liu" <satimis@xxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.