GNU/Linux >> Tutoriels Linux >  >> Cent OS

Installer un serveur PXE et démarrer un client PXE sur CentOS 7

PXE, Pre-Boot Execution Environment, permet d’installer un système via le réseau sans DVD ni CD-ROM. Le client démarre depuis sa carte réseau.

Installer les paquets

yum -y install httpd xinetd syslinux tftp-server

Configurer HTTP

mount -o loop /tmp/CentOS-7-x86_64-DVD-1503-01.iso /mnt
mkdir /var/www/centos7
cp -a /mnt/* /var/www/centos7/
chmod -R 755 /var/www/centos7/

Configurer TFTP

cp -a /usr/share/syslinux/* /var/lib/tftpboot/
mkdir /var/lib/tftpboot/centos7
cp /mnt/images/pxeboot/vmlinuz /var/lib/tftpboot/centos7
cp /mnt/images/pxeboot/initrd.img /var/lib/tftpboot/centos7
mkdir /var/lib/tftpboot/pxelinux.cfg
vi /var/lib/tftpboot/pxelinux.cfg/default

Configurer DHCP

Ajoutez filename "pxelinux.0"; dans la configuration DHCP.

Démarrer les services

systemctl restart xinetd
systemctl restart httpd
systemctl restart dhcpd
systemctl enable xinetd
systemctl enable httpd
systemctl enable dhcpd

Pare-feu

firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=dhcp
firewall-cmd --permanent --add-port=69/udp
firewall-cmd --permanent --add-port=69/tcp
firewall-cmd --reload

Le client peut maintenant démarrer en PXE et lancer l’installation de CentOS 7.

Cent OS
  1. Installer et configurer HAProxy sur RHEL 8 ou CentOS 8

  2. Installer et configurer VNC sur CentOS 7

  3. Installer et configurer un serveur NFS sur CentOS 8

  4. Installer et configurer un serveur FTP vsftpd sur CentOS 7 et RHEL 7

  5. Installer et configurer GitLab sur CentOS 8

Déployer Zimbra Collaboration 8.6 sur trois serveurs CentOS 7

Configurer un serveur VNC sur CentOS 7 / RHEL 7

Installer et configurer Check_MK Server sur CentOS 7

Installer et configurer KVM sur un serveur CentOS 8

Installer et configurer Memcached sur CentOS 8

Installer et configurer un serveur DHCP sur CentOS 8