VMware Inc said on Thursday it bought two software companies in separate deals valued at about $5 billion, looking to expand the range of products and services it offers to its corporate clients.