Guidelines

This site is for tech Q&A. Please keep your posts focused on the subject at hand.

Ask one question at a time. Don't conflate multiple problems into a single question.

Make sure to include all relevant information in your posts. Try to avoid linking to external sites.

Links to documentation are fine, but in addition you should also quote the relevant parts in your posts.

0 votes
207 views
207 views

I have a web development VM (VirtualBox 5.1.38) with a webserver and database. The VM mounts the web application directory as a shared folder from my host.

Serving the application works just fine, but when I make changes to the application files on the host system and reload the page in my browser they changes are not picked up inside the VM until I reboot it.

What is going on here?

in Sysadmin
by (115)
2 19 33
edit history

Please log in or register to answer this question.

1 Answer

0 votes
 

There seems to be a bug with the Linux vboxsf driver in VirtualBox 5.x. Shared folders are getting cached when they're not supposed to. It's supposedly fixed in version 6.0.6.

If you can't update you can work around the issue by manually clearing the cache inside the VM before reloading the page in the browser:

echo 3 > /proc/sys/vm/drop_caches
by (115)
2 19 33
edit history
...