The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Slow Boot Times
2017-03-24, 22:19 (This post was last modified: 2017-03-24 22:20 by altsysrq.)
Post: #1
Slow Boot Times
When booting using tftp or http it seems to be slow to load our vmlinuz file. It takes over 30 minutes for a 5.9M file. I am working with a test environment using the following configuration:

dhcpd.conf
Code:
option domain-name-servers 8.8.8.8, 8.8.4.4;
default-lease-time 7200;
max-lease-time 604800;
authoritative;
option domain-name "fenetwork.domain.com";
option space PXE;
option PXE.mtftp-ip    code 1 = ip-address;
option PXE.mtftp-cport code 2 = unsigned integer 16;
option PXE.mtftp-sport code 3 = unsigned integer 16;
option PXE.mtftp-tmout code 4 = unsigned integer 8;
option PXE.mtftp-delay code 5 = unsigned integer 8;
option arch code 93 = unsigned integer 16; # RFC4578
use-host-decl-names on;
ignore client-updates;
ddns-update-style none;

subnet 192.168.50.0 netmask 255.255.255.0 {
    range 192.168.50.30 192.168.50.254;
    class "UEFI-32-1" {
    match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00006";
    filename "efi64/ipxe.efi";
    }

    class "UEFI-32-2" {
    match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00002";
     filename "efi64/ipxe.efi";
    }

    class "UEFI-64-1" {
    match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00007";
     filename "efi64/ipxe.efi";
    }

    class "UEFI-64-2" {
    match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00008";
    filename "efi64/ipxe.efi";
    }

    class "UEFI-64-3" {
    match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00009";
     filename "efi64/ipxe.efi";
    }

    class "Legacy" {
    match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00000";
    filename "bios/undionly.kpxe";
    }

    option root-path "/srv/fsroot";
    next-server 192.168.50.10;
    option subnet-mask 255.255.255.0;
    option broadcast-address 192.168.50.255;
    option routers 192.168.50.10;
    ddns-update-style none;
}

script.ipxe
Note that http:// was also tried.
Code:
#!ipxe

# Give user a chance to enter the shell
prompt --key 0x02 --timeout 2000 Press Ctrl-B for the iPXE shell... || goto no_shell
shell
exit

:no_shell
kernel tftp://feclient/vmlinuz nfsroot=192.168.50.10:/srv/fsroot/feclient/,nolock root=/dev/nfs noswap initrd=initramfs ip=dhcp aufs=tmpfs quiet nomodeset iomem=relaxed e1000e.WriteProtectNVM=0 ehci_hcd.ignore_OC=1 BOOTIF=01-${net0/mac} MBXSerial=none
initrd --name initramfs tftp://feclient/initrd.img
boot

compile-it.sh
Code:
#!/bin/bash
make bin-x86_64-efi/ipxe.efi EMBED=script.ipxe
make bin/undionly.kpxe EMBED=script.ipxe

########### Extra stuff ##########
cp bin-x86_64-efi/ipxe.efi /srv/fsroot/efi64/
cp bin/undionly.kpxe /srv/fsroot/bios/
/etc/init.d/isc-dhcp-server restart
/etc/init.d/tftpd-hpa restart

The config/general.h has had no changes from the cloned repository.

Any thoughts or assistance is appreciated.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Slow Boot Times - altsysrq - 2017-03-24 22:19
RE: Slow Boot Times - NiKiZe - 2017-03-25, 00:00
RE: Slow Boot Times - altsysrq - 2017-03-27, 14:50
RE: Slow Boot Times - NiKiZe - 2017-03-27, 15:06
RE: Slow Boot Times - altsysrq - 2017-03-27, 16:01
RE: Slow Boot Times - NiKiZe - 2017-03-27, 19:12



User(s) browsing this thread: 1 Guest(s)