diff --git a/etc/dhcp_boot.ipxe.tmpl b/etc/dhcp_boot.ipxe.tmpl new file mode 100644 index 0000000..4df2849 --- /dev/null +++ b/etc/dhcp_boot.ipxe.tmpl @@ -0,0 +1,14 @@ +#!ipxe +echo Booting by ipxe +echo MAC Address: ${net0/mac} +set macaddress ${net0/mac} +set prefix tftp://SERVERIP/ipxe_scripts +echo Prefix: ${prefix} +set configfile ${prefix}/01-${net0/mac} +echo Config File: ${configfile} +ifopen net0 +route +# Intentar cargar la configuración personalizada por MAC +chain ${configfile} || +# Si no se encuentra la configuración personalizada, cargar la configuración por defecto +chain $prefix/default.ipxe diff --git a/etc/mac_script.ipxe.tmpl b/etc/mac_script.ipxe.tmpl new file mode 100644 index 0000000..faf030f --- /dev/null +++ b/etc/mac_script.ipxe.tmpl @@ -0,0 +1,14 @@ +#!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=IP_ADDRESS:192.168.2.1:192.168.2.1:255.255.255.0:HOSTNAME: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 +echo "OgLive $ISODIR" +ifopen net0 +route +kernel tftp://SERVERIP/ogLive/ogvmlinuz ${kernelargs} +initrd tftp://SERVERIP/ogLive/oginitrd.img +boot + + diff --git a/tftpboot/ipxe.efi b/tftpboot/ipxe.efi new file mode 100644 index 0000000..3a4c4a9 Binary files /dev/null and b/tftpboot/ipxe.efi differ diff --git a/tftpboot/ipxe_scripts/01-00:50:56:22:11:11 b/tftpboot/ipxe_scripts/01-00:50:56:22:11:11 new file mode 100644 index 0000000..8591b59 --- /dev/null +++ b/tftpboot/ipxe_scripts/01-00:50:56:22:11:11 @@ -0,0 +1,12 @@ +#!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/ogLive/ogvmlinuz ${kernelargs} +initrd tftp://172.17.8.71/ogLive/oginitrd.img +boot + + diff --git a/tftpboot/ipxe_scripts/default.ipxe b/tftpboot/ipxe_scripts/default.ipxe new file mode 100644 index 0000000..af00c40 --- /dev/null +++ b/tftpboot/ipxe_scripts/default.ipxe @@ -0,0 +1,14 @@ +#!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 +echo "OgLive $ISODIR" +ifopen net0 +route +kernel tftp://SERVERIP/ogLive/ogvmlinuz ${kernelargs} +initrd tftp://SERVERIP/ogLive/oginitrd.img +boot + + diff --git a/tftpboot/undionly.kpxe b/tftpboot/undionly.kpxe new file mode 100644 index 0000000..39d4e78 Binary files /dev/null and b/tftpboot/undionly.kpxe differ