
Using HTTP IPv6 Boot to Install a Linux OS on Lenovo ThinkSystem Severs
Introduces the use of HTTP IPv6 Boot as a way to deploy servers over the network
Provides instructions for use with SLES 12 & 15 and RHEL 7 & 8
Song Shang


UEFI Specification V2.5 includes protocols that are related to he HTTP Boot in network stack. HTTP Boot is one method of booting a server from a Uniform Resource Identifier (URI), using HTTP technology. Users can boot a Network Boot Program (NBP) with HTTP Boot technology.
Internet Protocol version 6 (IPv6), the successor to Internet Protocol version 4 (IPv4), expands the addressing capability by increasing from a 32-bit IP address size to a 128-bit IP address, thereby solving the problem of IPv4 address exhaustion.
The European Telecommunications Standards Institute (ETSI) white paper IPv6 Best Practices, Benefits, Transition Challenges and the Way Forward1, reveals that 1.2 billion Internet users are using IPv6 today, the majority of which are from India (358 million), China (200 million) and US (143 million). It also shows the percentage of web sites with IPv6 support is increasing from 5% (Jan. 2015) to 15% (Jan. 2020). The trend of using IPv6 will keep increasing in the future.
This paper describes how to enable HTTP Boot using IPv6 (HTTP IPv6 Boot) on a ThinkSystem server running SUSE Linux Enterprise Server 15 SP2. HTTP Boot is also supported on RHEL 7.9, RHEL 8.2, RHEL 8.3, SLES 12 SP5 and SLES 15.x.
HTTP Boot with IPv6 is recommended if you want to deploy an operating system in a faster and more stable way.
Key benefits of HTTP Boot include:
► HTTP Boot can handle much larger files than TFTP, and scale to much larger distances.
► More stable than TFTP & UDP
► More safer than TFTP & UDP
Key benefits of IPv6 include:
► No more NAT (Network Address Translation)
► No more private address collisions
► Better multicast routing
► Simpler header format
► Simplified, more efficient routing
► True quality of service (QoS), also called “flow labeling”
► IPSec (Internet Protocol Security) is built into the IPv6 protocol, usable with a proper key infrastructure.
► Flexible options and extensions
1 IPv6 Best Practices, Benefits, Transition Challenges and the Way Forward, https://www.etsi.org/images/files/ ETSIWhitePapers/etsi_WP35_IPv6_Best_Practices_Benefits_Transition_Challenges_and_the_Way_Forward.pdf
© Copyright Lenovo 2021. All rights reserved. 3
► Easier administration

In this section, we demonstrate how HTTP IPv6 Boot is applied to Lenovo ThinkSystem servers. We also show how to deploy an HTTP IPv6 Boot server in SLES 15 SP2.
In our lab, we have configured two servers: One serves as the HTTP IPv6 Boot server, and the other as the HTTP Boot client. The network interfaces for the HTTP IPv6 Boot server are as follows:
This section introduces how to set up the following services on one physical server:
► HTTP service ► DNS service ► DHCP service ► RADVD service
The detailed network interface information is shown in Figure 1:
eth1: mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 6c:0b:84:fl:fl:7d brd ff.ff:ff:ff:ff:ff inet6 2001:db8:f00f:cafe::1/64 scope global valid_lft forever preferred_lft forever inet6 fe80::6e0b:84ff:fefl:fl7d/64 scope link valid_lft forever preferred_lft forever
Figure 1 Network Interface Information
Configuring the HTTP service Configure the HTTP service as follows:
– dhcp6-server – radvd – apache2 (or lighttpd) – dnsmasq
The default directory is /var/www/htdocs however you can change it in the /etc/apache2/default-server.conf configuration file.
localhost:~# systemctl start apache2.service localhost:~# systemctl enable apache2.service localhost:~#
Figure 2 Starting the HTTP service
4 Using HTTP IPv6 Boot to Install a Linux OS on Lenovo ThinkSystem Severs

