TFTP grubnetx64.efi doesn't read the grub.cfg
Valtteri Suojanen <[email protected]> Tue, 12 Mar 2019 23:57:01 +0200
| Newsgroups | gmane.linux.terminal-server.general |
|---|---|
| Message-ID | <CAG5ZcrA_cjoo89hmuuhJuhMap2R3NzOq+7Ovva4NFrC=pcw5qw@mail.gmail.com> |
Hello
This is not the normal use case for LTSP
I have downloaded a grub binary
http://archive.ubuntu.com/ubuntu/dists/bionic/main/uefi/grub2-amd64/current/grubnetx64.efi.signed
The file is saved on ltsp TFTP root to
/var/lib/tftpboot/ltsp/i386/grubnetx64.efi
and network booting this on UEFI only enabled machine
The machine finds the right boot filename from dhcp (dnsmasq) tftp://
192.168.67.1/ltsp/i386/ipxe.fi which is configured chainloading to the
target boot filename tftp://192.168.67.1/ltsp/i386/grubnetx64.efi
problems prevent the grub reading configuration grub/grub.cfg
--> grub doesn't get the config tftp://192.168.67.1/ltsp/i386/grub.cfg
/var/lib/tftpboot/ltsp/i386/snponly.efi
/var/lib/tftpboot/ltsp/i386/ipxe.efi
/var/lib/tftpboot/ltsp/i386/grubnetx64.efi
I don't know if this grub.cfg need some more writing...
/var/lib/tftpboot/ltsp/i386/grub/grub.cfg is this:
menuentry "LTSP" --class os {
echo "Loading Linux..."
linux vmlinuz ro init=/sbin/init-ltsp quiet splash root=/dev/nbd0
echo "Loading initial ramdisk..."
initrd initrd.img
}
I have now tried to if the problem is in the network boot or TFTP. So I
nstalled a virtualbox 64-bit quest with uefi firmware enabled. This guest
is installed with rawdisk vmdk image mapped to USB storage. The ipxe.efi
(x84-64_EFI) image is installed to the USB storage.
the virtualbox 64-bit guest boots successfully uefi firmware and ipxe but
chainloading to the TFTP served grub it doesn't read or request from TFTP
the grub.cfg. I interrupt the boot to prompt > enter 'dhcp' > check the
right dhcp information and next-server -> chainloading TFTP grubnet64.efi
works but the problem is still that grub doesn't read grub/grub.cfg from
the TFTP. I have tested this also chainloading from ipxe first to TFTP
ipxe.efi (also built snponly.efi) but grub.cfg reading doesn't get any
better results:
Mar 12 21:02:01 ltsp-server dnsmasq-dhcp[1548]: DHCPDISCOVER(eth1)
08:00:27:50:eb:e3
Mar 12 21:02:01 ltsp-server dnsmasq-dhcp[1548]: DHCPOFFER(eth1)
192.168.67.113 08:00:27:50:eb:e3
Mar 12 21:02:01 ltsp-server dnsmasq-dhcp[1548]: DHCPREQUEST(eth1)
192.168.67.113 08:00:27:50:eb:e3
Mar 12 21:02:01 ltsp-server dnsmasq-dhcp[1548]: DHCPACK(eth1)
192.168.67.113 08:00:27:50:eb:e3
Mar 12 21:02:39 ltsp-server dnsmasq-tftp[1548]: sent
/var/lib/tftpboot/ltsp/i386/ipxe.efi to 192.168.67.113
Mar 12 21:02:45 ltsp-server dnsmasq-dhcp[1548]: DHCPDISCOVER(eth1)
08:00:27:50:eb:e3
Mar 12 21:02:45 ltsp-server dnsmasq-dhcp[1548]: DHCPOFFER(eth1)
192.168.67.113 08:00:27:50:eb:e3
Mar 12 21:02:45 ltsp-server dnsmasq-dhcp[1548]: DHCPREQUEST(eth1)
192.168.67.113 08:00:27:50:eb:e3
Mar 12 21:02:45 ltsp-server dnsmasq-dhcp[1548]: DHCPACK(eth1)
192.168.67.113 08:00:27:50:eb:e3
Mar 12 21:02:46 ltsp-server dnsmasq-tftp[1548]: sent
/var/lib/tftpboot/ltsp/i386/grubnetx64.efi to 192.168.67.
113
same with wireshark:
8 37.879095769 192.168.67.113 192.168.67.1 TFTP 92 Read Request, File:
ltsp/i386/ipxe.efi, Transfer type: octet, blksize=1432, tsize=0
1350 44.367916403 192.168.67.113 192.168.67.1 TFTP 99 Read Request, File:
/ltsp/i386/grubnetx64.efi, Transfer type: octet, blksize=1432, tsize=0
Is there some problem with my grub version (link on top) or is there some
guideline grub.cfg location I need to use for grubnetx64 ?
How should I setup the TFTP if serving grub for LTSP client network ((BIOS
or UEFI)?
Best regards
Valtteri
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net