I'm building a development environment where folders from a host environment (OSX) are mounted in VirtualBox VMs running Ubuntu guests.Our experience is that straightforward VirtualBox shared directories are too slow, so we've typically done this by mounting the directory as an NFS mount within the guest. Real-time editing from the host environment is a requirement.The problem with this is that operations like chown and chgrp fail, and we need to replicate something close to our production environment (e.g. www-data owning the files used by Apache).bindfs looked like a promising possibility:bindfs - mirrors or overlays a local directory with altered permissionsBut it doesn't seem to be possible to change permissions with native unix utilities and system calls. This won't work for me, as I need to integrate with existing configuration management systems (Salt, Puppet) that provision the boxes.Is there some other way to get an NFS mount to look like a regular directory as far as permissions go? Or another alternative for mounting a directory into a VirtualBox VM?EDIT: Here is the output of mount:192.168.34.1:/Users/$me/src/states /etc/apps/state type nfs (rw,vers=3,addr=192.168.34.1)192.168.34.1:/Users/$me/src/apps on /srv/apps type nfs (rw,vers=3,addr=192.168.34.1)When I say that changing permissions 'fails', I mean that I get operation not permitted errors.For example:$ ls -l /srv/wwwtotal 8drwxrwxr-x 4 501 dialout 136 May 31 16:20 default_vhostdrwxrwxr-x 5 501 dialout 170 May 31 16:20 default_vhost_ssl$ chown root /srv/www/*chown: changing ownership of `/srv/www/default_vhost': Operation not permittedchown: changing ownership of `/srv/www/default_vhost_ssl': Operation not permitted
Changing permissions on an NFS mount + sharing directories with a guest VM
permissions;virtualbox;nfs