Shared folder access issue

Discussions about using Linux guests in VirtualBox.
Post Reply
CraigBoyd
Posts: 12
Joined: 30. Oct 2013, 03:55

Shared folder access issue

Post by CraigBoyd »

Hi All,

I have a Linux guest that I have a shared folder on. It comes back after each reboot. But when I log into the VM and try to access the directory I get a permission denied. I have to sudo to root in order to access.
I have tried using chmod, but it won't change the permissions at all.

When I try to put an entry into fstab for it I get boot up errors.
The entry looks like:
/deployed /var/www/html/projects/deployed vboxsf defaults,uid=1000,gid=1000,umask=0022 0 0

I have tried a couple variations of the above statement, but I get the same error.
Essentially what I am trying to do is do my web work in the windows environment (host) put them into the "deployed" fold and have the apache in the guest (linux) serve the files. This allows me to keep my windows machine a little cleaner and not have to install a web server and various supporting stuff.

Any thoughts?

Thanks,

Craig
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Shared folder access issue

Post by scottgus1 »

I suspect this is a VM OS where-it's-mounted issue or something like that. Moving to Linux Guests.
CraigBoyd
Posts: 12
Joined: 30. Oct 2013, 03:55

Re: Shared folder access issue

Post by CraigBoyd »

OK, thanks.
manueljordan
Posts: 8
Joined: 16. Nov 2021, 00:18

Re: Shared folder access issue

Post by manueljordan »

Can you share a Figure about the shared folder directory configuration on VirtualBox? - I have no problem with this approach - I want do a comparison. BTW - be sure that you have the Guest Additions installed, it is mandatory.
CraigBoyd
Posts: 12
Joined: 30. Oct 2013, 03:55

Re: Shared folder access issue

Post by CraigBoyd »

Hi manueljordan, thanks for the reply.

Guest Additions are installed.
As for the configuration:
Folder Path: c:\users\me\Projects\deployed (on the Windows Host)
Folder Name: deployed
Read-only = NOT checked
Auto-mount = checked
Mount Point: /var/www/html/projects/deployed (on the Linux Guest)

Thanks,

Craig
manueljordan
Posts: 8
Joined: 16. Nov 2021, 00:18

Re: Shared folder access issue

Post by manueljordan »

Hello CraigBoyd

What is wrong is the Mount Point path. It must be: /media/VirtualBox/deployed
I had practically the same issue than you.

The pattern to use is: /media/VirtualBox/<directory_name> where <directory_name> must be the same like the last name directory
of the Folder Path value, in your case deployed
Post Reply