an CIFS share on a FreeNAS server which will be available in the Proxmox VE server.
Which can be used as vm storage or backup of your vm's for example.
Which can be used as vm storage or backup of your vm's for example.
Tested configuration
Server 1: FreeNAS 8.3.0 with hard drives and a usb stick.
Server 2: Proxmox VE 2.2, 3.3 or 3,4 installed and running.
Server 2: Proxmox VE 2.2, 3.3 or 3,4 installed and running.
Installation
Server 1: FreeNAS
Install FreeNAS on this server with default settings on the usb stick or seperate storage.
When the installation is finished log into your FreeNAS web interface.
Change your default admin password.
- "Account" - "Admin account" - "Change Password"-
Let's make a disk volume.
- "Storage" - "Volumes" - "Volume Manager"
Volume name: data (for example)
Choose the "hard drives" you want to add to this volume.
Select "ZFS" as the filesystem.
Next to make a ZFS Dataset to keep everything tidy when you want to create for example seperate datasets,
for example one for backup and the other one storage. This way you can assign different rights to it and keep it seperated.
- "Storage" - "Volumes" - "data" (or other name you gave to your disk volume) - "Create ZFS Dataset
Dataset Name: backup-vm (for example)
Now we will adjust the permissions of this Dataset.
In this how-to we will give everyone access and modify permissions to this Dataset including guests.
- "Storage" - "Volumes" - "data" - "backup-vm" - "Change permissions"
Check all settings in Mode.
Let's make a CIFS share.
- "Sharing" - "Windows (CIFS) shares" - "Add Windows (CIFS) share"
Share name: vm_backup
Browse path: "data"
Allow guest access: "checked"
Now a notification appears asking if you want to start the service. Click "Yes".
Check if you can access this CIFS share using your computer.
Create a folder or a txt file in it to see if you have the right persmissions.
If this is possible then the share is succesfully created and ready t be used.
Server 2: Proxmox VE
Let's add your windows share in your Proxmox VE.
Open the Proxmox "Shell"
Let's create a directory where your CIFS share will be mounted.
type: mkdir /mnt/vm_backup (for example)
Adjust the file system table.
Here will be the list of the disk and partitions.
By adding your CIFS share in here the CIFS will also be mounted when you restart
your Proxmox VE server.
type: nano/etc/fstab
add the following line at the bottom:
//ip-address-of-server1/vm_backup /mnt/vm_backup username=yourusername,password=yourpassword 0 0
Now activate the CIFS share.
type: mount //ip-address-of-server1/vm_backup
Close the Proxmox VE Shell and return the Proxmox VE web interface.
- Click on the folder icon "Datacenter"
- Click on the tab "Storage"
- Click on "Add"
- Click on "Directory"
Now in the new screen that appears fill in the following values.
ID: vm-backup (for example)
Directory: //mnt/vm_backup
Content: choose the content what you want to store on this share
Adjust the other options to your needs.
That's it.
Your CIFS share has now been added in your proxmox VE and ready to be used.
Install FreeNAS on this server with default settings on the usb stick or seperate storage.
When the installation is finished log into your FreeNAS web interface.
Change your default admin password.
- "Account" - "Admin account" - "Change Password"-
Let's make a disk volume.
- "Storage" - "Volumes" - "Volume Manager"
Volume name: data (for example)
Choose the "hard drives" you want to add to this volume.
Select "ZFS" as the filesystem.
Next to make a ZFS Dataset to keep everything tidy when you want to create for example seperate datasets,
for example one for backup and the other one storage. This way you can assign different rights to it and keep it seperated.
- "Storage" - "Volumes" - "data" (or other name you gave to your disk volume) - "Create ZFS Dataset
Dataset Name: backup-vm (for example)
Now we will adjust the permissions of this Dataset.
In this how-to we will give everyone access and modify permissions to this Dataset including guests.
- "Storage" - "Volumes" - "data" - "backup-vm" - "Change permissions"
Check all settings in Mode.
Let's make a CIFS share.
- "Sharing" - "Windows (CIFS) shares" - "Add Windows (CIFS) share"
Share name: vm_backup
Browse path: "data"
Allow guest access: "checked"
Now a notification appears asking if you want to start the service. Click "Yes".
Check if you can access this CIFS share using your computer.
Create a folder or a txt file in it to see if you have the right persmissions.
If this is possible then the share is succesfully created and ready t be used.
Server 2: Proxmox VE
Let's add your windows share in your Proxmox VE.
Open the Proxmox "Shell"
Let's create a directory where your CIFS share will be mounted.
type: mkdir /mnt/vm_backup (for example)
Adjust the file system table.
Here will be the list of the disk and partitions.
By adding your CIFS share in here the CIFS will also be mounted when you restart
your Proxmox VE server.
type: nano/etc/fstab
add the following line at the bottom:
//ip-address-of-server1/vm_backup /mnt/vm_backup username=yourusername,password=yourpassword 0 0
Now activate the CIFS share.
type: mount //ip-address-of-server1/vm_backup
Close the Proxmox VE Shell and return the Proxmox VE web interface.
- Click on the folder icon "Datacenter"
- Click on the tab "Storage"
- Click on "Add"
- Click on "Directory"
Now in the new screen that appears fill in the following values.
ID: vm-backup (for example)
Directory: //mnt/vm_backup
Content: choose the content what you want to store on this share
Adjust the other options to your needs.
That's it.
Your CIFS share has now been added in your proxmox VE and ready to be used.