Differences
This shows you the differences between two versions of the page.
linux_wiki:os_install_pxe_boot [2016/03/29 21:47] billdozor [OS Install: PXE Boot] |
linux_wiki:os_install_pxe_boot [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== OS Install: PXE Boot ====== | ||
- | |||
- | **General Information** | ||
- | |||
- | In order to install an OS via PXE boot, a TFTP and DHCP server are required.\\ | ||
- | Using PXE allows for clients to begin a network installation without any net-install ISO. | ||
- | |||
- | * Reference Source: http:// | ||
- | |||
- | **Checklist** | ||
- | * Distro(s): Enterprise Linux 7 | ||
- | * Other: Installation Server Created (NFS/ | ||
- | * Example: Using [[linux_wiki: | ||
- | |||
- | ---- | ||
- | |||
- | ====== TFTP Server ====== | ||
- | |||
- | * Install the required packages< | ||
- | * Allow TFTP access (set disable = no)<code bash>vim / | ||
- | service tftp | ||
- | { | ||
- | ....some other variables... | ||
- | disable = no | ||
- | ....some other variables... | ||
- | }</ | ||
- | * Start and Enable xinetd< | ||
- | systemctl enable xinetd</ | ||
- | * Allow through firewall (if enabled)< | ||
- | firewall-cmd --reload</ | ||
- | |||
- | ---- | ||
- | |||
- | ====== DHCP Server ====== | ||
- | |||
- | * Install required package< | ||
- | * Edit DHCP config and customize per your network< | ||
- | |||
- | subnet 192.168.1.0 netmask 255.255.255.0 { | ||
- | option routers 192.168.1.254 ; | ||
- | range 192.168.1.240 192.168.1.250 ; | ||
- | next-server 192.168.1.150 ; | ||
- | filename " | ||
- | } | ||
- | </ | ||
- | * subnet => specify the network | ||
- | * netmask => mask for your network | ||
- | * option routers => gateway for the network | ||
- | * range => start and ending IP to hand out via DHCP | ||
- | * next-server => IP of the TFTP server | ||
- | * filename => file that should be offered to systems doing PXE boot (relative to the TFTP server' | ||
- | * Start and enable DHCP< | ||
- | systemctl enable dhcp</ | ||
- | |||
- | ---- | ||
- | |||
- | ====== Create PXE Content ====== | ||
- | |||
- | Now that both required services are setup, it is time to create the PXE boot content to be handed out over TFTP. | ||
- | |||
- | * Install a required package< | ||
- | |||
- | * Create the PXE Linux directory structure< | ||
- | mkdir / | ||
- | |||
- | * Copy the pxelinux.0 data file< | ||
- | |||
- | * Create the PXE Linux default config file (replace '< | ||
- | |||
- | default menu.c32 | ||
- | prompt 0 | ||
- | timeout 600 | ||
- | |||
- | menu title ########## PXE Boot Menu ########## | ||
- | label 1 | ||
- | menu label ^1) Install CentOS 7.2 x86-64 | ||
- | kernel centos7/ | ||
- | append initrd=centos7/ | ||
- | </ | ||
- | * PXE Boot Menu Reference Source: https:// | ||
- | |||
- | * To include a splash image when doing PXE, copy the image from the local system< | ||
- | |||
- | * Copy the files (images/ | ||
- | cp / | ||
- | cp / | ||
- | |||
- | * Restart dhcpd and xinetd< | ||
- | systemctl restart xinetd</ | ||
- | |||
- | \\ | ||
- | **The system is now ready to accept incoming PXE boot requests.** | ||
- | |||
- | / | ||
- | * centos7 (directory) | ||
- | * pxelinux.0 (data file) | ||
- | * pxelinux.cfg (directory) | ||
- | * splash.xpm.gz (splash image) | ||
- | |||
- | / | ||
- | * initrd.img (centos 7 initrd) | ||
- | * vmlinuz (centos 7 boot kernel) | ||
- | |||
- | / | ||
- | * default (config file) | ||
- | |||
- | ---- | ||