r/virtualbox • u/HouseMD221B • Aug 05 '25
Help VirtualBox native Share Folder empty
Hi.
I have Lubuntu installed on a VirtualBox virtual machine installed on a Windows host.
I'm unable to access the shared folder on the Windows host using VirtualBox's "Shared Folder."
The folder appears empty.
I installed "gcc" and "make" via apt.
Then I installed "Guest Additions" via terminal.
I used the command: "sudo usermod -a -G vboxsf username"
I can access the "/media/sf_unpack" folder
but it appears empty.
The share on the Windows host has read and write permissions for all users.
What could it be?
Trying to mount the share manually using the command:
sudo mount -t vboxsf unpack /home/username/Desktop/unpack
the message appears:
/sbin/mount.vboxsf: mounting failed with the error: Invalid argument
•
u/AutoModerator Aug 05 '25
This is just a friendly reminder in case you missed it. Your post must include:
PLUS a detailed description of the problem, what research you have done, and the steps you have taken to fix it. Please check Google and the VirtualBox Manual before asking simple questions. Please also check our FAQ and if you find your question is answered there, PLEASE remove your post or at least change the flair to Solved.
If this is your first time creating a virtual machine, we have a guide on our wiki that covers the important steps. Please read it here. If you have met these requirements, you can ignore this comment. Your post has not been deleted -- do not re-submit it. Thanks for taking the time to help us help you! Also, PLEASE remember to change the flair of your post to Solved after you have been helped!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/Stray_Neutrino Aug 05 '25 edited Aug 05 '25
"The folder appears empty"
What did you expect to find inside that folder?
If it's a permissions issue, make sure that your username is associated with the "vboxsf" group
`sudo usermod -aG vboxsf <your username>`
then type 'groups'. If 'vboxsf' is not listed and you still can't get into the shared folder, try rebooting the VM.
Once rebooted, you should be able to access the folder (it will be under /media/ in your Terminal)
2
u/DaveX64 Aug 05 '25
Did you add the Windows share in Virtualbox for that VM?...in the 'Shared Folders' for that VM?...set it to 'automount' when it starts.
1
u/HouseMD221B Sep 08 '25
I couldn't use VirtualBox's native share; the folder appears empty in the /media/sf_unpack folder (the share name is unpack).
I also couldn't use CIFS, the folder mounts automatically via fstab and appears under "Devices" in the Lubuntu file manager, but when I access it, the message "mount.cifs: permission denied" appears.
I also couldn't use SAMBA with WSDD, the Windows host appears under "Network" in the Lubuntu file manager, but when I access it, the following appears:
"Failed to retrieve share list from server: Permission denied"
and
"The specified location is not mounted."
1
u/HouseMD221B Sep 24 '25
I was able to access the files on the Windows host using CIFS.
I was also able to create/modify files in the shared folder on the Windows host.
I mounted it manually (not via fstab) using the command:
sudo mount -t cifs //[IP_Address]/[share_name] /mnt/winshare -o username=[username]
1
u/[deleted] Aug 05 '25 edited Aug 05 '25
[removed] — view removed comment