Instructions to set up shared folders

Discussions related to using VirtualBox on Linux hosts.
Post Reply
ckosloff
Posts: 14
Joined: 25. Oct 2014, 05:08

Instructions to set up shared folders

Post by ckosloff »

I have searched the forums and posted on the IRC channel to no avail.
I can imagine that the topic has been discussed before but I could not find clear instructions.
Host is Debian testing branch arch amd64.
Guest is Debian stable also amd64.
Vbox version is 4.3.26, latest as of the time of this writing.
Guest additions and extpack are installed.
in the host, shared folder is set to /home/ckosloff/shared.
I entered same in guest.
I copied some folders to this shared folder, which I need to make available to the VM.
I don't see anything in the guest.
There is an instruction to type command: mount -t vboxsfshare mount_point.
I don't know where to type this, eg. as root in the guest?
and, what would be the mount point?
Please clarify.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Instructions to set up shared folders

Post by loukingjr »

If the shared folder is set to Automount, there is no need for the command line. The folder will be mounted in /Media. You do have to add your username to the vboxsf group.

Code: Select all

sudo adduser username vboxsf
replace username with your login name for the guest.
reboot the guest.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
ckosloff
Posts: 14
Joined: 25. Oct 2014, 05:08

Re: Instructions to set up shared folders

Post by ckosloff »

loukingjr wrote:If the shared folder is set to Automount, there is no need for the command line. The folder will be mounted in /Media. You do have to add your username to the vboxsf group.

Code: Select all

sudo adduser username vboxsf
replace username with your login name for the guest.
reboot the guest.
This worked, thank you very much.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Instructions to set up shared folders

Post by loukingjr »

yvw
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Post Reply