Configuring the DNS service Configuring the DNS service is optional but it's nice to configure your server a well-known name. To set up the DNS server:
localhost:~ # cat /etc/dnsmasq.conf | tail -n2 interface=ethl addn-hosts=/etc/dnsmasq.d/hosts localhost:~ #
Figure 3 Adding lines to dnsmasq.conf
localhost:~ # cat /etc/dnsmasq.d/hosts 2001:db8:f00f: cafe::1 www.httpboot.local localhost:~ #
Figure 4 Adding lines to dnsmasq.d/hosts:
localhost:~ # systemctl start dnsmasq
Figure 5 Starting the DNS service
Configuring the DHCP service Configure DHCP Service as follows:
localhost:~ # cat /etc/sysconfig/dhcpd | grep "DHCPD6_INTERFACE" # Examples: DHCPD6_lNTERFACE="ethO ethl eth2 # DHCPD6_INTERFACE="ANY" DHCPD6_INTERFACE="eth1" localhost:~ #
Figure 6 Adding the network interface to dhcpd config
localhost:~ # mkdir sles15sp2 localhost:~ # mount -o loop ./SLE-15-SP2-Full-x86_64-GM-Media1.iso sles15sp2/ mount: /root/sles15sp2: WARNING: device write-protected, mounted read-only. localhost:~ # cp -rf sles15sp2/EFI/* /var/www/htdocs / localhost:~ # umount sles15sp2
Figure 7 Mount the image and copy files

localhost:~ # cat /etc/dhcpd6.conf | tail -n11 option dhcp6.bootfile-url code 59 = string; option dhcp6.vendor-class code 16 = {integer 32, integer 16, string}; subnet6 2001 :db8:f00f:cafe::/64 { authoritative; range6 2001:db8:f00f:cafe::42:10 2001:db8:f00f:cafe::42:99; default-lease-time 14400; option dhcp6. domain-search "httpboot.local"; option dhcp6.bootfile-url "http://www.httpboot.local/BOOT/bootx64.efi" option dhcp6. name-servers 2001:db8:f00f:cafe::1 ; option dhcp6.vendor-class 0 10 "httpcIient"; }
Figure 8 Add lines to the dhcpd6.conf file
localhost:~ # systemctl start dhcpd6 localhost:~ # localhost:~ # systemctl enable dhcpd6
Figure 9 Starting the DHCP services
Configuring RADVD service The Router Advertisement Daemon (radvd) is an open-source software product that implements link-local advertisements of IPv6 router addresses and IPv6 routing prefixes using the Neighbor Discovery Protocol (NDP) as specified in RFC 2461.
localhost:~ # echo "net.ipv6.conf.al1.forwarding = 1" > /etc/sysctl.d/50-ipv6-router.conf localhost:~ # sysctl -p /etc/sysctl.d/50-ipv6-router.conf net.ipv6.conf.all.forwarding = 1
Figure 10 Enable IPv6 forwarding
6 Using HTTP IPv6 Boot to Install a Linux OS on Lenovo ThinkSystem Severs

