refs #222 #243 #244 #245 adds ipxe configuration to the boot engine

pull/1/head
Luis Gerardo Romero Garcia 2024-03-08 12:09:57 +01:00
parent 725d2bf416
commit 6c7b05fa38
6 changed files with 132 additions and 0 deletions

BIN
tftpboot/ipxe.efi 100644

Binary file not shown.

View File

@ -0,0 +1,35 @@
#!ipxe
set timeout 0
set timeout-style hidden
set ISODIR ogLive
set default 0
set kernelargs ro boot=oginit quiet splash irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=true ogdebug=true ogtmpfs=15 oglivedir=${ISODIR} LANG=es_ES.UTF-8 ip=192.168.2.11:192.168.2.1:192.168.2.1:255.255.255.0:pc11:eth0:none group=Aula_virtual ogrepo=192.168.2.1 oglive=192.168.2.1 oglog=192.168.2.1 ogshare=192.168.2.1 ogprof=false vga=788
#kernel tftp://172.17.8.71/ogclient/ogvmlinuz ${kernelargs}
#route
#echo -n Set network interface number [0 for net0, defaults to 0]: ${} && read net
#isset ${net} || set net 0
#echo -n IP: && read net${net}/ip
#echo -n Subnet mask: && read net${net}/netmask
#echo -n Gateway: && read net${net}/gateway
#echo -n DNS: && read dns
#ifopen net0
#route
#echo Comprobando la conectividad con el servidor 172.17.8.71
#ping 172.17.8.71
#kernel http://172.17.8.71/ogclient/ogvmlinuz
#echo Verificando la conectividad con el servidor 172.17.8.71
#imgfetch tftp://172.17.8.71/ogclient/testfile || goto fail
#imgfetch tftp://172.17.8.71/ogclient/ogvmlinuz || goto fail
#sleep 10
# Si no existe el ogLive de ISODIR en la red, inicio ogLive por defecto
#kernel tftp://172.17.8.71/ogclient/ogvmlinuz ro boot=oginit quiet splash irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=true ogdebug=true ogtmpfs=15 oglivedir=$ISODIR LANG=es_ES.UTF-8 ip=192.168.2.11:192.168.2.1:192.168.2.1:255.255.255.0:pc11:eth0:none group=Aula_virtual ogrepo=192.168.2.1 oglive=192.168.2.1 oglog=192.168.2.1 ogshare=192.168.2.1 ogprof=false vga=788
time kernel tftp://172.17.8.71/ogLive/ogvmlinuz ${kernelargs}
#sleep 10
time initrd tftp://172.17.8.71/ogLive/oginitrd.img
boot

View File

@ -0,0 +1,39 @@
#!ipxe
set timeout 0
set timeout-style hidden
set ISODIR ogLive
set default 0
set kernelargs ro boot=oginit quiet splash irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=true ogdebug=true ogtmpfs=15 oglivedir=${ISODIR} LANG=es_ES.UTF-8 ip=192.168.2.11:192.168.2.1:192.168.2.1:255.255.255.0:pc11:eth0:none group=Aula_virtual ogrepo=192.168.2.1 oglive=192.168.2.1 oglog=192.168.2.1 ogshare=192.168.2.1 ogprof=false vga=788
#kernel tftp://172.17.8.71/ogclient/ogvmlinuz ${kernelargs}
echo "OgLive $ISODIR"
echo "-----------------------TEST------------------------------------"
#route
#echo -n Set network interface number [0 for net0, defaults to 0]: ${} && read net
#isset ${net} || set net 0
#echo -n IP: && read net${net}/ip
#echo -n Subnet mask: && read net${net}/netmask
#echo -n Gateway: && read net${net}/gateway
#echo -n DNS: && read dns
ifopen net0
route
#echo Comprobando la conectividad con el servidor 172.17.8.71
#ping 172.17.8.71
#kernel http://172.17.8.71/ogclient/ogvmlinuz
#echo Verificando la conectividad con el servidor 172.17.8.71
#imgfetch tftp://172.17.8.71/ogclient/testfile || goto fail
#imgfetch tftp://172.17.8.71/ogclient/ogvmlinuz || goto fail
#sleep 10
# Si no existe el ogLive de ISODIR en la red, inicio ogLive por defecto
#kernel tftp://172.17.8.71/ogclient/ogvmlinuz ro boot=oginit quiet splash irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=true ogdebug=true ogtmpfs=15 oglivedir=$ISODIR LANG=es_ES.UTF-8 ip=192.168.2.11:192.168.2.1:192.168.2.1:255.255.255.0:pc11:eth0:none group=Aula_virtual ogrepo=192.168.2.1 oglive=192.168.2.1 oglog=192.168.2.1 ogshare=192.168.2.1 ogprof=false vga=788
time kernel tftp://172.17.8.71/ogLive/ogvmlinuz ${kernelargs}
#sleep 10
time initrd tftp://172.17.8.71/ogLive/oginitrd.img
sleep 10
boot

View File

@ -0,0 +1,39 @@
#!ipxe
set timeout 0
set timeout-style hidden
set ISODIR ogLive
set default 0
set kernelargs ro boot=oginit quiet splash irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=true ogdebug=true ogtmpfs=15 oglivedir=${ISODIR} LANG=es_ES.UTF-8 ip=192.168.2.11:192.168.2.1:192.168.2.1:255.255.255.0:pc11:eth0:none group=Aula_virtual ogrepo=192.168.2.1 oglive=192.168.2.1 oglog=192.168.2.1 ogshare=192.168.2.1 ogprof=false vga=788
#kernel tftp://172.17.8.71/ogclient/ogvmlinuz ${kernelargs}
echo "OgLive $ISODIR"
echo "-----------------------TEST------------------------------------"
#route
#echo -n Set network interface number [0 for net0, defaults to 0]: ${} && read net
#isset ${net} || set net 0
#echo -n IP: && read net${net}/ip
#echo -n Subnet mask: && read net${net}/netmask
#echo -n Gateway: && read net${net}/gateway
#echo -n DNS: && read dns
ifopen net0
route
#echo Comprobando la conectividad con el servidor 172.17.8.71
#ping 172.17.8.71
#kernel http://172.17.8.71/ogclient/ogvmlinuz
#echo Verificando la conectividad con el servidor 172.17.8.71
#imgfetch tftp://172.17.8.71/ogclient/testfile || goto fail
#imgfetch tftp://172.17.8.71/ogclient/ogvmlinuz || goto fail
#sleep 10
# Si no existe el ogLive de ISODIR en la red, inicio ogLive por defecto
#kernel tftp://172.17.8.71/ogclient/ogvmlinuz ro boot=oginit quiet splash irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=true ogdebug=true ogtmpfs=15 oglivedir=$ISODIR LANG=es_ES.UTF-8 ip=192.168.2.11:192.168.2.1:192.168.2.1:255.255.255.0:pc11:eth0:none group=Aula_virtual ogrepo=192.168.2.1 oglive=192.168.2.1 oglog=192.168.2.1 ogshare=192.168.2.1 ogprof=false vga=788
time kernel tftp://172.17.8.71/ogLive/ogvmlinuz ${kernelargs}
#sleep 10
time initrd tftp://172.17.8.71/ogLive/oginitrd.img
sleep 10
boot

View File

@ -0,0 +1,19 @@
#!ipxe
echo Booting by ipxe
echo MAC Address: ${net0/mac}
set macaddress ${net0/mac}
set prefix http://172.17.8.71/ipxe_scripts
echo Prefix: ${prefix}
set configfile ${prefix}/01-${net0/mac}
echo Config File: ${configfile}
ifopen net0
route
#echo Comprobando la conectividad con el servidor 172.17.8.71
#ping 172.17.8.71
#
# Intentar cargar la configuración personalizada por MAC
sleep 5
chain ${configfile} ||
# Si no se encuentra la configuración personalizada, cargar la configuración por defecto
chain $prefix/default.ipxe

Binary file not shown.