環境
OS:Windows10 Pro
Vagrant:2.2.4
1.背景
Laravel5.x系の環境を利用していたが、laravel6.x系をインストールするのに、Homesteadを新しくしようとしたら、BOXのインストールエラーが出てしまったので、その時の対応メモ
$ vagrant box add laravel/homestead
homestead: Calculating and comparing box checksum...
The specified checksum type is not supported by Vagrant: sha512.
Vagrant supports the following checksum types:
md5, sha1, sha256
2.対応
どうやらVagrant2.2.6からはCheckSumのサポートが変わった模様。Vagrantを2.2.9(2020.05 最新)にアップデートする。
VagrantのWindowsインストーラーを使ってアップデート(インストールすると、古いバージョン情報もクリーンしてくれるので、手動クリーニング作業などは不要でした)
・Vagrantのインストーラー
https://www.vagrantup.com/downloads.html
C:\Users>vagrant -v
Vagrant 2.2.9
以前のバージョンで利用していたローカルLaravel5.8系のサイトもVagrant upで起動・確認し影響ないことを確認。
再度実行
C:\Users\murat>vagrant box add laravel/homestead
==> box: Loading metadata for box 'laravel/homestead'
box: URL: https://vagrantcloud.com/laravel/homestead
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) hyperv
2) parallels
3) virtualbox
4) vmware_desktop
Enter your choice: 3
==> box: Adding box 'laravel/homestead' (v9.5.1) for provider: virtualbox
box: Downloading: https://vagrantcloud.com/laravel/boxes/homestead/versions/9.5.1/providers/virtualbox.box
Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com
box:
box: Calculating and comparing box checksum...
==> box: Successfully added box 'laravel/homestead' (v9.5.1) for 'virtualbox'!
HomeStead + Vagrantで仮想サーバ起動してブラウザ経由でPHPファイル表示できたので、とりあえずここまで。