Reply To: [2.0 RC3] PXE error

Home Page Forums Network Management ZeroShell [2.0 RC3] PXE error Reply To: [2.0 RC3] PXE error

#52846

Shadok
Member

Here’s my dhcpd.conf :

authoritative;
ddns-update-style interim;
ignore client-updates;
option space ipxe;
option ipxe-encap-opts code 175 = encapsulate ipxe;
option ipxe.priority code 1 = signed integer 8;
option ipxe.keep-san code 8 = unsigned integer 8;
option ipxe.skip-san-boot code 9 = unsigned integer 8;
option ipxe.syslogs code 85 = string;
option ipxe.cert code 91 = string;
option ipxe.privkey code 92 = string;
option ipxe.crosscert code 93 = string;
option ipxe.no-pxedhcp code 176 = unsigned integer 8;
option ipxe.bus-id code 177 = string;
option ipxe.bios-drive code 189 = unsigned integer 8;
option ipxe.username code 190 = string;
option ipxe.password code 191 = string;
option ipxe.reverse-username code 192 = string;
option ipxe.reverse-password code 193 = string;
option ipxe.version code 235 = string;
option iscsi-initiator-iqn code 203 = string;
# Feature indicators
option ipxe.pxeext code 16 = unsigned integer 8;
option ipxe.iscsi code 17 = unsigned integer 8;
option ipxe.aoe code 18 = unsigned integer 8;
option ipxe.http code 19 = unsigned integer 8;
option ipxe.https code 20 = unsigned integer 8;
option ipxe.tftp code 21 = unsigned integer 8;
option ipxe.ftp code 22 = unsigned integer 8;
option ipxe.dns code 23 = unsigned integer 8;
option ipxe.bzimage code 24 = unsigned integer 8;
option ipxe.multiboot code 25 = unsigned integer 8;
option ipxe.slam code 26 = unsigned integer 8;
option ipxe.srp code 27 = unsigned integer 8;
option ipxe.nbi code 32 = unsigned integer 8;
option ipxe.pxe code 33 = unsigned integer 8;
option ipxe.elf code 34 = unsigned integer 8;
option ipxe.comboot code 35 = unsigned integer 8;
option ipxe.efi code 36 = unsigned integer 8;
option ipxe.fcoe code 37 = unsigned integer 8;
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option domain-name "localdomain.com";
option domain-name-servers 192.168.1.1, 8.8.8.8, 8.8.4.4;
option ntp-servers 192.168.1.1;
next-server 192.168.1.1;
if exists user-class and option user-class = "iPXE" {
filename "menu.ipxe";
} else {
filename "undionly.kpxe";
}

default-lease-time 3600;
max-lease-time 86400;
range 192.168.1.70 192.168.1.89;
range 192.168.1.140 192.168.1.199;
range 192.168.1.210 192.168.1.249;

And preboot script :

# Patch DHCP config scripts to include a Global_Parameters section, and pass config testing
touch /Database/var/register/system/dhcp/Global_Parameters
sed -i 's/^EOF$/EOFncat $REGISTER/system/dhcp/Global_Parameters/g' /root/kerbynet.cgi/scripts/dhcp_configfile
sed -i 's/echo "ignore client-updates;" >>$FILE/echo "ignore client-updates;" >>$FILEncat $REGISTER/system/dhcp/Global_Parameters >>$FILE/g' /root/kerbynet.cgi/scripts/dhcp_checkopt

/tftpboot/menu.ipxe :

#!ipxe

set smartos-build 20130808T195337Z

######## MAIN MENU ###################
:start
menu Welcome to iPXE's Boot Menu
item
item --gap --
Operating systems
item smartos Boot SmartOS (${smartos-build})
item --gap --
Utilities
item shell Enter iPXE shell
item reboot Reboot
item --gap --
Diagnostics
item memtest Memtest86+
item
item exit Exit (boot local disk)
choose --default smartos --timeout 5000 target && goto ${target}


########## UTILITY ITEMS ####################
:shell
echo Type exit to get the back to the menu
shell
set menu-timeout 0
goto start

:reboot
reboot

:exit
exit

########## MENU ITEMS #######################
:smartos
kernel /smartos/${smartos-build}/platform/i86pc/kernel/amd64/unix -B root_shadow='XXXXXX'
initrd /smartos/${smartos-build}/platform/i86pc/amd64/boot_archive
boot
goto start

########## DIAGNOSTICS ITEMS #################
:memtest
kernel /memtest/memtest86+
boot
goto start