Like I said, permissions are always challenging for me, and it involves a lot of trial and error. So, you have ResourceSpace installed in a VM through Virtualbox. What is the OS of the box where the VM resides? How are mounting filestore? Is it an SMB share or something else?
With Unraid, sharing using SMB wasn't working because I wanted those folders secured with a username and password and doing so prevented ResourceSpace from writing. I could never figure out why. On the suggestion from a friend, I elected to use 9p since that seemed more compatible with Unraid in this instance.
Here is my configuration:
NAS has three shared directories: filestore, resized, and rs_system (i.e. system). Filestore resides on the array of mechanical drives totaling 54TB. Resized and rs_system reside on an SSD.
Ubuntu VM: I created an unraid directory in root. No specific reason, just to help keep things organized in my head. I then created a symlink where ResourceSpace is installed for filestore pointing to /unraid. (ln -s /unraid filestore) I then mounted the NAS filestore to /unraid, resized to /unraid/resized, and rs_system to /unraid/system.
Here is what my fstab configuration looks like. Yours will probably be different since mine is for Unraid.
------
filestore /unraid 9p
user=<username>,password=<password>,trans=virtio,version=9p2000.L,rw,_netdev 0 2
resized /unraid/resized 9p user=<username>,password=<password>,trans=virtio,version=9p2000.L,rw,_netdev 0 2
rs_system /unraid/system 9p
user=<username>,password=<password>,trans=virtio,version=9p2000.L,rw,_netdev 0 2
------
I'm not sure if you've done this or if it does anything, but try adding the $storagedir and $storageurl to your ResourceSpace config.
------
$storagedir = '/var/www/html/filestore';
$storageurl = 'http://<url>/unraid';
------
Make sure everything in filestore has the correct user:group permissions. Mine is elec:users but yours may be different.
Hopefully this helps point you in the right direction.