International Business Machines Corp. is in advanced talks to acquire software company HashiCorp Inc., according to people with knowledge of the matter.