szaydel
7/16/2013 - 4:29 AM

ipxe-boot-smartOS

#!ipxe
 
 
echo IP address: ${net0/ip} ; echo Subnet mask: ${net0/netmask}
set fileserver <YOUR iPXE WEBSERVER HERE> 
menu You choose now!
 item local Local Boot
 item smartos SmartOS
 
 item shell iPXE shell
 item reboot reboot
 
choose --default local --timeout 15000 target && goto ${target}
 
:local
exit
 
 
:smartos
kernel http://${fileserver}/tftpboot/smartos/platform/i86pc/kernel/amd64/unix -B console=text,standalone=true,noimport=true,root_shadow='$5$2HOHRnK3$NvLlm.1KQBbB0WjoP7xcIwGnllhzp2HnT.mDO7DpxYA'
initrd http://${fileserver}/tftpboot/smartos/platform/i86pc/amd64/boot_archive
boot

## root_shadow string is password "root"
## adopted from: http://nahamu.github.com/2011/08/17/smartos-pxe.html