Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Still learning a bit about Vagrant, but here it goes. I have a pretty standard guest vm that has some software installed. I would like to access a few directories within the guest in a read/write fashion. So I added the config for a shared folder as follows:

config.vm.share_folder "test", "/home/vagrant/test", "./test"

Keep in mind I have content in my test folder. I need to be able to view and update that from the host. However, when I 'vagrant reload' with the empty host directory called test, all of the content on my guest is removed.

Is it possible to create a shared folder in which I can access content on the guest without destroying existing content?

share|improve this question
    
Shared folders share a folder on the host machine with the guest machine, not the other way around. –  heavyd Mar 2 '13 at 0:04
    
Thats what I was afraid of, thanks for the response. –  ConsultStan Mar 4 '13 at 17:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.