Skip to content

Instantly share code, notes, and snippets.

@robinsmidsrod
Created March 25, 2011 10:12
Show Gist options
  • Save robinsmidsrod/886646 to your computer and use it in GitHub Desktop.
Save robinsmidsrod/886646 to your computer and use it in GitHub Desktop.
My work-in-progress ubuntu install iPXE script
#!ipxe
echo
echo Installing Ubuntu for ${hostname} from SAN
# Setup iSCSI root path
set root-path iscsi:nas.smidsrod.lan::::iqn.2011-02.lan.smidsrod:${hostname}.boot.ubuntu
set skip-san-boot 1
set keep-san 1
# Setup PXELinux options
# See http://syslinux.zytor.com/wiki/index.php/PXELINUX for details
#set 209:string pxelinux.cfg/default
#set 210:string http://${next-server}/tftp/ubuntu-install/
#set filename ${210:string}pxelinux.0
# Hook iSCSI target
sanboot ${root-path}
# Boot kernel+initrd for Ubuntu install
kernel http://boot.smidsrod.lan/ubuntu-10.10-amd64-server/boot/linux
initrd http://boot.smidsrod.lan/ubuntu-10.10-amd64-server/boot/initrd.gz
imgargs linux ks=http://boot.smidsrod.lan/ubuntu-10.10-amd64-server/boot/ks.cfg
boot
echo Booting failed, dropping to shell
shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment