Download vagrant box file locally from atlas and configuring it

前端 未结 8 2487
甜味超标
甜味超标 2020-12-12 09:19

I want to download a vagrant box file from Atlas for using it later locally with my vagrant file. How can I do this, and how can I configure it?

8条回答
  •  眼角桃花
    2020-12-12 09:48

    Download virtualbox.box:

    https://app.vagrantup.com/laravel/boxes/homestead/versions/6.4.0/providers/virtualbox.box
    

    You can change the version(6.4.0) of homestead box with the Current Version.

    Current version: 6.4.0.

    Check for the latest version here: https://app.vagrantup.com/laravel/boxes/homestead

    After downloading the box, rename it to virtualbox.box

    Don't forget to include the .box extension.

    Add the downloaded homestead box to vagrant:

    vagrant box add laravel/homestead file:///f:/virtualbox.box
    

    Change the Drive( c: or d: or e:) or Path(c:/folder1/folder2/virtualbox.box) to the location where you have stored your downloaded homestead box.

    You will get success massage like image below:

    Update homestead box

    Navigate to vagrant directory:

    c:/users/YourUserName/.vagrant.d/boxes/laravel-VAGRANTSLASH-homestead

    After that, Create a file called metadata_url

    NOTE: There is no extension for metadata_url

    Then add the link below and save the file

    https://app.vagrantup.com/laravel/homestead
    

    Do not add a newline after link in above file.

    Rename folder 0 to 6.4.0

    6.4.0 is your homestead box version.

    And it's Done. Hope it help.

提交回复
热议问题