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/
Home Products Support Community News


[Xen-devel] pypxeboot: Dom0 PXE bootloader for PV guests

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] pypxeboot: Dom0 PXE bootloader for PV guests
From: Stephen Childs <Stephen.Childs@xxxxxxxxx>
Date: Fri, 02 Feb 2007 16:05:59 +0000
Delivery-date: Fri, 02 Feb 2007 08:05:53 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Stephen.Childs@xxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird (X11/20061219)

I wanted to get my para-virtualised VMs integrated into our existing
PXE/kickstart infrastructure so I could do a completely automatic install
of VMs. Having read previous posts on the xen-devel list I realised that
there was nothing I could use off the shelf, so I have put together my own
bootloader which uses a modified udhcpc and tftp to get an IP address and
pxelinux configuration for the guest (before it even exists). If the
pxelinux configuration specifies a network boot, the relevant kernel and
initrd are downloaded using tftp and sxp is generated a la pygrub. If the
pxelinux config specifies a localboot, we fall through to pygrub.

The code now works for me, so I am making it available here:

Once you have udhcpc and tftp installed it should be very easy to drop it
into an existing pxelinux infrastructure. I'd love some feedback.

I will submit a proper patch soon (probably Monday at this stage) as it
should be a useful complement to pygrub.

Dr. Stephen Childs,
Research Fellow, EGEE Project,    phone:                    +353-1-8961797
Computer Architecture Group,      email:        Stephen.Childs @ cs.tcd.ie
Trinity College Dublin, Ireland   web: http://www.cs.tcd.ie/Stephen.Childs

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] pypxeboot: Dom0 PXE bootloader for PV guests, Stephen Childs <=