News for hackers. Stuff that matters.
Re:Why Vagrant? by codelust on Sunday December 01, 2013 @02:46AM (#6826535)
Hey Mitchell,

Thank you for producing such an awesome piece of software. I have been doing my local development on a Vagrant box for about a year now and in that time I have been able to move from OS X to Linux almost seamlessly thanks to Vagrant.

The only problem I have with it is the slowness of the default shared folders mechanism. Guess I need to bite the bullet one of these days switch to NFS.

Re:Why Vagrant? by mitchellh on Sunday December 01, 2013 @11:17AM (#6827850)
Howdy. Thanks, and I hear you with the synced folders stuff.

In the next version of Vagrant (1.4), synced folder implementations can actually be standalone plugins: https://twitter.com/mitchellh/status/405442194573516801

This will allow us to much more quickly add in more implementations of this mechanism, some of which may provide excellent performance at the expense of perhaps being more difficult to setup or slower to start up. But the importance is that the framework is now _there_.

I think we'll see this improve greatly. :)

Re:Why Vagrant? by rschmitty on Sunday December 01, 2013 @09:00AM (#6827280)
This kinda goes against the grain of Vagrant, but VMware + NFS + PHP still seemed slow to me and I switched things around to use Samba. Now my code/tests run "locally" to the VM and I edit code over samba
Re:Why Vagrant? by aidos on Sunday December 01, 2013 @06:10AM (#6826862)
Vagrant makes the nfs setup very easy to do. The performance difference is day and night when you have disk access. Even things like 'git status' is significantly faster. If you install the vb guest plugin it will make things even easier [1]. Issue I've run into is that I any get it working on a colleagues Mavericks host - there's all sorts broken on there though....

https://github.com/dotless-de/vagrant-vbguest

Re:Why Vagrant? by steveax on Sunday December 01, 2013 @03:23AM (#6826612)
Are you using Virtualbox VMs, or VMware VMs? My seat-of-the-pants experience is that VMware shares are more performant.
Re:Why Vagrant? by codelust on Sunday December 01, 2013 @04:29AM (#6826709)
Virtualbox VMs. Never tried the VMware ones.

The performance is acceptable most of the times, other than when I am running one of those PHP frameworks that includes a million files to process each request.

Re:Why Vagrant? by loevborg on Sunday December 01, 2013 @05:21AM (#6826783)
I'm seeing the same problem, running the phpunit tests from a PHP framework inside a Vagrant box (Ubuntu 12.04 as host and guest, VirtualBox provider, current vagrant). The tests run >3 times slower than on the physical machine. I have no idea what is causing the sluggishness.
Re:Why Vagrant? by amccloud on Sunday December 01, 2013 @02:56AM (#6826555)
NFS is no silver bullet. In exchange for performance and reliability you lose some production/development parity. You need to special case your provisioning script to guard against any FS permission changes.
Re:Why Vagrant? by codelust on Sunday December 01, 2013 @04:34AM (#6826717)
That's the reason why I gave it up the last time I tried it. IIRC, there's a requirement to run 'vagrant up' with sudo and that does things which I don't like.

Maybe, I'll try something like leaving the files on the guest and mount it on the host using SSHFS. My write performance will take a hit when I am editing files, but, if I can get rid of the sluggishness it will be worth it.