Configuring KVM inside Ubuntu Hyper-V client
7,227
The article Running KVM Nested in Microsoft Hyper-V reports this procedure :
- Download this PowerShell script from Github (written by Microsoft)
- Copy the script to your desktop
- Open up an elevated PowerShell instance
- Change current folder to the location of the PowerShell Script
-
Run the following command to allow for script execution in Powershell
Set-ExecutionPolicy Bypass
Run
.\nameofscript.ps1 name-of-linux-vm-in-hyper-v
- If all goes well it should prompt you asking if you want to expose Virtualization Extensions. Answer Yes, also enable any other additions as you wish.
- After the script completes, boot the VM in Hyper-V and you should now have access to the virtualization extensions required for KVM/XEN.
Related videos on Youtube
Author by
TheEdge
Updated on September 18, 2022Comments
-
TheEdge over 1 year
Is it possible to run KVM on an Ubuntu 18.04 guest in Hyper-V on Windows 10? Or any other hypervisor inside the guest?
After installing KVM I run:
sudo kvm-ok
and it tells me my CPU does not support KVM extensions.
And to foreshadow: "Why are you trying to run a hypervisor inside a hypervisor.... I want to play with https://hypercontainer.io and don't have a bare metal Linux machine to play with.
-
Daniel B almost 6 yearsWith nested virtualization, your options are very limited. Try VMware Player or Workstation (trial versions are available).
-
-
datafiddler about 5 yearsI agreed to shut down the HVMachine, enlarge RAM to 4GB, and all seemed fine, but after restarting the VM, it still says.
INFO: Your CPU does not support KVM extensions KVM acceleration can NOT be used