Louie NRT Story

[Cloud_Training] Linux PXE 본문

서버시스템

[Cloud_Training] Linux PXE

hyeok0724.kim@gmail.com 2018. 10. 4. 18:40
반응형

Linux PXE(Pre-boot eXecution Environment)

The environment can help computer booting by network interface


yum install -y dhcp tftp-server httpd syslinux system-config-kickstart


mkdir /cd

mount /dev/cdrom /cd

mkdir /var/www/html/cent6

cp -a /cd/ /var/www/html/cent6


cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf


vi /etc/dhcp/dhcpd.conf




Check the dhcpd setting



 cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/

mkdir /var/lib/tftpboot/pxelinux.cfg

vi /etc/xinetd.d/tftp



mkdir /var/lib/tftpboot/cent6

cp –a /var/www/html/cent6/cd/images/pxeboot/vmlinuz /var/lib/tftpboot/cent6

cp –a /var/www/html/cent6/cd/images/pxeboot/initrd.img /var/lib/tftpboot/cent6


vi /var/lib/tftpboot/boot.txt


vi /var/lib/tftpboot/pxelinux.cfg/default



service iptables stop

service httpd start

service dhcpd start

service xinetd start



*Tip about xinetd




Start other CenTOS box


Choose the URL Setup and input the OS distributing server IP and path


Finally, Power on this CenTOS


반응형
Comments