Pxe boot and install?

I currently use pxe to install debian on my servers that have a single usb
flash drive on them. ive decided i should probably switch to nfs or iscsi.
How can i install still with pxe while also booting through pxe that loads
an nfs/iscsi device when its not in build mode? Yes, I have no idea what I
am doing. =)

> I currently use pxe to install debian on my servers that have a single usb
> flash drive on them. ive decided i should probably switch to nfs or iscsi.
> How can i install still with pxe while also booting through pxe that loads
> an nfs/iscsi device when its not in build mode? Yes, I have no idea what I
> am doing. =)

Easy job.

You just configure your PXELinux local template and instead of LOCALBOOT
you provide options to boot from a TFTP server and series of options to
boot from NFS/iSCSI. The rest is in the Debian documentation, I expect
something like:

KERNEL my_bootfiles/debian_XYZ
INITRD my_bootfiles/debian_XYZ.img
APPEND … root=nfs:MY_NFS_SERVER …

Unfortunately the PXELinux local template is all or nothing. Meaning
"all" your hosts will need to boot from TFTP using the modified
configuration. Maybe you can create an ERB piece that will compare
hostgroup and renders differently for individual host groups. That
should work.

With nesting you can have hostgroups like:

nfsboot/debian/webserver
nfsboot/debian/dbserver
localboot/debian/dbserver

Comparing only first element in the hostgroup name.

This looks like a blogpost if you succeed! Good luck.

··· -- Later, Lukas #lzap Zapletal