We will share an external hard drive from a Windows, FreeNAS/TrueNAS, Synology machine to Proxmox and share it with existing containers.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EVERYTHING IS DONE FROM THE SHELL OF THE NODE
mkdir /mnt/(name of your share)
nano /etc/fstab
ADD LINE LINKING THE SHARE TO PROXMOX
//(IP Address)/(directory of share) /mnt/(share name) cifs username=(YOUR USERNAME),password=(YOUR PASSWORD),iocharset=utf8,noperm 0 0
Example://192.168.1.13/Temp /mnt/Temp cifs username=Lo-Res,password=thisisnotmypassword,iocharset=utf8,noperm 0 0
SAVE THE FILE AND RELOAD THE MOUNT
mount -a
NOW YOU CAN ADD THE MOUNT TO THE xxx.CONFIG FILE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CONNECT Proxmox SHARE
go to the shell of the Node
cd /etc/pve/lxc/(container you want to add the share too; example 100.conf)
mp0: /mnt/(Your Share),mp=/mnt/
Example: mp0: /mnt/Tank/,mp=/mnt/Tank
If the mount doesn't auto connect after reboot try this
Go to thee Shell of the Node:
nano /etc/network/if-up.d/fstab
Add this content:
#!/bin/sh
mount -a
Make the file executable:
chmod +x /etc/network/if-up.d/fstab
Reboot System
Негізгі бет Mount external hard drive to Proxmox, and share it with containers.
No video
Пікірлер: 90