- CD or USB、ネットワークなどからブートする。
- TFTPサーバを建てなくてもhttp://経由でイメージのダウンロードが可能。
- CentOS7はネットワークブート途中で止まった・・・
- イメージサイズは1MBと小さい。
カスタムISOイメージを作成できる。
ROM-o-matic.eu | Generate iPXE images | open source network boot firmware
コマンドリファレンス
iPXE - open source boot firmware [cmd]
ソース
netboot.pxe
# !ipxe
dhcp
set dns 8.8.8.8
# env
set img_server http://ftp.riken.jp/Linux/centos
set cent_boot_opt_msg Enter boot option (ex: ks=http://192.168.11.2:8000/sample.ks)
:boot_menu
menu
item centos7_x86_64 Boot CentOS 7_x86_64
item centos6_x86_64 Boot CentOS 6_x86_64
item centos6_i386 Boot CentOS 6_i386
item centos5_x86_64 Boot CentOS 5_x86_64
item centos5_i386 Boot CentOS 5_i386
#
item ipxe_config Enter iPXE config
item ipxe_shell Enter iPXE shell
choose --default config --timeout 30000 target && goto ${target}
:ipxe_shell
shell
goto boot_menu
:ipxe_config
config
goto boot_menu
###########
# centos
###########
:centos7_x86_64
echo ${cent_boot_opt_msg} && read cent_bootopt
initrd ${img_server}/7/os/x86_64/isolinux/initrd.img
kernel ${img_server}/7/os/x86_64/isolinux/vmlinuz ${cent_bootopt}
boot
:centos6_x86_64
echo ${cent_boot_opt_msg} && read cent_bootopt
initrd ${img_server}/6/os/x86_64/isolinux/initrd.img
kernel ${img_server}/6/os/x86_64/isolinux/vmlinuz ${cent_bootopt}
boot
:centos5_x86_64
echo ${cent_boot_opt_msg} && read cent_bootopt
initrd ${img_server}/5/os/x86_64/isolinux/initrd.img
kernel ${img_server}/5/os/x86_64/isolinux/vmlinuz ${cent_bootopt}
boot
:centos6_i386
echo ${cent_boot_opt_msg} && read cent_bootopt
initrd ${img_server}/6/os/i386/isolinux/initrd.img
kernel ${img_server}/6/os/i386/isolinux/vmlinuz ${cent_bootopt}
boot
:centos5_i386
echo ${cent_boot_opt_msg} && read cent_bootopt
initrd ${img_server}/5/os/i386/isolinux/initrd.img
kernel ${img_server}/5/os/i386/isolinux/vmlinuz ${cent_bootopt}
boot
ISOイメージ作成方法
上のスクリプトを貼り付けてProseed押すとisoがダウンロードできる。