Page 1 of 2

error while trying to copy files from a shared folder

Posted: 28. Jul 2011, 19:54
by quasiquasar
Host: Windows XP, Vbox 4.1.0; Guest Ubuntu 10.04 guest additions

I have an automatically mounted shared folder. If I try to use Nautilus to copy any file from the shared folder to the folder in the Guest system, the following error occurs:

Code: Select all

Error while copying "filename"
Error splicing file: Protocol error
If I try to copy files using the command line, everything works. Any clue what might be the problem?

-- virtual hard drive is dynamic size (ext4).

Re: error while trying to copy files from a shared folder

Posted: 28. Jul 2011, 21:18
by purbeckview
Same problem here, although I can copy from Ubuntu to shared folder OK. As you say, CLI works fine in both directions. Using Ubuntu 11.04, VB 4.1.0 on a MacBook running OS X 10.7 (Lion). I will put a post on the Mac OS Hosts forum shortly.

Re: error while trying to copy files from a shared folder

Posted: 28. Jul 2011, 23:12
by Sasquatch
Sounds like Nautilius / Gnome is causing problems again. Gedit doesn't like SF either. To be able to use the GUI method, try a different file manager like Xfce4's Thunar or LXDE's pcmanfm.
purbeckview wrote:I will put a post on the Mac OS Hosts forum shortly.
If it's about the same thing, don't put it in a Host section. You clearly said it's on your Guest. The Host doesn't matter. And cross-posting isn't allowed either, although it wouldn't entirely be that.

Re: error while trying to copy files from a shared folder

Posted: 29. Jul 2011, 01:42
by quasiquasar
I've tried it with Windows 7 host and everything works like a charm.

Re: error while trying to copy files from a shared folder

Posted: 13. Aug 2011, 12:17
by Sasquatch
Then check the privileges on the shared folder on the Host. There has to be a difference somewhere on either side that causes this.

Re: error while trying to copy files from a shared folder

Posted: 14. Aug 2011, 22:59
by Kingy
Oddly, this is happening to me too on a Windows 7 64-bit host with Linux Mint 11 32-bit and Ubuntu 11.04 32-bit guests. However, I also have Linux Mint 11 64-bit and Ubuntu 11.04 64-bit guests and they work fine. Each VM is set up the same with the same latest guest additions version installed and the same shared folder. Auto Mount is off too.

Re: error while trying to copy files from a shared folder

Posted: 6. Oct 2011, 22:34
by rogusdev
This just started happening for me too when I updated to 4.1.4. Previously, using 4.1.2 and 4.0.12 (pretty sure that was the version), I had no problems accessing this exact same setup of shared folder in the same virtual machine (guest: ubuntu 10.04 32bit), everything the same (host: windows 7 64bit), now just upgraded vbox and ga and this broke. If it helps debugging: sometimes the file is created with zero size, sometimes it's not created at all, but it always throws the "protocol error" error right after attempting to copy.

Re: error while trying to copy files from a shared folder

Posted: 6. Oct 2011, 23:20
by Perryg
I don't use the auto-mount for just this reason. Delete the share, make sure that the share is not working when you reboot the guest.
Then create a manual share using the options switch (make permanent in the share screen just no auto-mount)

Code: Select all

mount -t vboxsf -o rw,uid=<your uid>,gid=<your gid> <share> <mount point>
Put this in /etc/rc.local after you are sure it works and you more than likely will eliminate your issues.

Note 1: I have no problem with shared folders, not even gedit. YMMV but I do this with a lot of guests and over 6 different hosts.
Note 2: manual mount on Windows guests also do not show this issue for me.

Re: error while trying to copy files from a shared folder

Posted: 7. Oct 2011, 14:10
by mike2712
Exactly the same problem here, and have not progressed since my post on this.

Win 7 host, kubuntu 11.04 (natty) guest.

Could copy files to and from the sf with VirtualBox 4.0.12, by drag and drop in Dolphin file manager. Following upgrade to 4.1.4, can copy files into sf but not out: protocol error.

I have tried different filemanagers, including thunar and pcmanfm, deleting/recreating the sf, to no avail.

If it helps:
(a) the copy function was fine following upgrade UNTIL I installed the 4.1.4 guest additions (i.e. I initially upgraded to 4.1.4 but left the old 4.0.12 ga installed.)
(b) I can confirm that the cp command in a terminal window works fine
(c) There is no problem in a VM with Debian Lenny guest

It therefore seems that there is a change in the 4.1.4 guest additions that is incompatible with kubuntu 11.04 but does not affect Debian.

Any comments will be welcome!

Re: error while trying to copy files from a shared folder

Posted: 7. Oct 2011, 16:36
by Perryg
@mike2712,
Are you using the auto-mount feature?
What folder are you trying to share on Windows?

Re: error while trying to copy files from a shared folder

Posted: 7. Oct 2011, 20:22
by mike2712
No, I am not using the auto-mount feature (although I have tried it).

I am not sure what you mean by your second question. The Win folder is C:\vbox_shared and has full control and access permissions for all users. I stress that this has never changed since version 2 of VirtualBox and has been OK with every successive release upto 4.1.0. It is mounted on the kubuntu mountpoint /vbox_shared that has full rw permissions for all users, and again has not changed. I have tried with different mountpoints, but the problem persists.

Re: error while trying to copy files from a shared folder

Posted: 7. Oct 2011, 20:47
by Perryg
I don't have kubuntu, but my ubuntu does not show this issue.
That said:
These kinds of problems that are reproducible should be reported to bugtracker. You will need to setup an account there as it is on a different system.
It would also help if you can post the ticket number here so other can see the progress, add information, or see the final results.
Be sure to give the DEVs as much info as you can.

Re: error while trying to copy files from a shared folder

Posted: 8. Oct 2011, 02:10
by rogusdev
I have created the bug ticket: https://www.virtualbox.org/ticket/9719

For the record, I myself use mount in my rc.local, not auto-mount.

Re: error while trying to copy files from a shared folder

Posted: 30. Oct 2011, 15:38
by loukingjr
just to throw my 2 cents in I am having the same problem with only the Phinx version of PCLinuxOS and none of the other PCLOS's. I also don't seem to have the problem with other distros.

edit: I deleted the shared folder, got a message the shared folder was broken, rebooted the guest, added the same shared folder, rebooted the guest again and it works fine now. I think the issue might be when the shared folder was created.

Re: error while trying to copy files from a shared folder

Posted: 30. Nov 2011, 02:20
by swisschris
I just want to confirm and update: the problem still exists, in the exact way as it has been described in the bugtracker. I have installed the latest version (4.1.6) together with the most recent guest additions. I am running virtualbox on a Mac OSx (snow leopard) and as guest I am running Ubuntu 10.10.

I have tried everything in matters of different techniques to mount the share folder, however, the problem persisted. I can copy files in the gnome-terminal, but all the other software is stopped as soon as a file is to be copied between the shared folder and the guest system (even trash is not working for files in the shared folder).

Best,
Chris