VMware Inc’s second-quarter profit and revenue beat analysts’ estimates on Thursday, helped by strong demand for its cloud-based software services.