Giter Site home page Giter Site logo

docker-fai's Introduction

fai

Code for Docker image of FAI Fully Automatic Installation 4.3.3. With this image you may create FAI ISO's for Trusted Builds.

  • To use this image:

docker run --name fai --privileged -it ricardobranco/fai:4.3.3

  • Inside the container you must run fai-setup:

fai-setup -vl

  • When the command is finished you may exit the container and commit a new image for reuse:

docker commit fai fai-setup && docker rm -v fai

  • Then you can use the fai-setup image with your FAI configuration:

docker run --name fai -v ~/fai:/srv/fai/config --privileged -it fai-setup

NOTE: There's an example FAI config in the faiconfig directory to create an ISO that installs Ubuntu 16.04 and Docker.

  • Inside the container you must run the fai-mirror.sh script to create a suitable mirror:

fai-mirror.sh HOSTNAME

NOTE: The HOSTNAME argument must be already defined in faiconfig/class/50-host-classes.

  • Validate the mirror with the checkpkgs.sh script to check its integrity:

checkpkgs.sh /tmp/mirror

  • You may commit a new fai-mirror image or save the mirror with docker-cp:

`docker cp fai:/tmp/mirror mirror.HOSTNAME

  • Edit the menuentry at /etc/fai/grub.cfg. Change the XXX host with the name of the host used on faiconfig/class/50-hosts-classes.

vi /etc/fai/grub.cfg

NOTE: Don't forget to also change the Grub user and password, which defaults to "fai".

  • Inside the container, run the fai-cd.sh script to generate a FAI ISO:

fai-cd.sh HOSTNAME

  • The ISO is /tmp/fai-full.iso. Use docker-cp to get it from the container:

docker cp fai:/tmp/fai-full.iso .

  • At this point you may exit and remove the container.

  • To reliably burn the ISO to an USB stick, use the burniso.sh script provided in the utils/ directory:

burniso.sh /tmp/fai-full.iso

NOTES:

  • This image is based on Ubuntu 16.04 to create Ubuntu 16.04 ISO images. With minimal modifications (Dockerfile and fai/NFSROOT) it's possible to create Debian 7 & 8 images, as well as Ubuntu 14.04.

  • With a bit of tweaking, it should be possible to setup a container as a FAI server over the network.

docker-fai's People

Contributors

ricardobranco777 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.