This tutorial assumes you have a PXE environment already set up.
Download grubx64.efi from http://buildlogs.centos.org/centos/7/os ... /EFI/BOOT/ and place it in the root of your TFTP directory (or where ever you set DNSMASQ to)
In that same directory, create a grub.cfg file. In that file, have something similar to this (mine looks funny because I'm doing other things, but it should work for you):
Code: Select all
set default="0"
set timeout=-1
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
set linux_gfx_mode=keep
export linux_gfx_mode
set default="0"
set timeout=-1
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
set linux_gfx_mode=keep
export linux_gfx_mode
menuentry 'Install CentOS 7' {
linuxefi /centos7-net/vmlinuz inst.repo=http://buildlogs.centos.org/centos/7/os/x86_64-latest/
initrdefi /centos7-net/initrd.img
}
Code: Select all
inst.repo=http://buildlogs.centos.org/centos/7/os/x86_64-latest/
Now make a folder under your TFTP directory called "centos7-net". You can change this to whatever you like, but make sure you change the grub.cfg to match.
Copy "vmlinuz" and "initrd.img" from PATH-TO-CD/images/pxeboot to the centos7-net directory.
PXE boot should now work.