Giter Club home page Giter Club logo

raspberry-pxe-centos-8's Introduction

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

raspberry-pxe-centos-8's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.