Access denied to shared folders

Discussions related to using VirtualBox on Linux hosts.
Post Reply
mrzenwiz
Posts: 42
Joined: 15. May 2011, 19:04
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows, CentOS

Access denied to shared folders

Post by mrzenwiz »

I think I had this problem once a long time ago and solved it then.

I just upgraded to VB 6.1.22 for my Xubuntu 20.04 host. I share two folders with all my guest OSes: my /home/Downloads directory, which is mounted to my home Downloads on my userid, and /home/linux, where I keep most linux-specific files.

On my Xubuntu 20.04 guest (for experimentation), I cannot access any files in either of the shared folders.

My guest userid name is different from my host userid name, although they are both user 1000 on their respective machines, and I have put the guest id in the guest vboxsf user group. I think that's what fixed the problem last time, but now it's not working. The guest userid name also matches a guest user name on the host, and it is also in all the right groups (I think).

I have no trouble at all accessing the same shared folders from my Win 10 guest, with yet another guest userid (also user 1000, different name).

What am I missing?

Thanks!
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Access denied to shared folders

Post by mpack »

mrzenwiz wrote: What am I missing?
You don't mention if you are referring to Guest Additions Shared Folders, and if so you also don't mention installing the Guest Additions.

Further discussion will require a VM log file. Make sure the VM is fully shut down, then right click it in the manager UI. Select "Show Log" and save "VBox.log" (no other file) to a zip file. Attach the zip here.
mrzenwiz
Posts: 42
Joined: 15. May 2011, 19:04
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows, CentOS

Re: Access denied to shared folders

Post by mrzenwiz »

VMlog is attached. This is after a cold start, login and shutdown - no other activity.

Yes, I always install Guest Additions, and they match the current release of VB I'm running - 6.1.22.

The shared folders are the ones available through the VM Settings -> Shared Folders option of the management UI. See screenshot attached.

Thank you for your assistance.
Attachments
VM Settings -> Shared Folders screenshot
VM Settings -> Shared Folders screenshot
VM-Settings-SharedFolders.png (58.46 KiB) Viewed 17151 times
mrzenwiz
Posts: 42
Joined: 15. May 2011, 19:04
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows, CentOS

Re: Access denied to shared folders

Post by mrzenwiz »

Apparently the log did not get attached. Here is the zip of it.
Attachments
VBox.log.zip
Zipped VM log file
(30.32 KiB) Downloaded 35 times
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Access denied to shared folders

Post by scottgus1 »

mrzenwiz wrote:it is also in all the right groups (I think).
Should be able to check this with the "id" command? (not a Linux guy here)
mrzenwiz
Posts: 42
Joined: 15. May 2011, 19:04
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows, CentOS

Re: Access denied to shared folders

Post by mrzenwiz »

$ id
uid=1000(mrichter) gid=1000(mrichter) groups=1000(mrichter),0(root),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),100(users),121(lpadmin),131(lxd),132(sambashare),998(vboxsf)
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Access denied to shared folders

Post by mpack »

mrzenwiz wrote: Yes, I always install Guest Additions, and they match the current release of VB I'm running.
I'm afraid that neither of those statements is true. You have not installed the Guest Additions, the only GAs I see were preinstalled by Ubuntu. And it's the wrong version.
00:00:01.019680 VirtualBox VM 6.1.22 r144080 linux.amd64 (Apr 28 2021 17:25:25) release log
...
00:00:11.692031 VMMDev: Guest Additions information report: Version 6.1.16 r140961 '6.1.16_Ubuntu'
I suspect you are confusing the Guest Additions with the host Extension Pack - the former is a plugin for the guest OS, the latter is a plugin for VirtualBox. Both are needed for a fully functional system.

What's more, the Ubuntu fork GAs are not happy. Your log also reports:
00:00:37.075493 VMMDev: Guest Log: vboxsf: Successfully loaded version 6.1.16_Ubuntu on 5.4.0-77-generic SMP mod_unload modversions (LINUX_VERSION_CODE=0x50477)
00:00:37.077177 VMMDev: Guest Log: vboxsf: Invalid info signature: 0x75 0x69 0x64 0x3d!
00:00:37.077286 VMMDev: Guest Log: 22:29:47.848843 automount Error: vbsvcAutomounterMountIt: Failed to mount 'Downloads' on '/media/sf_Downloads' because it is probably mounted elsewhere arleady! (-1,22)
00:00:37.091653 VMMDev: Guest Log: vboxsf: Invalid info signature: 0x75 0x69 0x64 0x3d!
00:00:37.091725 VMMDev: Guest Log: 22:29:47.863347 automount Error: vbsvcAutomounterMountIt: Failed to mount 'linux' on '/media/sf_linux' because it is probably mounted elsewhere arleady! (-1,22)
00:00:38.094977 VMMDev: Guest Log: vboxsf: Invalid info signature: 0x75 0x69 0x64 0x3d!
00:00:38.095112 VMMDev: Guest Log: 22:29:48.867097 automount Error: vbsvcAutomounterMountIt: Failed to mount 'Downloads' on '/media/sf_Downloads' because it is probably mounted elsewhere arleady! (-1,22)
00:00:38.098550 VMMDev: Guest Log: vboxsf: Invalid info signature: 0x75 0x69 0x64 0x3d!
00:00:38.098661 VMMDev: Guest Log: 22:29:48.870681 automount Error: vbsvcAutomounterMountIt: Failed to mount 'linux' on '/media/sf_linux' because it is probably mounted elsewhere arleady! (-1,22)
These errors are not familiar to me - but let's see if you still get them with the genuine GAs installed.
mrzenwiz
Posts: 42
Joined: 15. May 2011, 19:04
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows, CentOS

Re: Access denied to shared folders

Post by mrzenwiz »

Apparently I was mistaken. My apologies.

I just uninstalled the Guest additions again, rebooted, reinstalled them, and verified that it was 6.1.22 that loaded.

Interestingly enough, the shared folders now work properly.

I attached the latest log, which also has the 6.1.16 entry still in it, along with the 6.1.22 entry.
Attachments
VBoxLog.zip
Log with both 6.1.6 and 6.1.22 in it, in that order.
(35.39 KiB) Downloaded 31 times
Last edited by mrzenwiz on 2. Jul 2021, 20:47, edited 1 time in total.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Access denied to shared folders

Post by scottgus1 »

Glad you're up and running!

Yes, the new log shows good GAs.
mrzenwiz wrote:the shared folders now work properly.
That's a relief, isn't it? :D
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Access denied to shared folders

Post by mpack »

mrzenwiz wrote: I attached the latest log, which also has the 6.1.16 entry still in it
I'm not a Linux user, but I believe Ubuntu builds them into the kernel, heaven knows why - the kernel shouldn't have anything it can do without.

Anyway, you should research how to get rid of the kernel GAs, because they can do nothing good - their only potential is to conflict with the genuine article.
mrzenwiz
Posts: 42
Joined: 15. May 2011, 19:04
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows, CentOS

Re: Access denied to shared folders

Post by mrzenwiz »

I'm not sure that's true, but I will be re-building an Xubuntu VM soon.

I'll let you know what I see before I install anything inside the VM.
Post Reply