PXE: Difference between revisions

From Hobbynet Admin Wiki
Jump to navigation Jump to search
m (Egbert moved page Pxe to PXE)
Line 38: Line 38:


=== ubuntu ===
=== ubuntu ===
==== Versie 8.10 ====
==== Versie 12.04 ====
De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-810
De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-1204
==== Versie 9.04 ====
==== Versie 12.10 ====
De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-904
De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-1210
==== Versie 9.10 ====
==== Versie 13.04 ====
De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-910
De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-1304
==== Versie 10.04 ====
==== Versie 13.10 ====
De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-1004
De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-1310
==== Versie 14.04 ====
De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-1404


===== Images ophalen van externe server =====
===== 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.
De boot images worden m.b.v. het script '/var/lib/tftpboot/ubuntu-installer-1404/temp/update' van een externe server opgehaald.


<pre>
<pre>
cd /var/lib/tftpboot/ubuntu-installer-1004/temp/
cd /var/lib/tftpboot/ubuntu-installer-1404/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-i386/current/images/; mirror netboot/"
lftp -c "open http://nl.archive.ubuntu.com/ubuntu/dists/lucid/main/installer-amd64/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-1404/amd64
rm -fr /var/lib/tftpboot/ubuntu-installer-1004/i386
rm -fr /var/lib/tftpboot/ubuntu-installer-1404/i386
mv netboot/ubuntu-installer/* /var/lib/tftpboot/ubuntu-installer-1004/
mv netboot/ubuntu-installer/* /var/lib/tftpboot/ubuntu-installer-1404/
rm -fr netboot  
rm -fr netboot  
</pre>
</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 ===

Revision as of 21:07, 21 April 2014

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 12.04

De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-1204

Versie 12.10

De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-1210

Versie 13.04

De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-1304

Versie 13.10

De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-1310

Versie 14.04

De installatie bestanden staan in /var/lib/tftpboot/ubuntu-installer-1404

Images ophalen van externe server

De boot images worden m.b.v. het script '/var/lib/tftpboot/ubuntu-installer-1404/temp/update' van een externe server opgehaald.

cd /var/lib/tftpboot/ubuntu-installer-1404/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-1404/amd64
rm -fr /var/lib/tftpboot/ubuntu-installer-1404/i386
mv netboot/ubuntu-installer/* /var/lib/tftpboot/ubuntu-installer-1404/
rm -fr netboot 

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/