Share folder with ubuntu

lilphoenix

New Member
Feb 10, 2016
14
0
1
36
Hi, I newbie on Proxmox.
I've a problem.
I created a CT with Ubuntu15's container. On it, I want mount a share folder by my other ubuntu server with Samba.
How can I do?

By the command :
sudo mount -t cifs //192.168.0.5/Films /media/Films/ -o username=lilphoenix
I've the error message :
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


Thanks for your help.
 
Hi, I think proxmox has nothing to do with this, probably...
and although I never used a samba share with linuxes only, but the error message says it's a permission denied problem... have you double checked login/password, and maybe tried to add also the workgroup name info into options... like

-o username=lilphoenix, workgroup=myworkgroup

depending on (I guess) samba host version sometimes also works like
-o username=myusername@myworkgroup

or

- o username=myworkgrpoup/myusername

Marco
 
Thks for your answer but none of your solutions work. Maybe another solution possible without samba ?
 
Linuxes can mount remote resources using plenty of protocols, but afaik one of the most used is NFS, which also has server and client components. https://en.wikipedia.org/wiki/Network_File_System

I would also try on some ubuntu forum to get more hints about that samba share... it should work... it could be useful if you'll ever need windows clients to acess that share, too.

I just guess this post here is a bit off topic, as not much pve-related... :)

Marco
 
  • Like
Reactions: lilphoenix
My Shane with samba works good with all my device (androphone, computer Linux and windowd) just don't work with proxmox.
 
I just double checked: I can mount on ubuntu a samba share offered by another ubuntu, both on the same pve cluster with: sudo mount -t cifs //<ipserver>/sharename /mnt/test -o username=<username>,workgroup=<workgroupname>

Do you have this package installed on the client ubuntu (the one on proxmox), cifs-utils?
It was missing on my ubuntu client, and it refused connection (error was "
mount: cannot mount block device //<host>/<share> read-only"), I just apt-get installed cifs-utils, and then the remote samba share mounted instantly...

Marco
 
Last edited:
Yes this package it's installed. But my share folder it's on another server (another hardware server). The smb.conf on this server it's like : [share]
Path =
Abailable = yes
Browseable = yes
Public = yes
Security = share
Writeable = yes
Force user= lilphoenix
 
I install NFSon my server and that is the config file : /Films 192.168.0.*(rw,all_quash,no_root_squash)
On CT I've install client nfs, and that's the error message with this command : mount -t nfs 192.168.0.5:/Films /media/Films/
mount.nfs: access denied by server while mounting 192.168.0.5:/Films
 
Hope this can help you,

this is my samba share config on the ubuntu kvm server

[htdocs]
path = /var/www
available = yes
valid users = @domain\group
read only = no
browseable = yes
public = yes
writable = yes
create mode = 0660
directory mode = 0770

as for nfs server, I have a qnap appliance, connected to pve cluster and the lan, its config is like

#cat /etc/exports
"/share/MD1_DATA/Download" 192.168.0.*(rw,async,no_root_squash,insecure)

I was wondering, also, since newer versions of pve have a firewall, if this (if present and activated on the pve host) could make troubles, but you get a "permission denied" error, so the remote server IS answering, but it thinks credentials are wrong, somehow.
Maybe you could also check the remote samba/nfs server logs to spot what it's getting from your virtual samba/nfs client... and possibly why it thinks credentials are wrong

Marco
 
I modify smb.conf with available. I try same conf like U m.ardito. But I've still same error.
I try same exports file, but still same error :
mount -t nfs 192.168.0.5:/Films /media/Films/ -v
mount.nfs: timeout set for Thu Feb 11 13:00:20 2016
mount.nfs: trying text-based options 'vers=4,addr=192.168.0.5,clientaddr=192.168.0.10'
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting 192.168.0.5:/Films
 
I'm nearly out of ideas... the only other thing that comes to mind is that server and client OS components (samba, nfs, or their dependencies) types/versions could be so different to be not compatible... o_O

check the server access logs to be sure the request comes from the right IP address, even if it seems obvious, something like that could certainly cause the issue...

otherwise, as I said before, I'd refer to some dedicated ubuntu forum to get some more hint from both client and server OS...

Marco
 
I succes mount the nfs share on proxmox host. Now I need to share the folder on proxmox host to the container.

But mount --bind /media/Films /var/lib/vz/root/101/media/Films command doesn't works
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!