requires windows pro or higher (workstation)
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
lusrmgr.msc
add your user to Hyper-V Administrators
log out and login for the new permissions to take effect
config.vm.provider "hyperv" do |hyperv|
hyperv.cpus = 2
hyperv.memory = 2048
# allow nested virtualization
hyperv.enable_virtualization_extensions = true
verify nested virt on a vm
egrep -c '(vmx|svm)' /proc/cpuinfo
# assumes kvm is installed for kvm-ok
sudo kvm-ok