iPXE discussion forum
Translating configs from pxelinux to iPXE - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Translating configs from pxelinux to iPXE (/showthread.php?tid=7001)



Translating configs from pxelinux to iPXE - Richard - 2013-07-31 10:22

I'm trying to translate a simple config from pxelinux into the proper iPXE syntax. At the moment, the test config isn't working with either one, so I'm not sure if I've translated things correctly.

Relative to my prior posts, I'm now dabbling with PXE booting CentOS 6.4 with an NFS-based root filesystem. Redhat offers a doc here with the relevant steps using pxelinux:
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/diskless-nfs-config.html

Here's the original tftpboot/pxelinux.cfg/default config, based on the URL above:
Code:
default foo

label foo
  kernel vmlinuz-2.6.33-358.14.1.el6.x86_64
  append initrd=initramfs-2.6.33-358.14.1.el6.x86_64.img root=nfs:169.254.1.100:/image rw
And this is the iPXE statement I translated it into:
Code:
kernel vmlinuz-2.6.33-358.14.1.el6.x86_64 initrd=initramfs-2.6.33-358.14.1.el6.x86_64.img root=nfs:169.254.1.100:/image rw
boot

Question is... is simply munging the two lines together the proper way to do this translation? Based on my other work here, this looks right.

Secondly, if anyone's done this before (booted Linux with an NFS-based root filesystem), can you critique the root= statement here? Either it's not being passed successfully, or I've formatted something wrong, because that seems to be my current hangup.

Thanks,
Richard


RE: Translating configs from pxelinux to iPXE - robinsmidsrod - 2013-07-31 13:28

This is how it's usually done with iPXE (if you want to include all the parts of the original config):

Code:
#!ipxe
goto foo
#...
:foo
kernel vmlinuz-2.6.33-358.14.1.el6.x86_64 root=nfs:169.254.1.100:/image rw
initrd initramfs-2.6.33-358.14.1.el6.x86_64.img
boot

Obviously only the first and the three last lines are required.


RE: Translating configs from pxelinux to iPXE - Richard - 2013-07-31 15:47

Thanks, Robin!