SOLVED mount smb share inside vm

kennis942

Dabbler
Joined
Oct 4, 2018
Messages
21
This share does work from truenas to windows 10.
The os in the vm is Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
i have tried several combinations with no luck... any other way of doing this is welcome aswell.
 

Attachments

  • Screenshot_123123.png
    Screenshot_123123.png
    30.3 KB · Views: 1,428

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
It depends on how you setup bridges and networking.. describe how you did it and people might see where the issue is.
 

kennis942

Dabbler
Joined
Oct 4, 2018
Messages
21
It depends on how you setup bridges and networking.. describe how you did it and people might see where the issue is.
I dont know if this is what you mean but here we go trying; everything network related
 

Attachments

  • Screenshot_nic.png
    Screenshot_nic.png
    24.1 KB · Views: 1,288
  • Screenshot_ipaddr.png
    Screenshot_ipaddr.png
    18.2 KB · Views: 924
  • Screenshot_network.png
    Screenshot_network.png
    44.6 KB · Views: 1,023

kennis942

Dabbler
Joined
Oct 4, 2018
Messages
21

Attachments

  • Screenshot_wut.png
    Screenshot_wut.png
    62 KB · Views: 1,206
Last edited:

beagle

Explorer
Joined
Jun 15, 2020
Messages
91
Does the mount point exist (i.e. /share or /mnt/share)? These error messages are saying the folder you are trying to mount the share doesn't exist.
 

kennis942

Dabbler
Joined
Oct 4, 2018
Messages
21
Does the mount point exist (i.e. /share or /mnt/share)? These error messages are saying the folder you are trying to mount the share doesn't exist.
yes i created "share" under /mnt/ on the vm and share does exist... this is what it looks like mounted in windows
 

Attachments

  • Screenshot_winshare.png
    Screenshot_winshare.png
    8.1 KB · Views: 1,328
Last edited:

beagle

Explorer
Joined
Jun 15, 2020
Messages
91
Could you please take a screenshot of the output of the command?

mount -t cifs -o username=conti,password=mordi,vers=3.0 //192.168.1.227/media /mnt/share

I think you may be misspelling the username parameter as user and missing the share name. (e.g. media or backup)
 

kennis942

Dabbler
Joined
Oct 4, 2018
Messages
21
Could you please take a screenshot of the output of the command?

mount -t cifs -o username=conti,password=mordi,vers=3.0 //192.168.1.227/media /mnt/share

I think you may be misspelling the username parameter as user and missing the share name. (e.g. media or backup)
i could but, it is the correct login info ACL is st up like this: share root is owned by group sharecontrollers@, members of that groups is "cont" (i was originally writing controller but limited characters so...) and ken both have full perms to smb share root.
 

beagle

Explorer
Joined
Jun 15, 2020
Messages
91
I'm not questioning your ACL setup, I'm just trying to say you may have a typo on your parameters.

I believe the parameter is username= and you are using user=. Also, you need to ensure the mount point (folder /mnt/share) already exists.

Your command:

sudo mount -t cifs //192.168.1.227/ /share -o user=cont,password=mordi,vers=3

My suggestion:

sudo mount -t cifs -o username=cont,password=mordi,vers=3.0 //192.168.1.227/media /mnt/share
 

kennis942

Dabbler
Joined
Oct 4, 2018
Messages
21
I'm not questioning your ACL setup, I'm just trying to say you may have a typo on your parameters.

I believe the parameter is username= and you are using user=. Also, you need to ensure the mount point (folder /mnt/share) already exists.

Your command:

sudo mount -t cifs //192.168.1.227/ /share -o user=cont,password=mordi,vers=3

My suggestion:

sudo mount -t cifs -o username=cont,password=mordi,vers=3.0 //192.168.1.227/media /mnt/share
reason for that is i read in the man page alias for variable is username= or user=
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
So the VM that can't mount is an ubuntu VM using SMB?

You might want to verify that VM.. suggested sequence
networking
simple nfs with a simple dataset
then SMB with permissions

Or try with a windows VM

I don't know of anyone having a similar issue. But, if there are, please make it known.
 

kennis942

Dabbler
Joined
Oct 4, 2018
Messages
21
So the VM that can't mount is an ubuntu VM using SMB?

You might want to verify that VM.. suggested sequence
networking
simple nfs with a simple dataset
then SMB with permissions

Or try with a windows VM

I don't know of anyone having a similar issue. But, if there are, please make it known.
from my windows machine im on right now i have no problem connecting/mounting to the share
inside Ubuntu VM it gives errors when i try to mount.
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
@kennis942 From the screenshots you've posted, you are simply using incorrect syntax for the cifs mount in your ubuntu vm as already pointed out by @beagle above in #10.

In windows you have three shared folders: backup, media and TestSteam.

@beagle has given you the correct syntax to mount one of those shared folders in Ubuntu, using the "media" share as an example.
 

kennis942

Dabbler
Joined
Oct 4, 2018
Messages
21
solved by fiverr alishankk, by adding parameters iocharset=utf8,sec=ntlm
 
Last edited:
Top