LoginSignup
4
4

More than 5 years have passed since last update.

MacbookAirをネットワークブートサーバにする君作った

Last updated at Posted at 2014-09-20

download

環境

構成図

ネットワーク図.png

準備

  1. brew install dnsmasq
  2. Macbook AirにUSB LANアダプターを接続 (en4として認識される)
  3. en4のIPアドレスを192.168.9.9に設定
  4. USB LANアダプターと、ネットワークブートさせたいPCをLANケーブルで直繋ぎする

CloneZillaをネットワークブートさせたい場合

  1. cd clonezilla
  2. ./extract_clonezilla_i486.sh

を実行し、以下ファイルが作成される。

  • filesystem.squashfs
  • initrd.img
  • vmlinuz

起動/終了

起動の仕方

  1. ./startup.sh で起動、ctrl+Cでdnsmasq停止

終了の仕方

  1. ./stop.sh で子プロセス終了

注意点

  • CentOS7はネットワークブート成功していない。後日対応するかも
  • PXEブートの途中で止まる場合、PXEブートイメージを切り替えてください。
dnsmasq.conf
  # PXEブート完了しない場合は、以下切り替えて試すこと。
- dhcp-boot=undionly.kpxe
+ dhcp-boot=ipxe.kkpxe
  #dhcp-boot=ipxe.kkkpxe
  • インターネット共有をしていると以下エラーが出るので同時にはしないこと。

dnsmasq: failed to bind DHCP server socket: Address already in use

インターネット共有.png

デフォルトゲートウェイの変更

route add default gw 192.168.xxx.xxx
4
4
0

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
4
4