localhost:~ # cat /usr/lib/systemd/system/radvd.service [Unit] Description=lPv6 Router Advertisement Daemon After=syslog.target
[Service] EnvironmentFi1e=-/etc/sysconfig/radvd Execstart=/usr/sbin/radvd --noaaemon $RADVD_OPTIONS ExecReload=/bin/kill -HUP $MAINPID
[install] wantedBy=multi-user.target localhost:~ # localhost:~ # cat /etc/radvd.conf interface ethl { IgnoreIfMissing on; AdvSendAdvert on;
AdvManagedFlag on; ## == DHCLlENT6_MODE=managed #AdvOtherConfigFlag on; ## == DHCLlENT6_MODE=info if AdvManagedFlag off
AdvDefaultLifetime 0; ## lifetime of the default route, 0 -> none #AdvDefaultLifetime 3600; ## to set a default route valid for 1h
prefix 2001:db8:fOOf:cafe::/64 { ## ^^ ## DHCLIENT6_ADDRESS_LENGTH=64 AdvonLink on; ## /64 in prefix is on-link AdvAutonomous off; ## disable slaac ip address assignment AdvPreferredLifetime 2400; ## preferred for 40min AdwalidLifetime 3600; ## valid for 1h }; }; localhost:~ #
Figure 11 Edit the radvd.service file
localhost:~ # systemctl start radvd localhost:~ # systemctl enable radvd created symlink /etc/systemd/system/multi-user.target.wants/radvd.service /usr/1ib/systemd/system/radvd.service. localhost:~ #
Figure 12 Starting the radvd service

In this section, we demonstrate the GRUB configuration for various Linux operating systems. You will need to edit /srv/www/htdocs/BOOT/grub.cfg on the HTTP Boot server to fit your needs.
localhost:~ # mkdir /srv/www/htdocs/slesl5sp2 localhost:~ # mount -o loop /home/SLE-15-SP2-Full-x86_64-GM-Medial.iso /srv/www/htdocs/slesl5sp2 mount: /srv/www/htdocs/slesl5sp2: warning: device write-protected, mounted read-only. localhost:~ #
Figure 13 Mounting the OS image
For SLES 12 SP5, make the changes to grup.cfg as shown in Figure 14.
menuentry 'SLES12.5 HttpBootIPv6 Installation' --class opensuse --class gnu-linux --class gnu --class os { set gfxpayload=keep echo 'Loading kernel ...' linuxefi /slesl2sp5/boot/x86_64/loader/linux install=http://www.httpboot.local/sles12sp5 ipv6only=1 ifcfg=*=dhcp6 echo 'Loading initial ramdisk ...' initrdefi /sles!2sp5/boot/x86_64/loader/initrd }
Figure 14 grub.cfg file for SLES 12 SP5
For SLES 15 SP2, make the changes to grup.cfg as shown in Figure 15.
menuentry 'SLES15 SP2 http Boot IPv6' --class opensuse --class gnu-linux --class gnu --class os { set gfxpayload=keep echo 'Loading kernel ...' linuxefi /slesl5sp2/boot/x86_64/loader/linux install=http://www.httpboot.local/sles15sp2 ipv6only=1 ifcfg=*=dhcp6 echo 'Loading initial ramdisk ...' initrdefi /sles15sp2/boot/x86_64/loader/initrd }
Figure 15 grub.cfg file for SLES 15 SP2
For RHEL 7.9, make the changes to grup.cfg as shown in Figure 16.
– For all RHEL versions, the value of the inst.repo parameter in linuxefi command should be the IP address of the server, not the domain name.
– For RHEL 7.x, the value of the ip parameter is network-interface:dhcp6 (highlighted in red), where network-interface is name of the Ethernet interface on the target server. You may need to manually install Linux on the target server to get this value ahead of time.
8 Using HTTP IPv6 Boot to Install a Linux OS on Lenovo ThinkSystem Severs

menuentry 'RHEL7.9 HTTP Boot IPv6' --class opensuse --class gnu-1inux --class gnu --class os { set gfxpayload=keep echo 'Loading kernel ...' 1inuxefi /rhel79/images/pxeboot/vmlinuz inst.repo=http://[2001:db8:fOOf:cafe::1]/rhel79/ ip=eno1:dhcp6 echo 'Loading initial ramdisk ...' initrdefi /rnel79/images/pxeboot/initrd.img }
Figure 16 grub.cfg file for RHEL 7.9
For RHEL 8.2, make the changes to grup.cfg as shown in Figure 17.
– For all RHEL versions, the value of the inst.repo parameter in linuxefi command should be the IP address of the server, not the domain name.
– For RHEL 8.2, the value of the ip parameter is ip=dhcp6 as highlighted in red.
menuentry 'RHEL8.2 HTTP Boot IPv6' --class opensuse --class gnu-1inux --class gnu --class os { set gfxpayload=keep echo 'Loading kernel ...' linuxefi /rhel82/images/pxeboot/vmlinuz inst.repo=http://[2001:db8:f00f:cafe::1]/rhel82/ ip=dhcp6 echo ’Loading initial ramdisk ...' initrdefi /rhel82//images/pxeboot/initrd.img }
Figure 17 grub.cfg file for RHEL 8.2
For RHEL 8.3, make the changes to grup.cfg as shown in Figure 18.
– For all RHEL versions, the value of the inst.repo parameter in linuxefi command should be the IP address of the server, not the domain name.
– For RHEL 8.3, the value of the ip parameter is ip=auto6 as highlighted in red.
menuentry RHEL8.3 HTTP Boot IPv6 --class opensuse --class gnu-linux --class gnu --class os { set gfxpayload=keep echo 'Loading kernel ...' linuxefi /rhel83/images/pxeboot/vmlinuz inst.repo=http://[2001:db8:fOOf:cafe::1]/rhel83/ ip=auto6 echo 'Loading initial ramdisk ...' initrdefi /rhel83//images/pxeboot/initrd.img }
Figure 18 grub.cfg file for RHEL 8.3


Figure 19 Press F12 to select One Time Boot Device

Figure 20 Boot Devices Manager in UEFI
10 Using HTTP IPv6 Boot to Install a Linux OS on Lenovo ThinkSystem Severs


Figure 21 GRUB menu
The operating system will now be installed over the IPv6 network.
BDS Boot Device Selection DHCP Dynamic Host Configuration Protocol DNS Domain Name System HTTP Hypertext Transfer Protocol NBP Network Boot Program NIC Network interface card OS Operating system RADVD Router Advertisement Daemon PXE Preboot Execution Environment RAM Random-access memory TFTP Trivial File Transfer Protocol TLS Transport Layer Security URI Uniform Resource Identifier
Review the following resources for more information:
► Lenovo Press paper, Using HTTP Boot to Install an Operating System on Lenovo ThinkSystem servers
https://lenovopress.com/lp0736
► SUSE web page for Setting up a UEFI HTTP Boot Server:
https://documentation.suse.com/sles/15-SP2/html/SLES-all/cha-deployment-prep-ue fi-httpboot.html

► European Telecommunications Standards Institute (ETSI) white paper, IPv6 Best Practices, Benefits, Transition Challenges and the Way Forward
https://www.etsi.org/images/files/ETSIWhitePapers/etsi_WP35_IPv6_Best_Practices _Benefits_Transition_Challenges_and_the_Way_Forward.pdf
Song Shang is a Linux Engineer in Lenovo Infrastructure Solutions Group, based in Beijing, China.
Thanks to the following people for their contributions to this project:
► David Watts, Lenovo Press
► Adrian Huang, Lenovo Linux Engineer
► Gary Cudak, Lenovo Lead Architect
12 Using HTTP IPv6 Boot to Install a Linux OS on Lenovo ThinkSystem Severs

Lenovo may not offer the products, services, or features discussed in this document in all countries. Consult your local Lenovo representative for information on the products and services currently available in your area. Any reference to a Lenovo product, program, or service is not intended to state or imply that only that Lenovo product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any Lenovo intellectual property right may be used instead. However, it is the user's responsibility to evaluate and verify the operation of any other product, program, or service.
Lenovo may have patents or pending patent applications covering subject matter described in this document. The furnishing of this document does not give you any license to these patents. You can send license inquiries, in writing, to:
Lenovo (United States), Inc. 1009 Think Place - Building One Morrisville, NC 27560 U.S.A. Attention: Lenovo Director of Licensing
LENOVO PROVIDES THIS PUBLICATION “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some jurisdictions do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you.
This information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. Lenovo may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time without notice.
The products described in this document are not intended for use in implantation or other life support applications where malfunction may result in injury or death to persons. The information contained in this document does not affect or change Lenovo product specifications or warranties. Nothing in this document shall operate as an express or implied license or indemnity under the intellectual property rights of Lenovo or third parties. All information contained in this document was obtained in specific environments and is presented as an illustration. The result obtained in other operating environments may vary.
Lenovo may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligation to you.
Any references in this publication to non-Lenovo Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the materials for this Lenovo product, and use of those Web sites is at your own risk.
Any performance data contained herein was determined in a controlled environment. Therefore, the result obtained in other operating environments may vary significantly. Some measurements may have been made on development-level systems and there is no guarantee that these measurements will be the same on generally available systems. Furthermore, some measurements may have been estimated through extrapolation. Actual results may vary. Users of this document should verify the applicable data for their specific environment.
© Copyright Lenovo 2021. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by Global Services Administration (GSA) ADP Schedule Contract 13

This document was created or updated on May 12, 2021.
Send us your comments via the Rate & Provide Feedback form found at http://lenovopress.com/lp1469
Lenovo and the Lenovo logo are trademarks or registered trademarks of Lenovo in the United States, other countries, or both. These and other Lenovo trademarked terms are marked on their first occurrence in this information with the appropriate symbol (® or ™), indicating US registered or common law trademarks owned by Lenovo at the time this information was published. Such trademarks may also be registered or common law trademarks in other countries. A current list of Lenovo trademarks is available from https://www.lenovo.com/us/en/legal/copytrade/
The following terms are trademarks of Lenovo in the United States, other countries, or both:
The following terms are trademarks of other companies:
Linux is a trademark of Linus Torvalds in the United States, other countries, or both.
Other company, product, or service names may be trademarks or service marks of others.
14 Using HTTP IPv6 Boot to Install a Linux OS on Lenovo ThinkSystem Severs
Lenovo® Lenovo(logo)® ThinkSystem™
Pages referenced in this manual — manufacturer, support and downloads.
Owners and our team usually reply within a day — and your question helps the next person too.
Be the first to ask — other owners or our team will answer.