Project

General

Profile

Actions

Feature #10160

open

IwIP support for PXELinux 5.1+

Added by Slava Bendersky about 9 years ago. Updated about 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
TFTP
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hello Everyone,
I am using foreman in mix with vmware, but experience really serious issue where impossible adjust setting for filename in DHCP, because it super seed from foreman.
We using mass deployment for remote location where use of TFTP or ipxe not an option.
VMware ipxe is not in option because it require change of each vmx file manually to load ipxe into bios.

For file initrd 44M take 1 hour 45 to download through TFTP ?
I have test case build where I am using HTTP/nginx instead TFTP and whole new vm deployment takes about 27 min with VMware.
My request is have ability to set in foreman provisioning settings which type of pxe filename to use. Right now syslinux use lpxelinux.0 which support HTTP and FTP out of the box no need chain files or different scripts to load.
Here my boot menu which I use for HTTP.

<%#
kind: PXELinux
name: OEL65_NONE_TS_DEFAULT_GRUB
oses:
- RedHat 6
%>

DEFAULT menu
PROMPT 0
MENU TITLE TheForeMan

LABEL OracleLinux 6.5 --> <%= @host.location %> | Role <%= @host.params['vm_role'] %>
kernel "<%=@host.params['foreman_pxe_boot_url'] %>/<%= @kernel %>" 
<% if @host.operatingsystem.name == 'Fedora' and @host.operatingsystem.major.to_i > 16 -%>
    append initrd="<%=@host.params['foreman_pxe_boot_url'] %>/<%= @initrd %>" %> ks=<%= foreman_url('provision')%> ks.device=bootif network ks.sendmac
<% elsif @host.operatingsystem.name != 'Fedora' and @host.operatingsystem.major.to_i >= 7 -%>
    append initrd="<%=@host.params['foreman_pxe_boot_url'] %>/<%= @initrd %>" ks=<%= foreman_url('provision')%> network ks.sendmac
<% else -%>
     append initrd <%=@host.params['foreman_pxe_boot_url'] %>/<%= @initrd %> ks=<%= foreman_url('provision')%> ksdevice=bootif network kssendmac
<% end -%>

IPAPPEND 2

Also working DHCP options for HTTP

allow booting;
allow bootp;

option fqdn.no-client-update    on;  # set the "O" and "S" flag bits
option fqdn.rcode2            255;
option pxegrub code 150 = text ;
option space pxelinux;
option pxelinux.magic code 208 = string;
option pxelinux.pathprefix code 210 = text;
option pxelinux.reboottime code 211 = unsigned integer 32;

# PXE Handoff.
filename "lpxelinux.0";


Files

ipxe.png View ipxe.png 102 KB iPXE hangs on download Slava Bendersky, 04/21/2015 08:22 AM
Actions

Also available in: Atom PDF