VMware Inc said on Thursday that it would buy Pivotal Software Inc, a maker of software development and management tools, in a deal valued at $2.7 billion.