[Users] Converting a node iso to PXE

Olivier Doucet webmaster at ajeux.com
Thu Jun 21 16:30:43 UTC 2012


Hello everyone,

I've written a very quick howto for people wanting to boot
ovirt-node-iso via iPXE. Maybe I could put it somewhere in the wiki ?


First, download the iso file. I've tried with a beta version of ovirt ;)
wget "http://ovirt.org/releases/beta/binary/ovirt-node-iso-2.4.0-1.1.fc17.iso"

Create a mountpoint :
mkdir iso

Mount image on it :
mount -o loop ovirt-node-iso-2.4.0-1.1.fc17.iso iso

Extract needed files with provided script :
./iso/LiveOS/livecd-iso-to-pxeboot ovirt-node-iso-2.4.0-1.1.fc17.iso

You now have a ./tftpboot folder.

Put files "tftpboot/vmlinuz0" and "tftpboot/initrd0.img" somewhere
publicly available via HTTP for example.

Don't forget to unmount iso/ folder and delete unused files ;)

Open file tftpboot/pxelinux.cfg/default and copy all flags in APPEND
line, and append it to 'kernel' line in pxe output. This is an example
of what needs to be outputed by ipxe script :

----[ start ipxe script ]---
#!ipxe
kernel http://path/to/vmlinuz0 rootflags=loop initrd=initrd0.img
root=live:/ovirt-node-iso-2.4.0-1.1.fc17.iso rootfstype=auto ro
liveimg nomodeset check rootflags=ro crashkernel=512M-2G:64M,2G-:128M
elevator=deadline install quiet rd_NO_LVM rd.luks=0 rd.md=0 rd.dm=0
initrd http://path/to/initrd0.img
boot
----[ end ipxe script ]---

Now power on your server and boot on iPXE : iso file is entirely
loaded through the network. You now have to follow install script, or
modify kernel line to add custom parameters.


Olivier



More information about the Users mailing list