fgrehm / vagrant-lxc

LXC provider for Vagrant
MIT License
1.21k stars 181 forks source link

Disable /vagrant mount in the guest #476

Closed Aguay-val closed 5 years ago

Aguay-val commented 5 years ago

Hi there,

I'm using vagrant-lxc since a while but now i'm facing a problem. I'd like to disable the mount of the "/path/to/project" into "guest:/vagrant".

By default, all the time you launch a new vagrant lxc container, vagrant lxc create a mount entry as follow : lxc.mount.entry=/home/aguay/Workspace/test vagrant none bind,create=dir 0 0

Even if i don't specify any "mount entry" in my Vagrantfile this folder is always added to my lxc config file.

Is there anyway to disable it ? it could lead to a security issue. Is a pretty bad idea, in my opinion, to be able to change the Vagrantfile into the guest.

Thanks

ccope commented 5 years ago

This is default vagrant behavior. You can disable it with config.vm.synced_folder '.', '/vagrant', disabled: true

Aguay-val commented 5 years ago

Oh thank you !

I thought it was a vagrant-lxc behavior.