Set the vm to use 2 cpu cores, added a usefull comment to be switched on when debugging puppet.
Stopped using recursive when changing permission on directories. Surprisingly with only one project in the var/www folder these commands running recursively made puppet hang for a very long time.