This is what I tried so far.
1-I try to run the command you mentioned,
$ sudo dnf -q provides */smb.service
samba-4.12.3-12.el8.3.x86_64 : Server and Client software to interoperate with Windows machines
Repo : baseos
Filename : /usr/lib/systemd/system/smb.service
it didn't display anything thing other than the following response.
No such command: provide. Please use /usr/bin/dnf --help
It could be a DNF plugin command, try: "dnf install 'dnf-command(provide)'"
However I can see smb.service file in /usr/lib/systemd/system
2. I installed samba and I was able to start the smb service and can check the status. However I'm still unable to mount directory from one centos vm to another. This is what I'm getting now.
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
I added below commands in smb.config file
path = /smbshare
read only = No
guest ok = No
Valid users = smbuser1
browsable = Yes
I'm not sharing my home directory though. I ran this command " smbclient -L 10.*.*.* -U smbuser1" I can get response I can see the below directories.
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
IPC$ IPC IPC Service (Samba 4.12.3)
This is where I'm stuck. Thank you for your help.