5

I'm trying to share a folder between my main OS (openSUSE 42.1) to a guest Windows 7 virtual machine, but I'm unable to set it up properly.

I access the VM from virt-manager, and I've read that the best way to accomplish this is to use Samba.

I've added this section to my /etc/samba/smb.conf

[shared]
    comment = my shared folder
    guest ok = Yes
    inherit acls = Yes
    path = /home/user/shared
    read only = No
    browseable = Yes

and I set the permissions of /home/user/shared to drwxrwxrwx, and made sure that smb.service is up and running.

But when I run the Windows VM and I try to connect to the shared folder, I can't neither access or even see it.

How can I solve this?

  • can you navigate to the samba share using a web browser? Try opening a web browser and as the URL use: smb://[hostname of Linux host]. If you don't have a DNS then you can use the IP of the Linux host instead. – Centimane Jun 29 '16 at 15:39
  • No, I can't navigate to it from the Web browser. I was trying to mount it from the file browser not from the console – Sekhemty Jun 29 '16 at 16:06
  • If you cannot navigate to it using the web browser the issue is the smb server. Your conf file looks fine, so check out the status of the smb service. What does service smb status tell you? Can you also post your full smb.conf? The [global] section may be the culprit (though I doubt it) – Centimane Jun 29 '16 at 16:18
  • I can access smb://MyLinuxHost from a web browser inside Linux, does it make any difference? – Sekhemty Jun 29 '16 at 16:20
  • 1
    I tried to disable the firewall and now it works. I've added the required exceptions and now it is all correctly set up. Thank you! – Sekhemty Jun 29 '16 at 16:35
3

The problem was that the Firewall was blocking the connections on the ports used by Samba.

I had to add the necessary exceptions and now it works as expected.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.