Giter Site home page Giter Site logo

okj9dddd / ubuntu-netboot-tftp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from analytically/ubuntu-netboot-tftp

0.0 1.0 0.0 50.11 MB

Automating server installation by using PXE boot and the Ubuntu netboot image over TFTP.

License: Apache License 2.0

Shell 100.00%

ubuntu-netboot-tftp's Introduction

ubuntu-netboot-tftp

Automating server installation by using PXE boot and the Ubuntu 14.04 LTS netboot image over TFTP.

Requirements

  • a PXE-capable BIOS and NIC
  • DHCP server serving 172.16.0.0/24 ip's
  • TFTP server (see below) at 172.16.0.1

Usage

  • customize hostnames (mac address to hostname mappings)
  • customize preseed.cfg with your values

Why 172.16.x.x?

It doesn't get in the way of my home networking! You're welcome to change this in postpreseed.sh.

PXE

The PXE boot automates server installation. We use a preseed config delivered over TFTP. See ubuntu-installer/amd64/boot-screens/txt.cfg (line 6).

Setup with pfSense (tested on versions 2.0.3 and 2.1)

  • Install the TFTP package (System > Packages)
  • Under System > Advanced > Firewall / NAT deselect any interface for TFTP Proxy and save
  • Under Services > TFTP select the LAN interface for TFTP Daemon Interfaces and save
  • SSH into your pfSense appliance (enable SSH access and add a rule to allow port 22)
  • Install curl: pkg_add -r curl and rehash: rehash
  • curl -sL https://github.com/analytically/ubuntu-netboot-tftp/tarball/master | tar -xf -
  • cd analytically-ubuntu-netboot-tftp-4753507ab5c9bca0599c85f0401108c1059da0c9/ (the directory has another hash)
  • mv analytically-ubuntu-netboot-tftp-4753507ab5c9bca0599c85f0401108c1059da0c9/* /tftpboot
  • rm -R analytically-ubuntu-netboot-tftp-4753507ab5c9bca0599c85f0401108c1059da0c9
  • Configure Enable network booting under the LAN DHCP server config under Services > DHCP Server, see below:

tftp booting

  • click Save, and Apply changes, this will restart the DHCP service on your pfSense. You can now use PXE/Network boot.

After installation

Warning

The ubuntu-installer/amd64/initrd.gz archive contains a workaround to get TFTP and preseed.cfg working together (see /usr/lib/fetch-url/tftp) with pfSense. The bug in debian-installer-utils is reported here.

License

Licensed under the Apache License, Version 2.0.

Copyright 2013-2014 Mathias Bogaert.

ubuntu-netboot-tftp's People

Contributors

analytically avatar

Watchers

James Cloos 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.