I am trying to setup an ipxe environment on a vmware.
I would like to configure the setup with UEFI.
I have setup a ubuntu-server and configured it as pxe-server.
via downloading ipxe, isc-dhcpd, tftp-hpa and ngnix.
The dhcp isc-dhcp.conf looks like
subnet 192.168.101.0 netmask 255.255.255.0 {
range 192.168.101.50 192.168.101.100;
}
# add the following to /usr/local/etc/dhcpd.conf
option client-arch code 93 = unsigned integer 16;
if exists user-class and option user-class = "iPXE" {
filename "http://192.168.101.10/test.ipxe";
} else {
if exists client-arch {
if option client-arch = 00:00 {
filename "undionly.kpxe";
} elsif option client-arch = 00:07 {
filename "grubx64.efi";
} elsif option client-arch = 00:09 {
filename "grubx64.efi";
}
}
}
and tftp root has been configured to serve grubx64.efi.
When I boot a network a client, I get the grub command prompt, where I am expecting to get a grub menu and select OS to boot.
( echo $prefix, points to folder /EFI/ubuntu , I have also tried configuring the grub in that folder along with grub.cfg .i.e. in root of tftpfolder.
what I am missing here kindly advice, Once I start getting menu I will configure the grub.cfg to load the OS.