GithubHelp home page GithubHelp logo

lapd-devops / pxe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ravihuang/pxe

0.0 1.0 0.0 11 KB

Docker Container for PXE Server, Support CentOS, Ubuntu, Freebsd, Debian, CoreOS, Panabit

Shell 35.66% Dockerfile 64.34%

pxe's Introduction

PXE

Docker Container for PXE Server, Support CentOS, Ubuntu, Freebsd, Debian, CoreOS, Windows, ......

Build Images:

[root@docker ~]# cd pxe && docker build -t ravihuang/pxe .

Start container:

[root@docker ~]# cat /etc/system-release
CentOS Linux release 7.2.1511 (Core)
[root@docker ~]# ls /mnt/hgfs/tftpboot/ -l
total 1183590
-rwxrwxrwx 1 root root         84 Jan 15  2013 boot.msg
drwxrwxrwx 1 root root       4096 Jan 21 23:42 centos
drwxrwxrwx 1 root root       8192 Jan 25 11:13 coreos
drwxrwxrwx 1 root root          0 Sep 11 11:30 debian
drwxrwxrwx 1 root root          0 Sep  9  2013 freebsd
drwxrwxrwx 1 root root          0 Aug  7  2013 freebsd.panabit
-rwxrwxrwx 1 root root        142 Jan 15  2013 grub.conf
-rwxrwxrwx 1 root root      24576 Jan 15  2013 isolinux.bin
-rwxrwxrwx 1 root root     165080 Jan 15  2013 memtest
-rwxrwxrwx 1 root root     264192 Aug  7  2013 pxeboot
-rwxrwxrwx 1 root root      26582 Nov 15  2012 pxelinux.0
drwxrwxrwx 1 root root          0 Aug  1  2014 pxelinux.cfg
-rwxrwxrwx 1 root root     151230 Jan 15  2013 splash.jpg
drwxrwxrwx 1 root root       4096 Jun  6  2014 ubuntu
-rwxrwxrwx 1 root root     162860 Jan 15  2013 vesamenu.c32

For linux:
[root@docker ~]# docker run --name pxe_lin  --net host -v /mnt/hgfs/tftpboot:/tftpboot -v /mnt/cdrom:/mnt/cdrom -d ravihuang/pxe 172.16.5.114
For Windows:
[root@docker ~]# docker run --name pxe_win  --net host -v /mnt/hgfs/tftpboot/winpe:/tftpboot -d ravihuang/pxe 172.16.5.114

172.16.5.114 is dhcp listen address

CoreOS cloud config files

# curl -O http://172.16.5.114/coreos/config/cloud-config.yml -H 'X-Forwarded-For: 192.168.103.109'  -H 'X-Real-Ip: 172.16.5.109'

HTTPS CSR

#cd /etc/nginx/
#openssl genrsa -des3 -out server.key 1024
#openssl req -new -key server.key -out server.csr
#openssl rsa -in server.key -out server_nopwd.key
#openssl x509 -req -days 365 -in server.csr -signkey server_nopwd.key -out server.crt

pxe's People

Contributors

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