Solved - Problem on sharing files btw Host and VM

Discussions related to using VirtualBox on Linux hosts.
Post Reply
satimis
Posts: 506
Joined: 12. Jun 2007, 03:41

Solved - Problem on sharing files btw Host and VM

Post by satimis »

Hi all,

Host - Ubuntu 22.04 desktop


Newly created Ubuntu 22.04 VM unable to share data between Host and VM

Right click sf_Transfer_Folder
Permission
Owner root
Group vboxsf

Basic
Contents" unreadable


Running Ubuntu 22.04 VM able to share data between Host and VM
Right click sf_Transfer_Folder
Permission
Owner root
Group vboxsf

Basic
Contents: 9 items, totalling 5.8 MB

Kindly help. Thanks

Regards

Edit
===

On Terminal performed following test;

$ su -
Password:
# ls /media/sf_Transfer_Folder/

Code: Select all

'System Volume Information'   Wallpapers
# ls /media/sf_Transfer_Folder/Wallpapers/

Code: Select all

1920x1080-landscape_photography-26507.jpg
3D-design-villas-night-lighting-ponds-trees_1920x1080_wallpaper.jpg
5541d198a4598.jpg
bc30e3d366aac60dc0d06d0bf1f14442.jpg
France-lavender-flowers-field-trees-blue-sky_1600x900_wallpaper.jpg
Lake-mountain-castle-houses-trees_1920x1080_wallpaper.jpg
Russia-Lake-Baikal-pier-trees-autumn_2560x1440_wallpaper.jpg
# ls /media/sf_Transfer_Folder/'System Volume Information'
No printout. It is an empty folder
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Problem on sharing files btw Host and VM

Post by scottgus1 »

satimis wrote:# ls /media/sf_Transfer_Folder/'System Volume Information'
No printout. It is an empty folder
"System Volume Information" is one of those weird Microsoft hidden folders, that you would normally not get access to or even see in Windows. What's rather eclectic is that it's not a Windows OS:
satimis wrote:Host - Ubuntu 22.04 desktop

Newly created Ubuntu 22.04 VM
Does Linux make "System Volume Information" folders too?

Meanwhile:
satimis wrote:# ls /media/sf_Transfer_Folder/Wallpapers/
1920x1080-landscape_photography-26507.jpg
3D-design-villas-night-lighting-ponds-trees_1920x1080_wallpaper.jpg
5541d198a4598.jpg
bc30e3d366aac60dc0d06d0bf1f14442.jpg
France-lavender-flowers-field-trees-blue-sky_1600x900_wallpaper.jpg
Lake-mountain-castle-houses-trees_1920x1080_wallpaper.jpg
Russia-Lake-Baikal-pier-trees-autumn_2560x1440_wallpaper.jpg
It looks like this folder is working?
satimis
Posts: 506
Joined: 12. Jun 2007, 03:41

Re: Problem on sharing files btw Host and VM

Post by satimis »

scottgus1 wrote:
satimis wrote:# ls /media/sf_Transfer_Folder/'System Volume Information'
No printout. It is an empty folder
"System Volume Information" is one of those weird Microsoft hidden folders, that you would normally not get access to or even see in Windows. What's rather eclectic is that it's not a Windows OS:
satimis wrote:Host - Ubuntu 22.04 desktop

Newly created Ubuntu 22.04 VM
Does Linux make "System Volume Information" folders too?

Meanwhile:
satimis wrote:# ls /media/sf_Transfer_Folder/Wallpapers/
1920x1080-landscape_photography-26507.jpg
3D-design-villas-night-lighting-ponds-trees_1920x1080_wallpaper.jpg
5541d198a4598.jpg
bc30e3d366aac60dc0d06d0bf1f14442.jpg
France-lavender-flowers-field-trees-blue-sky_1600x900_wallpaper.jpg
Lake-mountain-castle-houses-trees_1920x1080_wallpaper.jpg
Russia-Lake-Baikal-pier-trees-autumn_2560x1440_wallpaper.jpg
It looks like this folder is working?
I have no idea how that folder ("System Volume Information") was created ?

Can I delete "Transfer Folder" on Host and recreate "Transfer Folder" ? If YES please advise how to avoid mistake.

I can't view files on
-> File Manager -> sf_Transfer_Folder

I must on Terminal su -
then I can read their files on /media/sf_Transfer_Folder

It is quite strange to me

Regards
fth0
Volunteer
Posts: 5635
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Problem on sharing files btw Host and VM

Post by fth0 »

Did you make your guest OS user a member of the vboxsf group (and re-login afterwards)?

The System Volume Information folder gets created when a Windows guest accesses the Shared Folder.
satimis
Posts: 506
Joined: 12. Jun 2007, 03:41

Re: Problem on sharing files btw Host and VM

Post by satimis »

fth0 wrote:Did you make your guest OS user a member of the vboxsf group (and re-login afterwards)?

The System Volume Information folder gets created when a Windows guest accesses the Shared Folder.
Hi,

Thanks for your advice.

There are about 10 Linux guests and 5 Windows guests on this PC. All Linux guests use the same username and all Windows guests use the same username for Windows.

I haven't added the username of the newly created VM to vboxsf group because it is the same username. If I need to do it please advise how? Thanks.

Regards
satimis
Posts: 506
Joined: 12. Jun 2007, 03:41

Re: Problem on sharing files btw Host and VM

Post by satimis »

Hi all,

Now I got it.

On each guest/VM I have to run following command on Terminal, disregarding all guests/VMs having the same username.

$ sudo adduser satimis vboxsf

Code: Select all

sudo] password for satimis: 
Adding user `satimis' to group `vboxsf' ...
Adding user satimis to group vboxsf
Done.
$ cat /etc/group | grep "vboxsf"

Code: Select all

vboxsf:x:999:satimis
The number "999" is different on each VM/guest

Now I can read on
File Manager -> sf_Transfer_Folder.

Lot of thanks for your advice.

Regards

Furthermore, pls guide me where to mark this posting as "SOLVED"? Sorry I forgot !
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Solved - Problem on sharing files btw Host and VM

Post by scottgus1 »

You can edit the first post and change the Subject. I did it already. Glad you're up and running!
satimis
Posts: 506
Joined: 12. Jun 2007, 03:41

Re: Solved - Problem on sharing files btw Host and VM

Post by satimis »

scottgus1 wrote:You can edit the first post and change the Subject. I did it already. Glad you're up and running!
Thanks

Regards
Post Reply