Saturday, May 30, 2015

virtualbox - Vagrant synced folders aren't case sensitive

For our web stack, we are moving from a Windows Server to CentOS. To facilitate development, we're utilizing Vagrant to run CentOS VMs locally. We're using Vagrant's Synced Folders feature to allow devs to use their favorite IDEs on their host machine, but we're finding that one key feature is missing from this setup: file system case sensitivity.



The synced folder inside the VM apparently takes on the properties of the host's file system, so if I'm developing from a Windows machine, or even OSX, the file system isn't case sensitive. This is a big issue, as our production servers will be pure CentOS, and its file system will be case sensitive.



Case sensitivity is one of the main reasons we wanted to have a local VM. We want to prevent "It works on my machine!"



Some workarounds we've considered or tried:




  • Use lsyncd to sync from the vagrant share to a location within the VM that is case sensitive



    • updating files on the host doesn't seem to generate the events in the VM that lsync listens to


  • Make a case-sensitive partition on the host


    • (Doesn't work for Windows)


  • Use samba



    • this may be an option, but we haven't vetted it yet.




Is there a better way? Note that we have developers using Windows, OS X, and Ubuntu, and the solution needs to work everywhere.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...