Automatic provisioning for cloud machines