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
8 views
8 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 General by (30) 5

Your answer

Preview

Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
By submitting this post you agree to our Terms & Conditions.
To avoid this verification in future, please log in or register.

1 Answer

0 votes
 
Best answer

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 (30) 5
...