Installing Centos Via Pxe - Lenovo ThinkSystem HR330A User Manual And Hardware Maintenance Manual

Table of Contents

Advertisement

2.2 Installing CentOS via PXE

2.2.1 Preparing PXE Installation System
System Configuration
Figure 1: A Server running Ubuntu (15.04 or later) or CentOS 7.x
Configuring PXE Server
Installing necessary packages:
1.
Ubuntu 15.x:
# apt-get install -y isc-dhcp-server xinetd tftpd-hpa wget apache2
CentOS 7.x:
# yum install -y xinetd tftp tftp-server dhcp httpd wget createrepo
Adding (or modifying) the /etc/dhcp/dhcpd.conf file
2.
Ubuntu 15.x and CentOS 7.x:
# vi /etc/dhcp/dhcpd.conf
default-lease-time 600;
max-lease-time 600;
log-facility local7;
authoritative;
option arch code 93 = unsigned integer 16; # RFC4578
option domain-name-servers 8.8.4.4, 8.8.8.8;
subnet 172.168.1.0 netmask 255.255.255.0 {
range dynamic-bootp 172.168.1.30 172.168.1.254;
option broadcast-address 172.168.1.255;
option routers 172.168.1.23;
next-server 172.168.1.23;
class "pxeclients" {
match if substring (option vendor-class-identifier, 0, 9) = "AMPClient";
if option arch = 00:0b {
# Installing Centos
filename "/AMP/centos-repo/EFI/BOOT/grubaa64.efi";
129

Advertisement

Table of Contents
loading

Table of Contents