Le système d'exploitation GNU-Linux/Installer Debian via le réseau
Installation de Debian par le réseau
modifierpackets nécessaire
- dhcp
- tftp
- pxe
#apt-get install dhcp-server atftpd pxe syslinux
Copiez ensuite le fichier /usr/lib/syslinux/pxelinux.0 dans /tftpboot
Configuration du dhcp
/etc/dhcp3/dhcpd.conf
ddns-update-style none;
option domain-name "diskless.net";
'#'option domain-name-servers gw.diskless.net;
default-lease-time 600; max-lease-time 7200;
log-facility local7;
subnet 192.168.30.0 netmask 255.255.255.0 { range 192.168.30.100 192.168.30.110; '#'option routers rtr-239-0-2.example.org; } next-server 192.168.30.224; option root-path "192.168.30.224:/tftpboot/pxelinux.0";
filename "/tftpboot/pxelinux.0";
#redémarer le service /etc/init.d/dchp3-serveur restart
tftp
/etc/inetd.conf
tftp dgram udp nowait root /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot
configuration pxe
/etc/pxe.conf
.# which interface to use
interface=eth0
default_address=192.168.30.210
.# the multicast ip address to listen on
multicast_address=224.0.1.2
.# mtftp info
mtftp_address=192.168.30.210
mtftp_client_port=1758 mtftp_server_port=1759
.# the port to listen on
listen_port=4011
.# enable multicast?
use_multicast=1
.# enable broadcast? use_broadcast=1
.# user prompt
prompt=Press F8 to view menu ... prompt_timeout=10
.# what services to provide, priority in ordering .# CSA = Client System Architecture .# service=<CSA>,<min layer>,<max layer>,<basename>,<menu entry>
service=X86PC,0,0,local,Local boot service=X86PC,0,0,pxelinux,PXELinux
.# tftpd base dir
tftpdbase=/tftpboot
.# domain name .# domain=bla.com
redemarer le service
#/etc/init.d/pxe restart
Mettre la machine que vous voulez installer en boot pxe et vous devriez avoir l'interface d'installation de debian