
Hello, I am running oVirt 3.5.3.1. I am trying to setup a virtual lab to emulate a client's environment to do some testing. They are running a Hyper-V environment. I created a Microsoft Server 2008R2 guest. When I tried to install the Hyper-V role, the system said that I needed to have hardware virtualization support enabled in the BIOS. I came across some posts about enabling "Hyper-V enlightenment" in KVM, but: 1.) I am not sure this is what I am actually looking ofr. It looks like it is to make some Windows guests perform a bit better (as if they were in a Hyper-V environment); and 2.) Assuming this is what I am looking for, I am not sure how to enable it in oVirt (I saw that there were a couple of patches to support it in oVirt 3.5). I am not seeing anything in the GUI. Is this something that would need to be edited on the CLI? If so, how? if ti can be enabled for a guest in the GUI (via it's "Edit" settings?), where do I do so? Thanks! :-)

On September 26, 2015 4:26:22 AM CEST, Alan Murrell <lists@murrell.ca> wrote:
Hello,
I am running oVirt 3.5.3.1. I am trying to setup a virtual lab to emulate a client's environment to do some testing. They are running a
Hyper-V environment.
I created a Microsoft Server 2008R2 guest. When I tried to install the Hyper-V role, the system said that I needed to have hardware virtualization support enabled in the BIOS.
You will need vdsm-nestedvt installed on all your hosts. It will pass through the vtx vtd bits from the hypervisor to the guest. You will need a relatively new kernel for this. Centos7 or Centos6+elrepo 3x kernel or Fedora. Joop

As a followup to my last e-mail, I grepped the '/var/log/vdsm/vdsm.log' file for the name of my VM so I could see what CPU options (and options in general) were being passed, and I definitely see that "hyperVenable" is being set to "true" I could try a full reboot of my host, in case the "kvm_intel" module didn't get properly (re-)loaded with the "nested" option....? Regards, Alan

You will need vdsm-nestedvt installed on all your hosts. It will pass
Sorry, I meant to send this reply to the list earlier, but I accidentally replied to just Joop. Hi Joop, Thanks for your reply. On 25/09/2015 11:23 PM, Joop van de Wege wrote: through the vtx vtd bits from the hypervisor to the guest.
You will need a relatively new kernel for this. Centos7 or Centos6+elrepo 3x kernel or Fedora.
I am running on CentOS 7. I installed vdsm-hook-nestedvt and restarted vdsmd on my host. When I look on the "Host Hooks" tab of my Host's properties, I see the following: before_vm_start 50_nestedvt So it appears to have installed correctly. I fired up my Server 2008R2 guest and tried installing the Hyper-V role, but it still gives me the message about needing a CPU that supports hardware virtualization enabled in the BIOS. The CPU family I am using is SandyBridge, if that makes any difference. Is there something else I need to enable? Regards, Alan

As a followup to my last e-mail, I grepped the '/var/log/vdsm/vdsm.log' file for the name of my VM so I could see what CPU options (and options in general) were being passed, and I definitely see that "hyperVenable" is being set to "true" I could try a full reboot of my host, in case the "kvm_intel" module didn't get properly (re-)loaded with the "nested" option....? Regards, Alan

On Sat, Sep 26, 2015 at 11:15:49PM -0700, Alan Murrell wrote:
As a followup to my last e-mail, I grepped the '/var/log/vdsm/vdsm.log' file for the name of my VM so I could see what CPU options (and options in general) were being passed, and I definitely see that "hyperVenable" is being set to "true"
I don't think hyperVenable is anything to do with this.
I could try a full reboot of my host, in case the "kvm_intel" module didn't get properly (re-)loaded with the "nested" option....?
You can check if the nested option is enabled by doing: $ cat /sys/module/kvm*/parameters/nested The output will be either '1' or 'Y' if nested virt is enabled. A reboot of the host may help. I don't think it's possible to change the nested flag without reloading the module, and that is impossible without stopping all KVM guests. BTW nested on Intel and AMD works completely differently (and on Intel at least details depend on the precise CPU too). It was definitely broken on Intel with the RHEL 7.0 kernel, but I think Paolo fixed the major bugs in 7.1. On all hardware, nested can be pot luck - it may cause host crashes. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html

Hi Richard, I actually did end up doing a full reboot of the host shortly after I sent that reply suggesting it. On 27/09/2015 3:04 AM, Richard W.M. Jones wrote:
You can check if the nested option is enabled by doing:
$ cat /sys/module/kvm*/parameters/nested
The output will be either '1' or 'Y' if nested virt is enabled.
It does indeed have a "Y". I logged in to the admin (why does the initial login to webGUI take so long after the engine has been restarted/rebooted??). I am now able to successfully install Hyper-V on my lab VMs. Thanks! :-) Regards, Alan
participants (4)
-
Alan Murrell
-
Alan Murrell
-
Joop van de Wege
-
Richard W.M. Jones