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

Re: [Xen-users] the simplest example to start


  • To: xen-users@xxxxxxxxxxxxx
  • From: Alexandre Kouznetsov <alk@xxxxxxxxxx>
  • Date: Sat, 16 Jun 2012 15:44:50 -0500
  • Delivery-date: Sat, 16 Jun 2012 20:46:48 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>

Hello.

El 12/06/12 04:03, Massimo Canonico escribió:
Maybe my problem could be summarized with this question: how can I run a
VM by using ttylinux image (or other minimal linux distro)?
Can't tell, not familiar with ttylinux. It seems to be distributed as ISO image, but your description suggests that it's a disk image.

In many website, they propose to download an ttylinux image and then use
this config file
Mention some URL, maybe there is a small but relevant detail you are missing.

kernel="/boot/kernel/xen-3.0.2/vmlinuz-2.6-xenU"
In short, if this file is not on your Dom0 disk, it won't work.

disk=['file:/boot/ttylinux-5.0/rootfs,sda1,w']
I believe /boot/ttylinux-5.0/rootfs is a FS image, which you could mount.

Unfortunately, this it is not enough (ehre can I find the
vmlinux-2.6-xenU required?).
In short, you need to create a mount point (a empty directory), then try to mount the file as block device.
mount -o loop e/boot/ttylinux-5.0/rootfs /your/mountpoint
(Consult "man mount" and online documentation, for future reference. If you need more help, you probably wish to ask in some general Linux list)

Browse to the dir, locate the kernel and initrd images (if any), copy them to some place within you Dom0, unmount the image.
Then fix the reference in in your config, it must point to a real file.

So, please, if anyone has a complete example (img + kernel + ramdisk +
config file) I would be very happy to see xen able to run a very minimal
linux image.
Never used this stuff myself, but this looks promising:
http://stacklet.com/downloads/images/list/



On 06/11/2012 06:22 PM, Alexandre Kouznetsov wrote:
El 11/06/12 03:35, Massimo Canonico escribió:
Hi,

On 06/08/2012 06:47 PM, Alexandre Kouznetsov wrote:
El 08/06/12 10:44, Massimo Canonico escribió:

Extract your ttylinux's kernel and initrd, place them somewhere under
your Dom0, make sure the VM config file has the correct path to them.
Please note that the kernel need to have Xen support. Before 3.0, it's
not the same kernel you would use to boot on a baremetal machine.
How can I extract a kernel/initdr from the ttylinux?
That depends on your particular setup. In general terms, you need to
mount under Dom0 the root (or /boot, if separated) partition of your
DomU, copy the files to Dom0, than unmount the partition.

If you post your VM's .cfg file, it would be possible to give you a
more specific hint.

Please note, it seems like the setup you are dealing with is not very
common. Not a big deal, but the "standard" way is some bit different,
and this one does not falls too well under "simplest example".
Although, if you get it work, it will be a nice illustration of
various aspects of Xen in the nutshell. Little pain, but great
didactic value.


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

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