Folder sharing extremely slow, minute long delays.

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
Leffmann
Posts: 2
Joined: 11. Nov 2009, 18:48
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Windows XP

Folder sharing extremely slow, minute long delays.

Post by Leffmann »

Hosted system is XP Pro 32-bit with SP3. Explorer can view the shared folder and copy files to and from fine, but every action such as even clicking the shared folder to select it is met with a 30 second delay during which Explorer stops responding completely, after which the operation completes as it should. Applications on other hand can not cope with the delays and are unable to use the shared folder.

I'm on OS X Snow Leopard with pretty much unchanged network settings since install. Installed 3.0.10 with guest addons, tried reinstalling but to no avail. Any solution?

Thanks.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Folder sharing extremely slow, minute long delays.

Post by Sasquatch »

Try putting the following line in the hosts file of the Guest and see if it helps speed things up.

Code: Select all

vboxsrv 127.0.0.1
I forgot the exact syntax on Windows, it might be the other way around (IP before name) as on Linux.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Leffmann
Posts: 2
Joined: 11. Nov 2009, 18:48
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Windows XP

Re: Folder sharing extremely slow, minute long delays.

Post by Leffmann »

That solved the problem.

I wasn't sure whether it was "vboxsrv" or "vboxsvr" as I've seen both here on the forum and in the documentation, so I just added two lines to make sure. Maybe you can clarify this for other people who find this thread after running into the same problem.

Thank you very much for the help.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Folder sharing extremely slow, minute long delays.

Post by Sasquatch »

This 'fix' has been released here on the forums before, hence I know it. Basically, Windows tries to look for host names on the network using the hosts file first, then DNS, then WINS, and maybe a few other options before it times out. When that happens, the GA somehow come up and give it the proper location to find the files. By using this work around, you basically let the GA pick up straight away because Windows doesn't need to look further on the network.
Something like that.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
dnonnema
Posts: 16
Joined: 10. Aug 2009, 18:30
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP SP3

Re: Folder sharing extremely slow, minute long delays.

Post by dnonnema »

I'm glad I come back to this forum occasionally. I had this problem, and have been living with it.

Is this modification to the hosts file documented? I don't remember seeing that when I installed VBOX. :idea: :idea: :idea: :idea:
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Folder sharing extremely slow, minute long delays.

Post by Sasquatch »

dnonnema wrote:I'm glad I come back to this forum occasionally. I had this problem, and have been living with it.

Is this modification to the hosts file documented? I don't remember seeing that when I installed VBOX. :idea: :idea: :idea: :idea:
You didn't read my reply, did you? It's only here on the forums, you won't find it in the Manual or anywhere else (maybe someone's bog site).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
anton
Posts: 3
Joined: 15. Nov 2009, 12:33
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP

Re: Folder sharing extremely slow, minute long delays.

Post by anton »

Hi, I had the same problem, using xp as guest on karmic. I deleted the line '127.0.0.1 localhost' and replaced it with '127.0.0.1 vboxsvr' in file 'hosts' from guest directory C:/WINDOWS/systems32/drivers/etc. This cut the delay for share folder response a fair bit but it can still take a good ten seconds with the change. The improvement so far is appreciated but any ideas how the lag could be shortened further? Cheers!
MarkCranness
Volunteer
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: Folder sharing extremely slow, minute long delays.

Post by MarkCranness »

Don't delete 127.0.0.1 localhost. Instead add another line 127.0.0.1 vboxsvr would be recommended.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Folder sharing extremely slow, minute long delays.

Post by Sasquatch »

anton wrote:Hi, I had the same problem, using xp as guest on karmic. I deleted the line '127.0.0.1 localhost' and replaced it with '127.0.0.1 vboxsvr' in file 'hosts' from guest directory C:/WINDOWS/systems32/drivers/etc. This cut the delay for share folder response a fair bit but it can still take a good ten seconds with the change. The improvement so far is appreciated but any ideas how the lag could be shortened further? Cheers!
Way to go to FUBAR your system. NEVER EVER remove localhost from the hosts file.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
anton
Posts: 3
Joined: 15. Nov 2009, 12:33
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP

Re: Folder sharing extremely slow, minute long delays.

Post by anton »

sasquatch mentioned use of vboxsrv. considering this might be a typo i added two lines initially '127.0.0.1 vboxsrv' and '127.0.0.1 vboxsvr' (in that order) whilst leaving '127.0.0.1 localhost' in at the first line. This made no change to share file response latency. I don't know how these files work exactly but i considered sasquach's explanation which suggested to me there may have been some kind of command priority based on order maybe and so i deleted the first original line, leaving the two new lines in. Still no diff! I then deleted the line with vboxsrv leaving only vboxsvr and hey presto, reduced latency but still takes around 10 real seconds on average which is quite a while still. Any ideas on cutting it further?
anton
Posts: 3
Joined: 15. Nov 2009, 12:33
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP

Re: Folder sharing extremely slow, minute long delays.

Post by anton »

so far no sign of FUBAR as a consequence. I'd only just installed windows anyway so was prepared to take the risk. Still, given the warning i put localhost back in at the second line and preserved the improvement.
Last edited by anton on 1. Dec 2009, 07:46, edited 1 time in total.
cekuhnen
Posts: 26
Joined: 8. Feb 2008, 23:57

Re: Folder sharing extremely slow, minute long delays.

Post by cekuhnen »

I added: 127.0.0.1 vboxsrv but nothing really changed.

still panifuly slow.
MarkCranness
Volunteer
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: Folder sharing extremely slow, minute long delays.

Post by MarkCranness »

127.0.0.1 vboxsvr
Note: sVr, not sRv, although adding both can't hurt, and it all depends upon which network name you actually used in your share.
In the HOSTS file in the guest.
cekuhnen
Posts: 26
Joined: 8. Feb 2008, 23:57

Re: Folder sharing extremely slow, minute long delays.

Post by cekuhnen »

Ok I will give it another try.
seattle vic
Posts: 42
Joined: 16. Mar 2008, 23:46

Re: Folder sharing extremely slow, minute long delays.

Post by seattle vic »

I'm having the same problem on a PC. Tried all of the above, but the reading (especially loading a file into word) is "very" slow.
Post Reply