LoginSignup
25

More than 5 years have passed since last update.

centos7.0のvagrant boxを作るpacker templates.jsonを作った

Last updated at Posted at 2014-07-08

centos7.0出ましたね!!!!!!11111
ということで、勢いに任せてcentos7.0用のvagrant boxが作れるpackerテンプレートを書いた。
社内向けでpackerは使っていてcentos5.[5-6]と、scientific linux 6.5とかのは作っていたのだけれど、完全に趣味っぽい感じで作るのは初めてだった。
流れ的には、
-> centos7.0のisoを落としてくる
-> virtualbox で手動インストールして、anaconda-ks.cfgの構成を把握する
-> RHEL5,6系のpacker templatesのshellで実行するところと差分があるかどうかをちょろっと調べる
-> ざっと書いてみて、packer buildしてみて、こけるかどうか試す
-> こけたら何が駄目だったのか調べる
-> それでも駄目だったら最後の手段的に、Box-Cutter(https://github.com/box-cutter )を参考にする
という感じでなんとかできた。
作ったものはここにあげた
https://github.com/eigo-s/packer_templates/tree/master/centos7.0/x86_64

とりあげずvagrant add -> init -> up -> sshまではできたのでだけれど、VBoxGuestAdditionsのインストールがうまくいかず、共有フォルダのところでvagrant upがこけるので、今後の課題としたい。
こちらからは以上です。

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
25