SAMBA issue

macamba

Renowned Member
Mar 8, 2011
96
5
73
I just installed Proxmox 1.9 and added the SAMBA package (via lenny-backports) to this host.
I defined shares on the host and they are all accessible via my Windows systems and multimedia appliances in my home.

I also whant to access these shares on the host from a Debian 6 install in a OpenVZ container, but I always get an error message in the OpenVZ guest. Steps followed:
1) I created a mount directory in the guest: mkdir /media/data3
2) Added the SAMBA share to /etc/fstab on the guest: //192.168.0.100/data3 /media/data3 smbfs username=root,password=xxxx 0 0
3) Issue a: mount -a
4) Results in the following error:
mount error: cifs filesystem not supported by the system
mount error(19): No such device
Refer to the mount.cifs(8) manual page (e.g. man mount cifs)

I tried to use CIFS as filesystem type in /etc/fstab instead of smbfs but still the same error. I also tried installing SAMBA package, CIFS-utils, and smbfs package in the guest system. But no luck! Any suggestions?

Macamba
 
You are rely amazing responding so quickly! My compliments!
I read the OpenVZ post. Do I conclude correctly that if SAMBA server is installed on the Proxmox 1.9 host I can skip the first step of the following two:
1) mount -t cifs //192.168.1.30/test /mn
2) mount --bind /mn /vz/root/101/mn

And is /vz/root/ equivalent to /var/lib/vz/root on Proxmox?
 
Last edited:
you need to mount such thing on the host and make it available in the container via bind mounts. see also http://wiki.openvz.org/Bind_mounts, also search this forum.
 
For the people also searching for a solution, this worked for me, two options:
1) Manually: bind a directory on the host (a local dir or SAMBA share defined on host) to OpenVZ container: i.e. mount --bind /media/data3 /var/lib/vz/root/151/media/data3 (step to be executed on the host)
2) Automatically (step to be executed on the host): script to bind a directory on the host (a local dir or SAMBA share defined on host) to OpenVZ container:
A. Create <container_id>.mount script in /etc/vz/conf, i.e. 151.mount (with nano or vi)
B. Content script:
#!/bin/sh
mount -n --bind /media/data2 /var/lib/vz/root/151/media/data2
mount -n --bind /media/data3 /var/lib/vz/root/151/media/data3
C. make the 151.mount executable

For more info: http://forum.openvz.org/index.php?t=msg&goto=27003&
 
Last edited:
I just installed Proxmox 1.9 and added the SAMBA package (via lenny-backports) to this host.

Hello, this is my first post on this forum :) Great software guys!

So back on topic: can you please describe how you managed to install from lenny-backports? I'm trying the whole morning but the best I get is

The following packages have unmet dependencies:
samba: Depends: samba-common (= 2:3.5.6~dfsg-3~bpo50+1) but 2:3.2.5-4lenny15 i s to be installed
Depends: libwbclient0 (= 2:3.5.6~dfsg-3~bpo50+1) but 2:3.2.5-4lenny15 i s to be installed
E: Broken packages

Thanks!
Cheers.
 
you also need to install listed other related packages from lenny-backports.
 
you also need to install listed other related packages from lenny-backports.

Hi tom. Thanks. Now it worked.

I also tried before asking but I think I messed up with the repositories so it didn work then.
 

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!