I’ve asked this question first at What is needed to use Vagrant with Hyper-V - Super User
I’ve set up vagrant as described in the docs.
vagrant up I get the following message:
Bringing machine 'default' up with 'hyperv' provider... ==> default: Verifying Hyper-V is enabled... The Hyper-V cmdlets for PowerShell are not available! Vagrant requires these to control Hyper-V. Please enable them in the "Windows Features" control panel and try again.
While I understand the message, I feel this is not the underlying issue. I did
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
and the following reboot.
Get-VM lists all my machines. So I feel the Hyper-V cmdlets should be installed and usable.
This is running on Windows 10 20H2, Vagrant version is 2.2.14, Hyper-V PowerShell module version is 22.214.171.124
What am I missing here?