chef-solo とか vagrant とか (2)

ええと何故にここまでハマるんスか。
昨晩の継続ですが、以下で固まって

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.

いつまでたっても動かない、ということでついに virtualbox でナニに着手。
以降、色々ヤッてたのですが、virtualbox から削除しても駄目だったので遂に

$ rm -rf vagrant.d/.vagrant/machines/default
$ rm -rf ~/.vagrant.d

してしまうなど。もうやだ。
で、再度取得。

$ vagrant box add base http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-i386-v20130309.box
Downloading with Vagrant::Downloaders::HTTP...
Downloading box: http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-i386-v20130309.box
Extracting box...
Cleaning up downloaded box...
Successfully added box 'base' with provider 'virtualbox'!

で、vagrant up してみるなど。

$ vagrant up

無限 loop な予感満点なんですがorz
あら、でも VBoxHeadless がもの凄いイキオイでがりがり仕事してますね。と言ってる間に初めてコマンドが無事に終了したぞ。いやはや。

Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'base'...
[default] No guest additions were detected on the base box for this VM! Guest
additions are required for forwarded ports, shared folders, host only
networking, and more. If SSH fails on this machine, please install
the guest additions and repackage the box to continue.

This is not an error message; everything may continue to work properly,
in which case you may ignore this message.
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- /vagrant

接続してみます。

$ vagrant ssh
Welcome to your Vagrant-built virtual machine.
[vagrant@localhost ~]$ 

入れた。やれやれ。これで ChefSolo 云々がアレ。

導入云々について纏めておきます

基本的には

というカンジ。

それにしても

去年の初夏にテストドリブンなインフラが云々って言ってたのを思いだしてたり。
つうか、VBoxHeadless なプロセスは vagrant なナニが終わっても生きてるのか。