Skip to content

Rasbperry Pi: PXE Boot and installation of CentOS 8 using Kickstart

License

Notifications You must be signed in to change notification settings

spagu/raspberry-pxe-centos-8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry PI: PXE boot, CentOS 8 install with kickstart

pxeboot

Description

This is a simple setup of PXE Server from Rasperry PI connected in local network that will make netboot and install Centos 8.

Requirments and info

  • DHCP server router on IP: 192.168.1.254
  • Rasperry PI with at least 8Gb SD card on IP: 192.168.1.1
  • Raspberry info
Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux
  • VirtualBox, VMware, Hyper-V for testing boot (2GB Ram required)
  • Default password is passwored123

Note:

  • This will overwrite your current vsftpd configuration
  • This will overwrite your current dnsmasq configuration

Architecture

pxeboot

Installation

Tere are three ways installing it.

Ansible installation

Docker Installation

Manual Installastion

  1. Install packages:
apt install vsftpd dnsmasq wget rpm2cipo git
  1. Download CentOS 8 DVD ISO:
wget http://mozart.ee.ic.ac.uk/CentOS/8.0.1905/isos/x86_64/CentOS-8-x86_64-1905-dvd1.iso
  1. Download this repository:
git clone https://github.com/spagu/raspberry-pxe-centos-8.git
  1. Set up folders
mkdir -p /srv/isos/centos
mkdir -p /srv/ftpd
chown nobody:nogroup /srv/
  1. Mount DVD into a folder
mount -o loop CentOS-8-x86_64-1905-dvd1.iso /srv/isos/centos
  1. Get boot files
cp /srv/isos/centos/BaseOS/Packages/syslinux-* /tmp/bootfiles
cd /tmp/bootfiles
rpm2cpio syslinux-6.04-1.el8.noarch.rpm | cpio -idmv
rpm2cpio syslinux-tftpboot-6.04-1.el8.noarch.rpm | cpio -idmv
  1. Copy relevant files into locations

  2. Start services

systemctl start vsftpd
systemctl enable vsftpd
systemctl start dnsmasq
systemctl enable dnsmasq

Notes

Change default password

You can generate new password by doing command:

# openssl passwd -1 password123
$1$e4wrrGGX$tZPQKPsXjhNmbiGg53M441
#

then change it in kickstart file /srv/isos/centos8.ks

References

About

Rasbperry Pi: PXE Boot and installation of CentOS 8 using Kickstart

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published