VirtualBox

Ticket #10061 (new defect)

Opened 2 years ago

Last modified 2 years ago

Samba server in guest cannot access files via shared folders

Reported by: jschaumlo Owned by:
Priority: major Component: shared folders
Version: VirtualBox 4.1.6 Keywords: arch samba
Cc: 4.0.12 Guest type: Linux
Host type: Windows

Description

I want to operate a Linux Samba server(guest) on Win7 (host), in which the Samba share point-to sharedFolder (vboxsf) on the host NTFS-Filesystem.


Win7Host: C:\myShare <-- vboxsf auto-mount --> LinuxGuest: /media/sf_myShare, Samba: [MYSHARE] path = /media/sf_myShare


If folder/files are copied under Win7 into C:\myShare, it happens, that copied folders/ files aren't visible thru Samba access. On the other hand - if I make the copy via Samba-share, it happens sometimes that particular files couldn't written to the share. In both cases on Linux command line a 'ls' shows folder/ file name(s), but no attributes, only ?????????????. Reason unknown.


Oracle VBox 4.1.6, host: Windows 7 SP1, guest: 3.5.1-1-ARCH Linux, Samba 3.6.1 Because of similar bug tickets (#9952, #9789, #9887) I tested too with VBox 4.0.12, negativ - same error.


I find a way to reproduce this behavior anytime:
1. Win7 robocopy: C:\folderX to C:\myShare
2. windiff: compare C:\folderX with \linuxguest\MYSHARE\folderX --- OKAY
3. rename \linuxguest\MYSHARE\folderX to folderY
4. robocopy again C:\folderX to C:\myShare
5. windiff: compare source\folderX with \linuxguest\MYSHARE\folderX --- ERROR
6. linux, ls shows /media/sf_myShare/folderX ????????????

I don't see this problem, when I rename the folder under Win7 directly - only by renaming over Samba.

Attachments

virtNAS_W7_RenameFolder CopyNew but not accessible_3__[VBox+GuestAdd_4.0.12].jpg Download (219.8 KB) - added by jschaumlo 2 years ago.
VBox_4.0.12_hostWin7.log Download (52.4 KB) - added by jschaumlo 2 years ago.
virtNAS_vboxGuestAdd_4.1.9_rename_delete_problem.JPG Download (151.8 KB) - added by jschaumlo 2 years ago.

Change History

Changed 2 years ago by jschaumlo

comment:1 Changed 2 years ago by michael

This might be a duplicate of #9878. I won't mark it as such yet though.

comment:2 Changed 2 years ago by michael

You might want to give this pre-release 4.1 Additions build (usual disclaimer applies) a try:

https://www.virtualbox.org/download/testcase/VBoxGuestAdditions-r75555.iso

Changed 2 years ago by jschaumlo

comment:3 Changed 2 years ago by jschaumlo

I tested VBoxGuestAdditions_r75555(=4.1.9) with

host:Win7SP1(host)--VBox4.0.12-GuestAdd-4.1.9--guest:3.5.1-1-ARCH Linux
host:WinXPSp3(host)--VBox4.1.6-GuestAdd-4.1.9--guest:3.5.1-1-ARCH Linux

---
I have deactivated the samba server on linux guest, to consider only the vbox sharedfolder behavior.
---
In both environments, I can reproduce the ??????????? situation via:

  1. on Windows-host: Copy folderX (with subfolders) to C:\myShare
  2. on Windows-host: rename folderX to folderY
  3. on Linux-guest: ls -lisa /media/sf_myShare/folderY --- OKAY
  4. on Linux-guest: rename (~ mv) folderY to folderZ
  5. on Windows-host: working on folderZ and subfolders --- OKAY
  6. on linux-guest: ls -lisa /media/sf_myShare/folderZ --- Error

Subfolder is not accessible, its Attributes shown as ???????????

(see attached screenshot)

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use