Download vagrant box file locally from atlas and configuring it

前端 未结 8 2503
甜味超标
甜味超标 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:36

    Instructions for OSX/Fusion:

    wget https://vagrantcloud.com/hashicorp/boxes/precise64/versions/1.1.0/providers/vmware_fusion.box
    # For some reason, the downloaded filename was set to an uuid
    # mv  vmware_fusion.box
    vagrant box add hashicorp/precise64 vmware_fusion.box
    cd vagrant.d/boxes/hashicorp-VAGRANTSLASH-precise64
    mv 0 1.1.0
    echo -n "https://app.vagrantup.com/hashicorp/boxes/precise64" > metadata_url
    vagrant box list
    

提交回复
热议问题