Problem on sharing files btw Windows VM and Linux Host

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

Problem on sharing files btw Windows VM and Linux Host

Post by satimis »

Hi all,

Ubuntu 22.04 desktop host
Windows 11 VM

I have share-folder setup on Windows 11 VM
Please see screenshot-1

Also Windows VM can see the share-folder
Please see screenshot-2

But I can't tranfer files between them. Please advise.

Thanks

Regards
screenshot-1_30.png
screenshot-1_30.png (82.09 KiB) Viewed 1417 times
screenshot-2_20.png
screenshot-2_20.png (81.61 KiB) Viewed 1417 times
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Problem on sharing files btw Windows VM and Linux Host

Post by scottgus1 »

What happens when you try to transfer files? Host to VM? VM to host?

What does "transfer" mean? Move the file into the shared folder then move it out on the other OS? Open the file while it is still in the shared folder?

Are the permissions on the Linux host open enough to allow you to share a host folder?
satimis
Posts: 506
Joined: 12. Jun 2007, 03:41

Re: Problem on sharing files btw Windows VM and Linux Host

Post by satimis »

scottgus1 wrote: 3. Dec 2023, 18:14 What happens when you try to transfer files? Host to VM? VM to host?
copy files from Host to VM, only a link created

Copy files from VM to Host - no action, files not copied
What does "transfer" mean? Move the file into the shared folder then move it out on the other OS? Open the file while it is still in the shared folder?
Transfer -> copy or move
Are the permissions on the Linux host open enough to allow you to share a host folder?
The setup is similar to files sharing btw Linux Host and Linux VM. It works without problem btw Linux Host and Linux VM.

How to make a further check? Tks

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

Re: Problem on sharing files btw Windows VM and Linux Host

Post by scottgus1 »

Thanks for the info. This sounds like a Linux thing, we'll need a Linux guru on this one.
satimis
Posts: 506
Joined: 12. Jun 2007, 03:41

Re: Problem on sharing files btw Windows VM and Linux Host

Post by satimis »

There are many Linux ways in the past. Samba is one of the solution.

Following document provides a detail instruction,

How to Share Ubuntu Public Folder with Windows 11
https://geekrewind.com/how-to-share-ubu ... indows-11/

I'm in anticipation to find whether it can be solved in VirtualBox

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

Re: Problem on sharing files btw Windows VM and Linux Host

Post by scottgus1 »

Please start the VM from full normal shutdown, not save-state. Run until you see the problem happen, then shut down the VM from within the VM's OS if possible. If not possible, close the Virtualbox window for the VM with the Power Off option set.

Right-click the VM in the main Virtualbox window's VM list, choose Show in Explorer/Finder/File Manager. In the "Logs" subfolder, zip the VM's "vbox.log", and post the zip file, using the forum's Attachments tab. (Configure your host OS to show all extensions so you can find the "vbox.log", not "vbox.log.1", etc.)
satimis
Posts: 506
Joined: 12. Jun 2007, 03:41

Re: Problem on sharing files btw Windows VM and Linux Host

Post by satimis »

scottgus1 wrote: 4. Dec 2023, 19:32 Please start the VM from full normal shutdown, not save-state. Run until you see the problem happen, then shut down the VM from within the VM's OS if possible. If not possible, close the Virtualbox window for the VM with the Power Off option set.

Right-click the VM in the main Virtualbox window's VM list, choose Show in Explorer/Finder/File Manager. In the "Logs" subfolder, zip the VM's "vbox.log", and post the zip file, using the forum's Attachments tab.
I'll perform the test as advised later. Thanks
(Configure your host OS to show all extensions so you can find the "vbox.log", not "vbox.log.1", etc.)
Please advise how to do it. The Host is Ubuntu 22.04 desktop.

Thanks

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

Re: Problem on sharing files btw Windows VM and Linux Host

Post by scottgus1 »

satimis wrote: 5. Dec 2023, 03:27 Please advise how to do it.
That's a good subject for a web search.
satimis
Posts: 506
Joined: 12. Jun 2007, 03:41

Re: Problem on sharing files btw Windows VM and Linux Host

Post by satimis »

Hi scottgus1,

Perform the steps as advised. The compressed log file is attached to this post.

Regards
VBox.log.zip
(42.05 KiB) Downloaded 45 times
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Problem on sharing files btw Windows VM and Linux Host

Post by scottgus1 »

The old log, host extension problem, and Extension Pack version problems are the same as viewtopic.php?p=544177#p544177

Guest Additions are installed, and the Virtualbox Shared Folder is automounting:
00:00:13.918944 VMMDev: Guest Log: 03:38:02.665240 automount vbsvcAutomounterMountIt: Successfully mounted 'Transfer_Folder' on 'Z:'
I don't see any use of the Virtualbox Shared Folder in the log.

Based on both topics, I think this is a permissions problem on the host. A Linux guru may be needed to suggest diagnostic steps.
Post Reply