vagrant環境のアップデート ( 1.8.6 -> 1.9.1 )
旧サイト記事の移行
vagrant 自体をアップデート(1.8.6 -> 1.9.1)して、vagrant up したらエラーになったのでメモ書き。 基本的には、vagrantの新しいバージョンをダウンロードして上書きでインストールすれば良さそう。 https://www.vagrantup.com/docs/installation/upgrading.html で、アップデートして起動した際のエラーメッセージ。
Vagrant failed to initialize at a very early stage: The plugins failed to initialize correctly. This may be due to manual modifications made within the Vagrant home directory. Vagrant can attempt to automatically correct this issue by running: vagrant plugin repair If Vagrant was recently updated, this error may be due to incompatible versions of dependencies. To fix this problem please remove and re-install all plugins. Vagrant can attempt to do this automatically by running: vagrant plugin expunge —reinstall Error message given during initialization: Unable to resolve dependency: user requested ‘vagrant-vbguest (> 0)’
ということで、メッセージに従って、 vagrant plugin repair を実行すると、
Repairing currently installed plugins. This may take a few minutes… Fetching: micromachine-2.0.0.gem (100%) Fetching: vagrant-hostsupdater-1.0.2.gem (100%) Fetching: vagrant-vbguest-0.13.0.gem (100%) Installed plugins successfully repaired!
修復できた模様。 vagrant up でゲストOSが起動できました。