Seeking and sharing about making IT softer

Running Guard Over Vagrant

To keep it simple, you can’t… do it properly. File events are not correctly triggered by VirtualBox on the guest when the files are updated from the host (see the related Github issue). So guard cannot detect the events issued by the host… unless you run it with the polling option:

vagrant -p

This polling option works correctly on the latest versions of VirtualBox (there was an issue before 4.1.12), but it remains a bad option because doing so my system’s CPU instantly goes to a constant 100% charge.

To improve the situation, you can still reduce the latency so that the polling is not done so frequently. This naturally adds some delay before the triggering of the events, but it will keep your system cool.

guard -p -l 10