Posts

Showing posts from June, 2024

Configure PXE Server on Centos7 for both UEFI&BIOS systems

 Install Centos 7  Download the ISO image of centos7 and create a VM using downloaded ISO image Once the VM is ready, logged into centos 7 and run the following command to update the system # yum update -y   Set a static ip for the server. In this case, it is 192.168.1.10 Disable Selinux on the server. You can do this by editing /etc/selinux/config file: # vim /etc/selinux/config   Make following changes SELINUX=disabled   Confogure Installation Media Install httpd packaged # yum install httpd Mount centos7 iso image to CDROM of VM Find path of CDROM using blkid cmd #blkid In my case, it is /dev/sr0 Make a directory to mout centos7 iso image # mkdir /mnt/centos7 #   mount -o loop,ro -t iso9660 /dev/sr0 /mnt/centos7 Copy the content of iso image to http server root # cp -r /mnt/centos7/* /var/www/html/centos7   #mkdir /var/www/html/kickstarts # cp /root/anaconda-ks.cfg   /var/www/html/kickstarts/...