Is there any way to clone a vagrant box that is already installed

后端 未结 2 578
野性不改
野性不改 2020-12-22 18:15

I must have the same VM in other computers but I don\'t want to download the whole box, php mysql, etc...

I have a box already configured the way it should be and I

2条回答
  •  无人及你
    2020-12-22 19:01

    You just have to download the VM box only one time and make the all changes and configurations that you need and then re-package this one on a new box called "myVM.box".

    Then you comment in the Vagrantfile the following line

    #config.vm.box_url = "https://site_of_boxes..."
    

    and used

    config.vm.box = "myVM"
    

    It starts up without download any VM.

提交回复
热议问题