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] Diskless Xen (PXE, NFS, ...)

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Diskless Xen (PXE, NFS, ...)
From: Bruce Edge <bruce.edge@xxxxxxxxx>
Date: Wed, 28 Oct 2009 09:56:57 -0700
Delivery-date: Wed, 28 Oct 2009 09:58:41 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=8ECAJ0l0OMwMatUfMlEW/DzniSgd5xTeIAI4TNBCGWo=; b=Aw0endhX6HEyHpSZKm51g0JqUeWOaNTO2p5pjWK6QtSNfVpykesf9NA5RLxx61Vkju f6U3OqehpLrh3xTm8sMBhExJLB+BFMP7ZUIz7GmExj752fxtHk80jYGEFHttf0mTEPMa L0VDuiiFY4FtlIvySGSAKiPWK5VAPaZifQwso=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=wDAoHW9YJ1yNXirLjl6cWRx5fTdG9piz5QNkzsCO50jJV23XvQK3/tw8udxKshMSxK ZIKozM6DOebg4T+Mbp5Lzo96FwpWo+lX//DuW6PsUKzdyLrKOJfmn6Dm2xaeOhFNrB9D MgiaK0PgNsVRu/pC1Mgr7f9zHCOa6j/DIMY9k=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4AE86D7C.7010706@xxxxxxx>
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: <200910281653.26649.thomas@xxxxxxxxxx> <4AE86D7C.7010706@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On Wed, Oct 28, 2009 at 9:12 AM, Marcel van Dorp <M.vanDorp@xxxxxxx> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thomas Treutner wrote:
> Hello,
>
> I'd like to ask if someone has experience with setting up Xen (I use 3.2 from
> Lenny) in a diskless scenario - so not just the DomUs on a central storage
> (therefore, I use open-iscsi), but also Xen itself and the Dom0?
>
> I tried that because it would make adding nodes and other changings quite
> easy, and save disks. I used PXE (with mboot.c32) and NFS-Root, and it worked
> quite well after building a nfsroot capable initrd and considering that the
> network device used for nfsroot is not usable for building a bridge (without
> some initramfs customizations, I read) because the link will be lost when the
> bridge comes up.
>
> But when I tried to live migrate DomUs between the nodes, I faced severe
> troubles. Migrations failed because, AFAIR, the block device frontend
> couldn't be disconnected? After that, I couldn't even get block device stats
> from libvirt...
>
> Has anyone done such a setup, preferrably even with iSCSI, but without
> dedicated hardware such as HBAs etc.? Or does someone know a link to a howto?
> I've searched the mailing list and Google quite some time, and surprisingly,
> most people care only about central storage for domUs...
>

This is almost exactly what I am trying to do, except voor the NFS Root
part. I want all to be available n the iSCSI storage and the virtual
environment, and that means my NFS server is also a virtual one. That
must be up to be able to start Dom0, but I need Dom0 to start the DomU
actins as the NFS server.... So I choose to do the latter:

I've built a Xen3.2 live install on a USB disk, and use that as the
local storage for Dom0. I do have HBAs, but for now, I cannot use the
hardware iSCSI support, because the driver is not yet available for my
current kernel.

The storage is indeed iSCSI, with the open-iSCSI initiator (also in the
initrd). For the DomUs, I use a nilfs partition on the iSCSI storage, so
this can be shared by the different Dom0s.

I'm still in the development phase of this setup. I am also considering
to put the Dom0 root on iSCSI, just leaving the kernel and initrd on the
USB disk. The final step is migrating to iSCSI boot, as soon as the
drivers become available. Putting that on a PXE server should be easy to
implement.

As I was saying, I'm still developing this, and I did not yet reach the
point of live migration of DomUs. You know, normal work also continues....

The next 2 weeks I'm working somewhere else, putting this on the
low-priority list...

Hope this helps,

Marcel


>
> tia & kr,
> tom

Are you using pv or hvm domUs?

Could you post your grub and domU config files?

I've been trying to get hvm domUs booting from NFS root filesystems with not much success.

Thanks

-Bruce
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>