vagrantのbox(CentOS6.4)を自作したかったので、veeweeを始めてみた。
- virtualbox ・・・ 4.2.12
- veewee ・・・ 0.3.7
- box template ・・・ CentOS-6.4-i386-minimal
veeweeの使用方法は「veewee」でググればたくさん出るので割愛するが、(僕はRyuzeeさんのサイトを参考にした)
bundle exec veewee vbox build した際に、VirtualBox側で以下のMessageが表示され、buildが止まっていた。
Unable to boot - please use a kernel appropriate for your CPU
CentOS6系はCPUにPAE機能が必須らしく、VirtualBoxの設定で「PAE/NXを有効化」をONしないと
上記エラーが発生する模様。
veeweeでPAEを有効にする場合は、definitionsディレクトリ以下のdefinition.rbに
:pae => 'on',
を追加する。PAEが有効になって無事buildが正常終了した。