2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

iPXEでCentOS5,6インストーラをboot

Posted at

カスタム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がダウンロードできる。

0.png

起動方法

1.1.png

1.2.png

1.3.png

3centos7.png

1.5.png

1.4.png

2
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?