SMB/CIFS Share für Tunkey LXC geht nicht

AlexD

Member
Jan 16, 2020
74
7
8
51
Zwecks Backup möchte ich gerne in mein DokuWiki Turnkey LXC Container eine SMB/CIFS Share einbinden.

mount -a
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

???

ping 192.168.0.12
PING 192.168.0.12 (192.168.0.12) 56(84) bytes of data.
From 192.168.0.152 icmp_seq=1 Destination Host Unreachable

Warum ist 192.168.0.12 nicht erreichbar aus dem LXC Container, bzw. was muss ich tun um ihn erreichbar zu machen?

Die Freigabe ist im Netzwerk erreichbar, nur eben nicht aus dem LXC Container. Das Wiki ist über die IP des LXC erreichbar.

Jemand eine Idee?

DANKE
 
Ja. Hast du einen kompletten Neustart vom Proxmox schon versucht. Habe selber manchmal Verbindungsproblrme festgestellt, die nach einem Neustart behoben waren.
 
Nein ich meinte beim Einrichten des Containers.

Was konkret meinst Du?

Das ganze wurde wie folgt eingerichtet:

1. apt-get install cifs-utils
2. mkdir /mnt/Backup
3. nano /root/.smbcredits

username=root
password=abc123

4. nano /etc/fstab

//192.168.0.12/Backup /mnt/Backup cifs credentials=/root/.smbcredits 0 0

5. mount -a
 
  • Like
Reactions: Eiserfeyer
Habe mein Post ausgebessert, da ich deine Angaben am Handy unvollständig gelesen habe. Neustart Proxmox schon versucht.
 
Bei Recherchen bin ich über diesen Tipp gestolpert: Proxmox lxc.conf anpassen

/etc/pve/nodes/pve1/lxc/100.conf

Freigabe eintragen:

lxc.mount.entry: /mnt/irgendwas mnt/irgendwas none bind,optional,create=dir

Nach dieser Änderung und einem Neustart des LXC Containers ist meine Freigabe gemountet.
 
Last edited:
  • Like
Reactions: noPa$$word

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!