Public | Automated Build

Last pushed: 2 years ago
Short Description
pxe server for windows and linux
Full Description

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
Docker Pull Command
Owner
ravihuang
Source Repository