3 ms·
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 th
by codelust 13y ago
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.
- amccloud 13y agoNFS 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.
- codelust 13y agoThat'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.
- steveax 13y agoAre you using Virtualbox VMs, or VMware VMs? My seat-of-the-pants experience is that VMware shares are more performant.
- codelust 13y agoVirtualbox 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.
- loevborg 13y agoI'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.
- aidos 13y agoVagrant 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 https://github.com/dotless-de/vagrant-vbguest
- rschmitty 13y agoThis 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
- mitchellh 13y agoHowdy. 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 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. :)