does grub2 support proxy dhcp?
According to dnsmasq(8) one host can act as a plain DHCP server, while another one supplies TFTP. Apparently this is called "proxy-DHCP", and happens to work just fine with the ordinary 'pxelinux.0' bootfile from syslinux.
With grub2 it fails because all the relevant variables for TFTP point to the IP address of the DHCP server.
Is this just a regression in grub.git#master, or does/did this work for anyone?
Olaf
Hi Olaf,
Current Grub does not handle proxy DHCP correctly.
There is a patch to add support for proxy DHCP in the mailing list archives, but it was never merged.
I did some adjustments to make it apply to 2.04 for work which I could share if you are interested.
Quoted 13 lines · Olaf Hering
According to dnsmasq(8) one host can act as a plain DHCP server, while another one supplies TFTP. Apparently this is called "proxy-DHCP", and happens to work just fine with the ordinary 'pxelinux.0' bootfile from syslinux.
With grub2 it fails because all the relevant variables for TFTP point to the IP address of the DHCP server.
Is this just a regression in grub.git#master, or does/did this work for anyone?
Olaf
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Quoted 7 lines · Thomas Frauendorfer
Hi Olaf,
Current Grub does not handle proxy DHCP correctly.
There is a patch to add support for proxy DHCP in the mailing list archives, but it was never merged.
I did some adjustments to make it apply to 2.04 for work which I could share if you are interested.
Yes, please share it...
Quoted 7 lines · Olaf Hering
Quoted 6 lines
According to dnsmasq(8) one host can act as a plain DHCP server, while another one supplies TFTP. Apparently this is called "proxy-DHCP", and happens to work just fine with the ordinary 'pxelinux.0' bootfile from syslinux.
With grub2 it fails because all the relevant variables for TFTP point to the IP address of the DHCP server.
Is this just a regression in grub.git#master, or does/did this work for anyone?
I use such configuration an UEFI platform and it works without any issue. However, pxelinux.0 above suggests that you are playing with legacy BIOS PC platform. Are not you?
Daniel
Am Thu, 2 Apr 2020 19:39:49 +0200
schrieb Daniel Kiper <[email protected]>:
Quoted 3 lines
I use such configuration an UEFI platform and it works without any issue. However, pxelinux.0 above suggests that you are playing with legacy BIOS PC platform.
This may depend on the firmware.
With two BIOS systems grub does not load from the proxy DHCP. In Hyper-V Gen2 UEFI VMs not even the bootfile is loaded from proxy DHCP. I think my Dell laptop with UEFI does also not like proxy DHCP, here the real DHCP server has to provide the TFTP server address?!
In the end I had to change my setup and removed the proxy DHCP from the network.
Olaf
Quoted 7 lines · Olaf Hering
Am Thu, 2 Apr 2020 19:39:49 +0200
schrieb Daniel Kiper <[email protected]>:Quoted 3 lines
I use such configuration an UEFI platform and it works without any issue. However, pxelinux.0 above suggests that you are playing with legacy BIOS PC platform.
Quoted 7 lines
This may depend on the firmware.
With two BIOS systems grub does not load from the proxy DHCP. In Hyper-V Gen2 UEFI VMs not even the bootfile is loaded from proxy DHCP. I think my Dell laptop with UEFI does also not like proxy DHCP, here the real DHCP server has to provide the TFTP server address?!In the end I had to change my setup and removed the proxy DHCP from the network.
Could you send me your config file with proxy DHCP?
Daniel
Am Fri, 3 Apr 2020 17:55:41 +0200
schrieb Daniel Kiper <[email protected]>:
Quoted 1 line
Could you send me your config file with proxy DHCP?
I do not have it anymore, the proxy DHCP host is gone, the main DHCP host does now also TFTP.
Olaf
Quoted 11 lines · Daniel Kiper
Quoted 7 lines · Thomas Frauendorfer
Hi Olaf,
Current Grub does not handle proxy DHCP correctly.
There is a patch to add support for proxy DHCP in the mailing list archives, but it was never merged.
I did some adjustments to make it apply to 2.04 for work which I could share if you are interested.Yes, please share it...
Hi,
I pushed the current state to
https://github.com/MiraySoftware/grub2/commits/sysload_2_4_pxe
but the patches are not cleaned up to a state that would allow the merge them to Grub.
Also, the patches apply to 2.04 but won't apply to Grub trunk because of the most recent changes there,
The updated patch based on the on this mailing list is here:
https://github.com/MiraySoftware/grub2/commit/9f2092f4bb3ab462e07bc80969e60234fc191b5b
Then some adjustments to make it work in our test setup:
https://github.com/MiraySoftware/grub2/commit/5a50f39e7172540bf8c4d5c77a3ccf2263857db5
Then a patch to prefer proxy dhcp as default server:
https://github.com/MiraySoftware/grub2/commit/01ffd8b28e8bccae25d9851d4bc53c3c0a4c4d8c
And a patch to add a environment variable to get the tftp server because I wasn't sure if the grub_net_default_server variable should refer to the dhcp or the tftp server and I did not want to change too much in the current default behavior.
https://github.com/MiraySoftware/grub2/commit/ef33547863b2261a433ed23ce18c2772766ee51f
I don't know if those patches are of any use to anybody. But if you have any questions please feel free to ask.
Thomas