PXE: Difference between revisions
No edit summary |
No edit summary |
||
Line 22: | Line 22: | ||
authoritative; | authoritative; | ||
subnet 212.72.224.0 netmask 255.255.255.192 { | subnet 212.72.224.0 netmask 255.255.255.192 { | ||
Line 32: | Line 31: | ||
option routers 212.72.224.1; | option routers 212.72.224.1; | ||
} | } | ||
</pre> | </pre> | ||
== distributies == | == distributies == | ||
De globale bestanden voor alle distributies staan in /var/lib/tftpboot/pxelinux.cfg/ | |||
=== ubuntu === | === ubuntu === | ||
==== Versie 8.10 ==== | ==== Versie 8.10 ==== | ||
De installatie bestanden staan in | De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-810 | ||
==== Versie 9.04 ==== | ==== Versie 9.04 ==== | ||
De installatie bestanden staan in | De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-904 | ||
==== Versie 9.10 ==== | ==== Versie 9.10 ==== | ||
De installatie bestanden staan in | De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-910 | ||
==== Versie 10.04 ==== | ==== Versie 10.04 ==== | ||
De installatie bestanden staan in : /var/lib/tftpboot/ubuntu-installer-1004 | De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-1004 | ||
===== Images ophalen van externe server ===== | |||
De boot images worden m.b.v. het script '/var/lib/tftpboot/ubuntu-installer-1004/temp/update' van een externe server opgehaald. | |||
<pre> | |||
cd /var/lib/tftpboot/ubuntu-installer-1004/temp/ | |||
lftp -c "open http://nl.archive.ubuntu.com/ubuntu/dists/lucid/main/installer-i386/current/images/; mirror netboot/" | |||
lftp -c "open http://nl.archive.ubuntu.com/ubuntu/dists/lucid/main/installer-amd64/current/images/; mirror netboot/" | |||
rm -fr /var/lib/tftpboot/ubuntu-installer-1004/amd64 | |||
rm -fr /var/lib/tftpboot/ubuntu-installer-1004/i386 | |||
mv netboot/ubuntu-installer/* /var/lib/tftpboot/ubuntu-installer-1004/ | |||
rm -fr netboot | |||
</pre> | |||
==== Versie 10.10 ==== | |||
De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-1004 | |||
===== Images ophalen van externe server ===== | |||
De boot images worden m.b.v. het script '/var/lib/tftpboot/ubuntu-installer-1004/temp/update' van een externe server opgehaald. | |||
=== debian === | === debian === | ||
==== Versie 5.0 ==== | ==== Versie 5.0 ==== | ||
De installatie bestanden staan in | De installatie bestanden staan in /var/lib/tftpboot/debian-installer-50 | ||
=== fedora === | === fedora === | ||
====Versie 11 ==== | ====Versie 11 ==== | ||
===== Bestands locaties ===== | ===== Bestands locaties ===== | ||
De installatie bestanden staan in | De installatie bestanden staan in /var/lib/tftpboot/fedora-installer-11 | ||
===== | ===== Fedora configuratie scripts ===== | ||
In /var/www staan 2 configuratie scripts (kickstart) een voor 32 bit en 64 bit. | In /var/www staan 2 configuratie scripts (kickstart) een voor 32 bit en 64 bit. | ||
In deze scripts staat de URL van de mirror, zodat de gebruiker vanaf daar kan installeren.<br> | In deze scripts staat de URL van de mirror, zodat de gebruiker vanaf daar kan installeren.<br> | ||
Line 62: | Line 83: | ||
url --url=http://mirror.leaseweb.com/fedora/linux/releases/11/Fedora/x86_64/os | url --url=http://mirror.leaseweb.com/fedora/linux/releases/11/Fedora/x86_64/os | ||
</pre> | </pre> | ||
=== | |||
====Versie 12 ==== | |||
===== Bestands locaties ===== | |||
De installatie bestanden staan in /var/lib/tftpboot/fedora-installer-12 | |||
===== Fedora configuratie scripts ===== | |||
In /var/www staan 2 configuratie scripts (kickstart) een voor 32 bit en 64 bit. | |||
In deze scripts staat de URL van de mirror, zodat de gebruiker vanaf daar kan installeren.<br> | |||
Hieronder een voorbeeld van zo'n bestand: | |||
<pre> | |||
network --device eth0 --bootproto dhcp | |||
#Use HTTP installation media | |||
url --url=http://mirror.leaseweb.com/fedora/linux/releases/12/Fedora/x86_64/os | |||
</pre> | |||
===== Images ophalen van externe server ===== | |||
De boot images worden m.b.v. het script '/var/lib/tftpboot/fedora-installer-12/work/get_all' van een externe server opgehaald. | |||
<pre> | |||
#! /bin/bash | |||
cd /var/lib/tftpboot/fedora-installer-12/work/ | |||
lftp -c "open http://download.fedora.redhat.com/pub/fedora/linux/releases/12/Fedora/i386/os/images/; mirror pxeboot/" | |||
rm -rf ../i386 | |||
mv pxeboot ../i386 | |||
lftp -c "open http://download.fedora.redhat.com/pub/fedora/linux/releases/12/Fedora/x86_64/os/images/; mirror pxeboot/" | |||
rm -rf ../x86_64 | |||
mv pxeboot ../x86_64 | |||
</pre> | |||
=== CentOS === | |||
==== Versie 5.3 ==== | ==== Versie 5.3 ==== | ||
===== Bestands locaties ===== | ===== Bestands locaties ===== | ||
De installatie bestanden staan in | De installatie bestanden staan in /var/lib/tftpboot/centos-installer-53 | ||
===== Configuratie scripts ===== | ===== Configuratie scripts ===== | ||
In /var/www staan 2 configuratie scripts (kickstart) een voor 32 bit en 64 bit. | In /var/www staan 2 configuratie scripts (kickstart) een voor 32 bit en 64 bit. |
Revision as of 16:45, 2 May 2010
pxe
Op de virtuele server 'pxe' draait een PXE-server voor installatie van debian op afstand.
Er wordt door middel van dhcp een extern IP adres uitgedeeld waarmee je een server kan herinstalleren.
Op deze pagina staat complete installatie handleiding: http://www.howtoforge.com/ubuntu_pxe_install_server
tftp
De tftp boot files staan in /var/lib/tftpboot
dhcp
De dhcp server deelt twee reeksen uit:
1 in de 2e interne reeks 172.31.1.0/24 van 172.31.1.100 tot 172.31.1.150
2 in de externe reeks 212.72.224.0/26 van 212.72.224.24 tot 212.72.224.26
De config van dhcp
default-lease-time 86400; max-lease-time 604800; authoritative; subnet 212.72.224.0 netmask 255.255.255.192 { range 212.72.224.25 212.72.224.26; filename "pxelinux.0"; option subnet-mask 255.255.255.0; option domain-name "hobby.nl"; option domain-name-servers 212.72.224.8; option routers 212.72.224.1; }
distributies
De globale bestanden voor alle distributies staan in /var/lib/tftpboot/pxelinux.cfg/
ubuntu
Versie 8.10
De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-810
Versie 9.04
De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-904
Versie 9.10
De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-910
Versie 10.04
De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-1004
Images ophalen van externe server
De boot images worden m.b.v. het script '/var/lib/tftpboot/ubuntu-installer-1004/temp/update' van een externe server opgehaald.
cd /var/lib/tftpboot/ubuntu-installer-1004/temp/ lftp -c "open http://nl.archive.ubuntu.com/ubuntu/dists/lucid/main/installer-i386/current/images/; mirror netboot/" lftp -c "open http://nl.archive.ubuntu.com/ubuntu/dists/lucid/main/installer-amd64/current/images/; mirror netboot/" rm -fr /var/lib/tftpboot/ubuntu-installer-1004/amd64 rm -fr /var/lib/tftpboot/ubuntu-installer-1004/i386 mv netboot/ubuntu-installer/* /var/lib/tftpboot/ubuntu-installer-1004/ rm -fr netboot
Versie 10.10
De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-1004
Images ophalen van externe server
De boot images worden m.b.v. het script '/var/lib/tftpboot/ubuntu-installer-1004/temp/update' van een externe server opgehaald.
debian
Versie 5.0
De installatie bestanden staan in /var/lib/tftpboot/debian-installer-50
fedora
Versie 11
Bestands locaties
De installatie bestanden staan in /var/lib/tftpboot/fedora-installer-11
Fedora configuratie scripts
In /var/www staan 2 configuratie scripts (kickstart) een voor 32 bit en 64 bit.
In deze scripts staat de URL van de mirror, zodat de gebruiker vanaf daar kan installeren.
Hieronder een voorbeeld van zo'n bestand:
network --device eth0 --bootproto dhcp #Use HTTP installation media url --url=http://mirror.leaseweb.com/fedora/linux/releases/11/Fedora/x86_64/os
Versie 12
Bestands locaties
De installatie bestanden staan in /var/lib/tftpboot/fedora-installer-12
Fedora configuratie scripts
In /var/www staan 2 configuratie scripts (kickstart) een voor 32 bit en 64 bit.
In deze scripts staat de URL van de mirror, zodat de gebruiker vanaf daar kan installeren.
Hieronder een voorbeeld van zo'n bestand:
network --device eth0 --bootproto dhcp #Use HTTP installation media url --url=http://mirror.leaseweb.com/fedora/linux/releases/12/Fedora/x86_64/os
Images ophalen van externe server
De boot images worden m.b.v. het script '/var/lib/tftpboot/fedora-installer-12/work/get_all' van een externe server opgehaald.
#! /bin/bash cd /var/lib/tftpboot/fedora-installer-12/work/ lftp -c "open http://download.fedora.redhat.com/pub/fedora/linux/releases/12/Fedora/i386/os/images/; mirror pxeboot/" rm -rf ../i386 mv pxeboot ../i386 lftp -c "open http://download.fedora.redhat.com/pub/fedora/linux/releases/12/Fedora/x86_64/os/images/; mirror pxeboot/" rm -rf ../x86_64 mv pxeboot ../x86_64
CentOS
Versie 5.3
Bestands locaties
De installatie bestanden staan in /var/lib/tftpboot/centos-installer-53
Configuratie scripts
In /var/www staan 2 configuratie scripts (kickstart) een voor 32 bit en 64 bit.
In deze scripts staat de URL van de mirror, zodat de gebruiker vanaf daar kan installeren.
Hieronder een voorbeeld van zo'n bestand:
network --device eth0 --bootproto dhcp #Use HTTP installation media url --url=ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/centos/5.3/os/x86_64/