Last active
January 14, 2016 09:12
-
-
Save qrpike/8a4095c5fa0e0360deff to your computer and use it in GitHub Desktop.
Install CoreOS pxe boot server on Ubuntu14.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Also look at: http://askubuntu.com/questions/581772/how-to-install-and-configure-a-tftp-server-on-14-04 | |
HOSTIP=192.168.30.31 | |
sudo apt-get install xinetd tftpd tftp nginx -y | |
# may need to edit /etc/inetd.conf - last param /srv/tftpboot/ to /tftpboot/ | |
update-inetd --enable BOOT | |
ufw allow 69 | |
ufw allow 69/udp | |
mkdir -p /tftpboot/pxelinux.cfg/ | |
ln -s /usr/lib/syslinux/pxelinux.0 /tftpboot/pxelinux.0 | |
cd /tftpboot/ | |
wget http://stable.release.core-os.net/amd64-usr/current/coreos_production_pxe.vmlinuz | |
wget http://stable.release.core-os.net/amd64-usr/current/coreos_production_pxe.vmlinuz.sig | |
wget http://stable.release.core-os.net/amd64-usr/current/coreos_production_pxe_image.cpio.gz | |
wget http://stable.release.core-os.net/amd64-usr/current/coreos_production_pxe_image.cpio.gz.sig | |
cat << EOF >/tftpboot/pxelinux.cfg/default | |
default coreos | |
prompt 1 | |
timeout 15 | |
display boot.msg | |
label coreos | |
menu default | |
kernel coreos_production_pxe.vmlinuz | |
append initrd=coreos_production_pxe_image.cpio.gz cloud-config-url=http://$HOSTIP/cloud-config.yml | |
EOF | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment