Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Translating configs from pxelinux to iPXE
2013-07-31, 10:22 (This post was last modified: 2013-07-31 10:36 by Richard.)
Post: #1
Translating configs from pxelinux to iPXE
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/documenta...onfig.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
Find all posts by this user
Quote this message in a reply
2013-07-31, 13:28
Post: #2
RE: Translating configs from pxelinux to iPXE
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.
Visit this user's website Find all posts by this user
Quote this message in a reply
2013-07-31, 15:47
Post: #3
RE: Translating configs from pxelinux to iPXE
Thanks, Robin!
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)