S
S
Sergey2011-10-08 19:43:14
virtual box
Sergey, 2011-10-08 19:43:14

VirtualBox and Shared Folders?

Actually, a small problem arose ... in addition to the poor performance of shared folders, with which I had already come to terms, such a glitch was noticed. When changing any file from the windows host, the guest system (Debian) still gives me the old version of the file or simply breaks the file (say, JS files are cut). Only umount / mount helps - but after each edit it is not so convenient to do this.
the Debian guest system is used primarily for LAMP development. The shared folder contains files for all apache hosts.
It is advisable to deal with VirtualBox (I don’t like the rest of the solutions so much ... although I have already tried both VMware and coLinux, although the latter does not fit because it seems to be under 64 bits until it fully works ....)
ps If anyone can tell me how to solve the problem with a long delay when accessing files from the guest OS, it would also be not bad ... but I can live with this for now.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
Y
yarodin, 2011-10-09
Protko @Fesor

By the way, I had almost the same problems with Shared Folders starting from VirtualBox 3.x and up to the current versions.
Host - Win7x64, Guest - Debian 6.0 amd64
I couldn't take it, I raised FTP on Debian - I still use it.

N
n2j7, 2013-07-09
@n2j7

It looks like there is a solution! =)
stackoverflow.com/questions/9479117/vagrant-virtualbox-apache2-strange-cache-behavior

What you're seeing is probably because the server serving the static files is using the "sendfile()" syscall, which is broken with the VirtualBox file system. You need to disable sendfile() usage in your server. For Apache:
EnableSendfile off
And for nginx: sendfile off;
Best, Mitchell

Just disable sendfile in the web server!
I didn’t even think about looking towards the web server, although it was worth it!
PS: I didn’t find the solution, but a person not from Habr, I think he will be happy to invite if this info is useful to someone ... For a personal email ...

N
n2j7, 2013-07-08
@n2j7

years go by. the situation does not change!
thanks Fesor for the topic, except for ftp nothing else was found?

A
Alex Pts, 2014-01-13
@AlexPTS

I encountered the same problem, but sometimes the file is not cut off, question marks are inserted at the end. It costs fedora under VB, after updating to version 20 from 19, such a problem began to appear

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question