CpServiceSpb wrote:As I mentioned above the main trouble as I consider as a trouble it is launching VirtualBox under root
Why would you want to run it as 'root'? Just login as 'vboxuser' and run it as 'vboxuser'. Which you
did, successfully.
CpServiceSpb wrote:And a smaller one is to store all configuration folder/files as virtual machines at other 3rd path folder from users home folders to much easier to back up it.
The VMs and the configuration data, are "per user". So, if you simply login as 'vboxuser', and you create (and register) your VMs as 'vboxuser', then all the data and the configuration will be stored under the 'vboxuser' account; the data (VMs) in '
/home/vboxuser/VirtualBox VMs', and the configuration in '
/home/vboxuser/.config/VirtualBox'. So, that's as clean as it gets.
If on the other hand you login as 'root', and then try to
'su -c vboxuser' then you're going the wrong way. Leave the 'root' out of the equation. If you do not involve the 'root' user, everything gets simplified. Not sure why you want to complicate things unnecessarily with other roles, environmental variables, etc.