Add check for WSL when determining if Hyper-V is usable
This commit is contained in:
parent
d84f29f12c
commit
1e5c8bf275
|
@ -12,11 +12,12 @@ module VagrantPlugins
|
||||||
attr_reader :driver
|
attr_reader :driver
|
||||||
|
|
||||||
def self.usable?(raise_error=false)
|
def self.usable?(raise_error=false)
|
||||||
if !Vagrant::Util::Platform.windows?
|
if !Vagrant::Util::Platform.windows? &&
|
||||||
|
!Vagrant::Util::Platform.wsl?
|
||||||
raise Errors::WindowsRequired
|
raise Errors::WindowsRequired
|
||||||
end
|
end
|
||||||
|
|
||||||
if !Vagrant::Util::Platform.windows_admin? and
|
if !Vagrant::Util::Platform.windows_admin? &&
|
||||||
!Vagrant::Util::Platform.windows_hyperv_admin?
|
!Vagrant::Util::Platform.windows_hyperv_admin?
|
||||||
raise Errors::AdminRequired
|
raise Errors::AdminRequired
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue