Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zorbathut/5ecf93e61b015854b41510a69087e7c4 to your computer and use it in GitHub Desktop.
Save zorbathut/5ecf93e61b015854b41510a69087e7c4 to your computer and use it in GitHub Desktop.
Boot Ubuntu x64 installer directly from the network. Only iPXE needed
#!ipxe
#
# This should be startable from ipxe itself with the following commands:
#
# dhcp
# chain http://zorbathut.github.io/ipxe_ubuntu_amd64
#
# Obviously you'll have to trust that I'm not going to change any URLs out from under you; if you don't trust that, just use this file directly.
#
dhcp
echo Starting Ubuntu x64 installer for ${hostname}
set base-url http://archive.ubuntu.com/ubuntu/dists/xenial/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64
kernel ${base-url}/linux
initrd ${base-url}/initrd.gz
#imgargs linux auto=true url=http://yourserver/some/path/preseed.cfg
boot ||
# If everything failed, give the user some options
echo Boot from ${base-url} failed
prompt --key 0x197e --timeout 2000 Press F12 to investigate || exit
shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment