As we all know, vagrant add box when download from the external network, that speed ... (tears all that much), so had to use the download tool to download and add to the local then.
How to build Homestead : https://laravelacademy.org/post/19428.html
General treatment options:
vagrant box add boxName ./downloadBoxName.box
box name after adding boxName
./downloadBoxName.box downloaded to the local box
Normal so basically you can add up the box. However, box version number of this addition is 0, affecting most of the version number of the scene is not great. But when I use Laravel Homestead, the version here, there will be some other restrictions. So, if we can add the version number is not it would be better yet.
Add program with a version number (recommended) :
Create a file metadata.json
{ "name": "Laravel / Homestead", "versions": [{ "Version": "8.0.0", "Providers": [{ "name": "VirtualBox", "url" : "File: // D: /homestead.box" }] }] }
and then execute the following command
vagrant box add metadata.json
Description:
name
Add the name of the boxversion
:version numberproviders.name
: Web Hosting Typesproviders.url
: Box address
For laravel / homestead you can also modify the configuration files in the homestead:
git clone https://github.com/laravel/homestead.git Homestead
Modify Homestead / script / homestead.rb file, probably like 21 rows, modify the corresponding bit version> = 0 to
config.vm.box_version = settings['version'] ||= '>= 8.0.0'
Reference documents: