HowTo have a Folder on Synology also visible in all VMs

Witker

Member
Dec 3, 2020
126
6
23
Germany
Hi for transferring data from and to VMs I think it would be best to have a folder on Synology NAS and also have it as 2nd disk in each VM

What do you think?

If this is a good idea Pls help HowTo achieve this.
 
If you want to access a folder on the nas you would need to set it up as a smb share or NFS share and then connect to it from the VM.
 
So I have to add the folder from Synology as storage in ProXmoX and then add it to each of the virtual machines so that every running VM can write read in the same folder?
Will there be a problem with write / read permissions?
 
I have/use a Synology 1815+. I mainly use NFS shares and also iSCSI to Proxmox, VMs etc.

SSH into your Proxmox host: /usr/sbin/showmount -e ip_or_fqdn_to_your_synology_appliance
this will show you all the NFS shares available, if any

If you haven't already, on the Synology appliance, control panel, shared folder create a new share or edit an existing one. you want use the NFS permissions tab.

Pretty straightforward. If you need detailed steps I can provide those.
 
folder from Synology as storage in ProXmoX and then add it to each of the virtual machines so that every running VM can write read in the same folder?
Or put the Folder as Disk directly in the VMs?
Is this the method you use?

I mean
Folder on Synology
1607281230601.png

Then Add this to PM
1607281455386.png
But what to choose as Inhalt ( content)?
I intend to use it as Disk e.g. in Win 10 VMs to Transfer Files
UPS!
I think this is the wrong approach?

I intended then to add this Server. Disk to The VMs
1607282020078.png
What do You Think?
 
Last edited:
On the Synology, control panel, shared folder, NFS permissions you either declare an '*' for the client name which means you can mount this NFS share anywhere on your network or specify an IP address or entire IP address range. Since I have this in my home lab I use the * to simplify things but i won't do this in an enterprise setting.

1607288459005.png

Then as root from your VM for example: /usr/sbin/showmount -e IP_or_FQDN_of your_synology

you then mount the NFS share:
/bin/mkdir -m 755 /mydir
/bin/mount IP_or_FQDN_of your_synology:/volume6/Software /mydir
/bin/df -h
then you should see the NFS mounted on the VM
you may also have to alter the permissions once mounted so users on the VM can read/write to the share, i generally /bin/chmod 1777 /mydir on the NFS share is mounted.
 
if you are trying to get that share mounted to a Window VM, then you have to map a network drive as: \\IP_or_FQDN_of your_synology\Software for example which is my share from my Synology.
 

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!