Windows
vagrant
centos7

Vagrant 1.9.7 で CentOS7.3 の bento 使ったらエラーになったよ(解決済み)

とりあえず

VagrntでCentOS6.7を常に愛用しているのですが、そろそろ7系も多少は触っておかねばと思いつつ、また少しハマルの巻。

Vagrant 1.9.7
bento/centos-7.3

いつもの手順

まずboxを追加する。

C:\vagrant>vagrant box add https://app.vagrantup.com/bento/boxes/centos-7.3
==> box: Loading metadata for box 'https://app.vagrantup.com/bento/boxes/centos-7.3'
This box can work with multiple providers! The providers that it
can work with are listed below. Please review the list and choose
the provider you will be working with.

1) parallels
2) virtualbox
3) vmware_desktop

Enter your choice: 2
==> box: Adding box 'bento/centos-7.3' (v2.3.7) for provider: virtualbox
    box: Downloading: https://vagrantcloud.com/bento/boxes/centos-7.3/versions/2.3.7/providers/virtualbox.box
    box: Progress: 100% (Rate: 735k/s, Estimated time remaining: --:--:--)
==> box: Successfully added box 'bento/centos-7.3' (v2.3.7) for 'virtualbox'!

C:\vagrant>vagrant box list
bento/centos-7.2   (virtualbox, 2.3.1)
bento/centos-7.3   (virtualbox, 2.3.7)

Vagrantfile に

いっつもの定義を書いて…

config.vm.define :cent73 do |cent73|
  cent73.vm.box = "bento/centos-7.3"
  cent73.vm.network :private_network, ip: "192.168.11.222"
  cent73.vm.provider "virtualbox" do |v|
    v.customize ["modifyvm", :id, "--memory", 512]
  end
end

立ち上げると…

The executable 'powershell' Vagrant is trying to run was not
found in the %PATH% variable. This is an error. Please verify
this software is installed and on the path.

ほえ?なんじゃらほいと?powershellが実行できないとなと?

https://github.com/mitchellh/vagrant-aws/issues/363

環境変数(PATH)にpowershellのpathを追加しろとのことなので追加する。

c:\Windows\System32\WindowsPowerShell\v1.0

これで問題なしと!!