Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Disable /vagrant mount in the guest #476

Closed
Aguay-val opened this issue Feb 11, 2019 · 2 comments
Closed

Disable /vagrant mount in the guest #476

Aguay-val opened this issue Feb 11, 2019 · 2 comments

Comments

@Aguay-val
Copy link

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
Copy link
Contributor

ccope commented Feb 11, 2019

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

@Aguay-val
Copy link
Author

Oh thank you !

I thought it was a vagrant-lxc behavior.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants