Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KERNEL undionly.kpxe does not work any longer #3

Open
edestecd opened this issue Oct 26, 2016 · 1 comment
Open

KERNEL undionly.kpxe does not work any longer #3

edestecd opened this issue Oct 26, 2016 · 1 comment

Comments

@edestecd
Copy link
Contributor

Newer versions of PXELinux barf with "Invalid or corrupt kernel image" here:
https://github.com/LiamLeane/Foreman-ESXi/blob/master/PXELinux.erb#L12

As indicated here, you need to switch to PXE or build the actual ipxe kernel image.
I had no success with using PXE undionly.kpxe as the APPEND was ignored resulting in a loop.
http://forum.ipxe.org/archive/index.php/thread-7951.html

I suggest changing the instructions to build the bin/ipxe.lkrn and updating the template:

git clone git://git.ipxe.org/ipxe.git
sed -i "s/MAX_MODULES 8/MAX_MODULES 100/g" ipxe/src/arch/x86/image/multiboot.c
echo "#define IMAGE_COMBOOT" >> ipxe/src/config/local/general.h
cd ipxe/src
make bin/ipxe.lkrn
cp bin/ipxe.lkrn /var/lib/tftpboot
DEFAULT linux
LABEL linux
KERNEL ipxe.lkrn
APPEND dhcp && chain <%= foreman_url('iPXE') %>
IPAPPEND 2

These changes got us working with ESXi 6.0 update 1

@edestecd
Copy link
Contributor Author

Pull requests are forth coming, after we are up in production and confirmed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant