diff --git a/plugins/providers/hyperv/provider.rb b/plugins/providers/hyperv/provider.rb index 5db9c880d..c1808b6dd 100644 --- a/plugins/providers/hyperv/provider.rb +++ b/plugins/providers/hyperv/provider.rb @@ -12,11 +12,12 @@ module VagrantPlugins attr_reader :driver def self.usable?(raise_error=false) - if !Vagrant::Util::Platform.windows? + if !Vagrant::Util::Platform.windows? && + !Vagrant::Util::Platform.wsl? raise Errors::WindowsRequired end - if !Vagrant::Util::Platform.windows_admin? and + if !Vagrant::Util::Platform.windows_admin? && !Vagrant::Util::Platform.windows_hyperv_admin? raise Errors::AdminRequired end