Retrieving a term tree in D8 for a specific vocabulary requires the vid. I can find no function/method/service that will return the vocabulary entity given the machine name, in order to get the vid.