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] stateless dom0

To: "Denis J. Cirulis" <denis@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] stateless dom0
From: Javier Guerra <javier@xxxxxxxxxxx>
Date: Thu, 19 Mar 2009 09:29:44 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 19 Mar 2009 07:30:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20090319075038.GB3184@xxxxxxxxxxxxxxxxx>
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: <20090319075038.GB3184@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, Mar 19, 2009 at 2:50 AM, Denis J. Cirulis <denis@xxxxxxxxxxxxx> wrote:
> Hello,
>
> I'm trying to setup stateless dom0 host image.
> The idea is to make dom0 host diskless booted off storage/pxe. What are
> the best practices of making such a setup ?
> I already tried nfs-root iscsi-root and aoe-root all these setups works
> perfect, what about making xen running rootless I mean in ramdisk ?

most loaders (including PXE):

- load kernel + initrd:
- initrd is small, compressed and R/O (maybe cramfs)
- on initrd there's a startup script that loads some extra kernel
modules, mounts other filesystem, does a pivot/root and continues with
another script on the new root
- the new script does the rest of the work, and unmounts the initrd.

but.... there's no hard rule about what the startup script on the
initrd _must_ do.  you can easily build a complete system on initrd,
one that:

- loads all needed modules (not just the few needed to mount the next root)
- mounts a few writeable directories (either tmpfs or nfs) on /var,
/tmp, /log, etc
- starts xen daemons
- launches any DomU

i wouldn't call it 'rootless' but 'initrd based'.  well done, it makes
all boxes really interchangeable and reduces the load on NFS servers.

i'm not sure if it's much better than iSCSI or AoE for root, but might
reduce duplications. (since it's 'more natural' to mount initrd as
R/O)

-- 
Javier

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

<Prev in Thread] Current Thread [Next in Thread>