Ubuntu VM on Truenas Core accessing ZVOL on NAS

, ,

Hello,

I have the following situation. I have a webserver for internal use on an Ubuntu server 25.10. Because of limited space on the VM I have mounted a ZVOL named websites as root for Apache. This zvol is fully accessible for everyone in ACL.

The mount in fstab is:

192.168.2.2/mnt/Storage/Websites /mnt/Websites nfs auto,nofail,noatime,nolock,intr,tcp,actime=1800 0 0

Now I am having issues setting permissions on the mount even tho I have the ACL properties on full for everyone.

Security is not an issue as the NAS is not accessible from the outside. Can anyone point me to what I need to do to get this fixed?

Thanks in advance,

Andre

You should add the zvol as an additional virtual disk to your VM - no need to mount it on TrueNAS.

Thanks pmh. I see the created zvol now as ‘vda’ in /dev. Trying to make a partition with kpartx but getting error:

Incompatible libdevmapper 1.02.205 (2025-02-27) and kernel driver (unknown version).
device mapper prerequisites not met.

And well I made a little mistake in the last post. I mounted dataset called Websites. My NAS is on 192.168.2.2 as storage. My Ubuntu is on 2 seperate disks on 192.168.2.4. Same machine tho. Ubuntu runs as VM.

Is it possible to give the mount the appropriate rights in FSTAB? As the dataset already has full ACL access. Strange thing is when I look at permissions from Ubuntu it shows 777 permission already.

Schermafbeelding 2026-02-23 153154

I’d use VirtIO instead of AHCI. Unfortunately your new questions are rather guest OS, i.e. Linux specific, so I am out of my league here.

Hopefully somebody else will address them.

Thanks Patrick.

As you can see below I have made it a VirtIO disk. Anyway i think it might be an issue with Ubuntu instead of Truenas. I think I might drop the question there also. At least I want to thank you for your efford.

Regards

Andre

There are quite some users here who are more Linux experienced than I am. :crossed_fingers:

Solved the issue on my Core NAS by installing webmin. Within webmin I put all the rights on 0777. Problem solved.

Thanks for the support.

1 Like