Page 2 of 2

Re: file in share folder don't update correctly in CentOS 7

Posted: 5. Nov 2015, 16:54
by loukingjr
oscaroxy wrote:for me is impossible to think that work in every VM (CentOS 6.5, Ubuntu , Windows Xp, 7, 8.1 ... ) but not in CentOS 7...
Assuming the above is still true and those guests still work for you, there are only a few possibilities…
1. Your CentOS guest is not set up the same way as the others.
2. Your CentOS 7 guest needs to be set up differently.
3. There is something new in CentOS 7 preventing it from working.

It seems if you have at least 5 guests that are working, it is not likely a VirtualBox issue.

Re: file in share folder don't update correctly in CentOS 7

Posted: 6. Nov 2015, 14:48
by oscaroxy
I would not contradict you, but the problem born in mount of VirtualBox:

Code: Select all

none on /var/www/workspace_XXX type vboxsf (rw,nodev,relatime)
--- "none" is the name of shared_folder, mistake, my share_folder isn't none, exist (I wrote here viewtopic.php?f=8&t=70492).

it's this the problem, I resolved like I wrote in link but my solution isn't correct in fact when update a file in shared_folder from host the file don't result updated in browser, only after I re-mount the shared_folder all is right.

Did you have try to install CentOS7 in VBox 5 with sharefolder? All settings in CentOS7 are default.

a... my problem is with file swf, that is compiled file, or Javascript, but not php file.
the ugly thing is that when I update a file (swf, js) obtain one or more error, but they aren't the true error... You try.
that is, I have a file that work fine, after add in js an "alert('pippo')" and refresh page ... obtain error (in attach), this is'nt the true error, in fact when I re-mount shared_folder the result is correct (in attach)


thanks

Re: file in share folder don't update correctly in CentOS 7

Posted: 6. Nov 2015, 15:05
by loukingjr
I think I understand now. Yes, I have CentOS 7 Gnome installed as a guest. I have a host shared folder that is set to Automount. If I open the shared folder in the guest, then change one of the files on the host, I have to refresh the folder on the guest before it will recognize the change. Just clicking a different folder in the guest then re-clicking on the shared folder will do that. No need to re-mount the folder. As far as I remember, all Linux guests behaved like that although I haven't tested them for quite awhile.

Re: file in share folder don't update correctly in CentOS 7

Posted: 6. Nov 2015, 15:22
by loukingjr
Actually my comment above is only true if the file name changes. The path has changed in that case. However, if I change a file on the host, save it, then open it in the guest, the changes are there.

Re: file in share folder don't update correctly in CentOS 7

Posted: 6. Nov 2015, 17:15
by oscaroxy
Yes, the changes are there (swf, js file), but in browser I obtain "error".
I restart apache but nothing until I re-mount shared_folder ...

thanks

Re: file in share folder don't update correctly in CentOS 7

Posted: 6. Nov 2015, 17:18
by loukingjr
My guess is you need to use true Network Sharing such as SAMBA. Shared folders are not as full featured as a network share. They are a convenience to share files between a host and guest.

Re: file in share folder don't update correctly in CentOS 7

Posted: 6. Nov 2015, 23:37
by oscaroxy
Samba? why? My host is macosx and guest is Centos... and I don't would to pass from net, because so I need of a net, but I would to work in train, bus, etc... where I not always I find a net...

thanks

Re: file in share folder don't update correctly in CentOS 7

Posted: 7. Nov 2015, 00:21
by socratis
You can always have an internal network. And as Louis told you and you've discovered yourself, shared VirtualBox folders do have limitations. They're not true network shares. No matter how much you'd like them to be.

Re: file in share folder don't update correctly in CentOS 7

Posted: 18. Nov 2015, 12:24
by oscaroxy
socratis wrote:You can always have an internal network. And as Louis told you and you've discovered yourself, shared VirtualBox folders do have limitations. They're not true network shares. No matter how much you'd like them to be.
Not entirely true, in fact the centOS 6.5 work fine, it sn't mount with "none" label the shared folder and the files change correctly... I continue to think that the problem is into vbox, because everybody work like me with vbox: apache (guest) + shared folder (guest <-> host).

however THANKS so mush :-)


look this:


https://www.virtualbox.org/ticket/9069

https://www.virtualbox.org/ticket/12597



I follow the advice in before link and I setted, in Apache, "EnableSendfile off" and now it work fine :-D