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

Discussions related to using VirtualBox on Mac OS X hosts.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

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

Post 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.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
oscaroxy
Posts: 35
Joined: 24. Sep 2015, 22:43

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

Post 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
Attachments
Schermata-2015-11-06-alle-13.59.40.jpg
Schermata-2015-11-06-alle-13.59.40.jpg (29.63 KiB) Viewed 3841 times
Schermata-2015-11-06-alle-13.58.13.jpg
Schermata-2015-11-06-alle-13.58.13.jpg (34.83 KiB) Viewed 3841 times
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

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

Post 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.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

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

Post 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.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
oscaroxy
Posts: 35
Joined: 24. Sep 2015, 22:43

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

Post 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
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

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

Post 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.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
oscaroxy
Posts: 35
Joined: 24. Sep 2015, 22:43

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

Post 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
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

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

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
oscaroxy
Posts: 35
Joined: 24. Sep 2015, 22:43

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

Post 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
Post Reply