Vagrant Synced Folder without reload?

后端 未结 2 1923
心在旅途
心在旅途 2020-12-19 16:22

I have a file on my host located at ~/ansible/provisioning/playbook.yml that corresponds to /vagrant/provisioning/playbook.yml on the guest. Every

相关标签:
2条回答
  • 2020-12-19 16:50

    According to this issue on github the fastest solution is to use geerlingguy/centos7 box.

    This box will build the guest additions.

    Tested - works smoothly!

    0 讨论(0)
  • 2020-12-19 16:55

    as thought rsync is enabled, the box centos/7 has rsync by default, this has been discussed before

    When using rsync, you can turn the rsync-auto command to automatically push any new changes from the host to the VM.

    If you want to use default virtual box shared folder feature, you can add the following in your Vagrantfile

    config.vm.synced_folder ".", "/vagrant", type: "virtualbox"
    
    0 讨论(0)
提交回复
热议问题