FOG with TrueNAS on Proxmox Setup
-
Hi,
I’m planning on setting up FOG in a vm on Proxmox, I’ve had trouble in the past giving access to storage from my TrueNAS Scale VM which is running on the same Proxmox.
What is the best way to do this?
I’ve tried NFS and had errors when I go to take an image, I don’t remember them exactly but it was on the lines of having trouble mounting NFS. Would using virtual iSCSI work?
Thanks
-
@OutlastTrace said in FOG with TrueNAS on Proxmox Setup:
I’ve tried NFS and had errors when I go to take an image, I don’t remember them exactly but it was on the lines of having trouble mounting NFS. Would using virtual iSCSI work?
As FOS (our custom build FOG Linux OS doing all the heavy lifting for you) is using NFS mounting as well this would be like re-exporting a mounted NFS share. NFS does not support this by definition. You can give iSCSI a try, no promise it will work and give you good performance though.
-
@Sebastian-Roth said in FOG with TrueNAS on Proxmox Setup:
You can give iSCSI a try, no promise it will work and give you good performance though.
What can I do then if iSCSI isn’t supported? Do I basically need to get disk dedicated to FOG and pass them through to the VM?
-
@OutlastTrace The easiest way is via a dedicated disk. As Sebastian mentioned that iSCSI disk will be a block device to the FOG server so it can be shared. Resharing an NFS share is akin to mounting a remote share on a windows server as the w: drive then trying to share that to a third computer.
You can try to configure your truenas device as a fog storage node. We’ve done that with other nas device such as readynas and synology. The truenas device needs to support NFS and tfp services.
Synology nas as fog storage node:
https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-nodeMake windows 2012 as a fog storage node (proof of concept only) https://forums.fogproject.org/topic/10097/setting-up-a-windows-2012-server-as-a-fog-storage-node
The thing you have to remember about FOG is that the FOS Linux OS (engine that clone’s hard drive) uses the “root” user account to copy files. So if your nfs share has squashroot attribute then the “FOS Linux root user” won’t be able to mount the nfs share on truenas. Look over both tutorials then you should have enough info to configure truenas as a FOG storage node if you want to go down that path.
-
Thanks your the clarification, would it be best to pass through the whole disk or create a virtual disk? As another option is to mount the NFS share in Proxmox and then create a virtual drive from that and pass it through to the VM
I’m not sure that TrueNAS could be used as a storage node as it definitely supports NFS but not sure what tfp is.
-
@OutlastTrace said in FOG with TrueNAS on Proxmox Setup:
not sure what tfp is.
well that should have read ftp
-
@george1421 Oh that makes sense I did guess that TrueNAS scale supports that too