Bug 1732765 - UEFI HTTP boot over IPv6 does not work
Summary: UEFI HTTP boot over IPv6 does not work
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: grub2
Version: 7.10
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: Bootloader engineering team
QA Contact: Release Test Team
Depends On:
TreeView+ depends on / blocked
Reported: 2019-07-24 10:07 UTC by Lukas Zapletal
Modified: 2020-01-28 13:38 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Target Upstream Version:

Attachments (Terms of Use)

Description Lukas Zapletal 2019-07-24 10:07:22 UTC

I am trying to configure UEFI HTTP Boot over IPv6 with Grub2. Here is my dhcp config:

option dhcp6.bootfile-url code 59 = string;
option dhcp6.vendor-class code 16 = {integer 32, integer 16, string};

subnet6 2001:db8:f00f:cafe::/64 {
 range6 2001:db8:f00f:cafe::42:10 2001:db8:f00f:cafe::42:99;
 option dhcp6.bootfile-url "http://[2001:db8:f00f:cafe::1]/httpboot/grub2/grubx64.efi";
 option dhcp6.name-servers 2001:db8:f00f:cafe::1;
 option dhcp6.vendor-class 0 10 "HTTPClient";

Grub2 loads fine, loads configuration which is:

set default=0
set timeout=10
menuentry 'Kickstart default PXEGrub2' {
  linuxefi boot/centos-local-proxy-NpAPvFVIy69k-vmlinuz ks=http://sat66.nat.lan/unattended/provision?token=d716ee59-fabf-40f6-8b21-9a6a14c47c2e  network ksdevice=bootif ks.device=bootif BOOTIF=00-00-c0-3a-d1-01-8f kssendmac ks.sendmac inst.ks.sendmac BOOTIF=01-$net_default_mac
  initrdefi boot/centos-local-proxy-NpAPvFVIy69k-initrd.img

However after the timeout there is a network error. Depending on bootfile-url it's different:

For http://[2001:db8:f00f:cafe::1] I get: unrecognised network address '2001:db8:f00f:cafe::1', unsupported uefi http status code 0x11, fail to receive a reponse! status=104

For http://ipv6_only_hostname I get: unrecognised network address 'ipv6_only_hostname'

Is IPv6 supported in this scenario? Thanks.

Comment 2 Lukas Zapletal 2020-01-28 13:38:21 UTC
With most recent grub2-2.02-0.80.el7 I only get "unrecognised network address" error. Looks like there is a message "Press any key to continue..." and after a short delay the system boots up. I made a photo of this.

Not sure if this is relevant, but *randomly* grub2 also fails to load the file with "invalid magic number". This happens on LAN and this is HTTP Boot so unlikely a TFTP packet drop. Attaching too.

Note You need to log in before you can comment on or make changes to this bug.