Unable to get VirtualBox "Shared Folders" feature to work.

Questions about virtualization software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
WadeWayne
Level 2
Level 2
Posts: 94
Joined: Sat Mar 21, 2020 10:08 am
Location: Kepler-438b

Unable to get VirtualBox "Shared Folders" feature to work.

Post by WadeWayne »

Image

I've installed Debian Buster (No GUI) on VirtualBox, but I'm unable to get the "Shared Folders" feature to work. Could anyone help me with this, please? :D
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Image
Distro: Linux Mint 19.3
DE: Cinnamon 4.4.8
User avatar
spamegg
Level 14
Level 14
Posts: 5018
Joined: Mon Oct 28, 2019 2:34 am
Contact:

Re: Unable to get VirtualBox "Shared Folders" feature to work.

Post by spamegg »

On the Guest OS, try sudo usermod -aG vboxsf yourusername then reboot.
WadeWayne
Level 2
Level 2
Posts: 94
Joined: Sat Mar 21, 2020 10:08 am
Location: Kepler-438b

Re: Unable to get VirtualBox "Shared Folders" feature to work.

Post by WadeWayne »

spamegg wrote: Wed Jun 16, 2021 5:18 pm sudo usermod -aG vboxsf yourusername
It says: "usermod command not found". :(
Image
Distro: Linux Mint 19.3
DE: Cinnamon 4.4.8
tkocou
Level 2
Level 2
Posts: 82
Joined: Mon Jul 30, 2012 6:25 pm

Re: Unable to get VirtualBox "Shared Folders" feature to work.

Post by tkocou »

An alternative method is to directly edit the /etc/group file and add yourself to the end of the vboxusers entry.

like: sudo nano /etc/group

Save it out. Create a folder in your home directory which you will share with the VM.

Next, start virtualbox, open the settings menu for the virtual machine which you have created. Add an entry in the Shared Folders menu:

<name of folder for VM> <absolute path to shared folder in your home directory> <access permissions> <auto-mount> <absolute path for auto-mounting>

I usually leave the auto-mount blank and this gives me the option of dictating when the shared folder is connected to the VM.

Close out virtualbox and reboot.

BTW, which version of virtualbox are you running? I'm running version 6.1.16

Good luck.
Linux Mint 21.1 Cinnamon
Reddog1
Level 7
Level 7
Posts: 1932
Joined: Wed Jun 01, 2011 2:12 pm

Re: Unable to get VirtualBox "Shared Folders" feature to work.

Post by Reddog1 »

I'm assuming you haven't gotten this to work because the topic is not marked as 'solved'

The terminal command that should make it work:

#sudo gpasswd -a <yourusernamehere> vboxsf
Moonstone Man
Level 16
Level 16
Posts: 6054
Joined: Mon Aug 27, 2012 10:17 pm

Re: Unable to get VirtualBox "Shared Folders" feature to work.

Post by Moonstone Man »

WadeWayne wrote: Thu Jun 17, 2021 10:29 am
spamegg wrote: Wed Jun 16, 2021 5:18 pm sudo usermod -aG vboxsf yourusername
It says: "usermod command not found". :(
That's because you were given incorrect instructions.

sudo gpasswd -a $USER vboxsf
PogoOnMint
Level 1
Level 1
Posts: 16
Joined: Sat Mar 20, 2021 7:01 am

Re: Unable to get VirtualBox "Shared Folders" feature to work.

Post by PogoOnMint »

I'm stuck on this as well.
Trying the group command gives:

Code: Select all

pogo@pogo-VirtualBox:~$ sudo usermod -aG vboxsf pogo
[sudo] password for pogo:         
usermod: group 'vboxsf' does not exist
pogo@pogo-VirtualBox:~$ 
It seems that the group was not created when the drives were assigned. How can I get around this?

Pogo
Moonstone Man
Level 16
Level 16
Posts: 6054
Joined: Mon Aug 27, 2012 10:17 pm

Re: Unable to get VirtualBox "Shared Folders" feature to work.

Post by Moonstone Man »

PogoOnMint wrote: Sun Aug 01, 2021 4:56 am How can I get around this?
Please start your own thread and read this: Before you post please read how to get help.
nistem
Level 1
Level 1
Posts: 6
Joined: Sat Jan 16, 2021 9:09 am

Re: Unable to get VirtualBox "Shared Folders" feature to work.

Post by nistem »

After (1) setting up the Shared Folder within VirtualBox and then (2) Inserting/Installing the Guest Additions CD Image in the Virtual Machine, I then needed to (3) add myself as a user to the vboxsf Group in the Users and Groups app to gain access to the shared folder.
Locked

Return to “Virtual Machines”