Ubuntu pxe support uefi
Posted To be or not to be
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu pxe support uefi相关的知识,希望对你有一定的参考价值。
http://djmimi-linux.blogspot.com/
Step 4. Modify DHCP service configuration
#vi /etc/dhcp/dhcpd.conf
default-lease-time 14400;
max-lease-time 86400;
ddns-update-style none;
subnet 192.168.10.0 netmask 255.255.255.0 {
option broadcast-address 192.168.10.255;
option routers 192.168.10.1;
range 192.168.10.2 192.168.10.253;
next-server 192.168.10.1;
if substring (option vendor-class-identifier, 15, 5) = "00007" {
filename "/BOOTX64.efi";
}
else {
filename "/pxelinux.0";
}
}
max-lease-time 86400;
ddns-update-style none;
subnet 192.168.10.0 netmask 255.255.255.0 {
option broadcast-address 192.168.10.255;
option routers 192.168.10.1;
range 192.168.10.2 192.168.10.253;
next-server 192.168.10.1;
if substring (option vendor-class-identifier, 15, 5) = "00007" {
filename "/BOOTX64.efi";
}
else {
filename "/pxelinux.0";
}
}
#vi /etc/dhcp/dhcpd6.conf
allow booting;
allow bootp;
ddns-update-style none;
default-lease-time 2592000;
preferred-lifetime 604800;
option dhcp-renewal-time 3600;
option dhcp-rebinding-time 7200;
option dhcp6.bootfile-url code 59 = string;
allow leasequery;
option dhcp6.info-refresh-time 21600;
subnet6 2001::/112 {
range6 2001::1001 2001::fffe;
option dhcp6.bootfile-url "tftp://[2001::1]/bootx64.efi";
}
allow bootp;
ddns-update-style none;
default-lease-time 2592000;
preferred-lifetime 604800;
option dhcp-renewal-time 3600;
option dhcp-rebinding-time 7200;
option dhcp6.bootfile-url code 59 = string;
allow leasequery;
option dhcp6.info-refresh-time 21600;
subnet6 2001::/112 {
range6 2001::1001 2001::fffe;
option dhcp6.bootfile-url "tftp://[2001::1]/bootx64.efi";
}
#service dhcpd start
#service dhcpd6 start
#service dhcpd6 start
以上是关于Ubuntu pxe support uefi的主要内容,如果未能解决你的问题,请参考以下文章
Ubuntu 16.04 PXE+kickstart部署系统