I have a dedicated server hosted by ovh.
I created a path in /var/vmfiles. I gave www-data owner permission (chown and chgroup) and I set 777 as file permission (chmod)
I'm still getting this error:
vmError: Warning, the Safe Path is not accessible (does not exist or no permission). For safety reasons it is very important to create a folder in a path not accessible by an URL or unguessable name, create also a folder 'invoices' and 'keys' in it to store your sensitive data secure. Our suggested path is for your system '/var/vmfiles/'.
You can also use complex folder name as 'password' for example '/var/www/administrator/components/com_virtuemart/fGstE5K8xQIZ/'. Use this link to the config
You need to change this in the vm config>template safe path to /var/vmfiles/