Nested KVM on AMD

I enabled nested virtualization via: 1) echo "options kvm-amd nested=1" > /etc/modprobe.d/kvm-amd.conf 2) modprobe -r kvm-amd 3) modprobe kvm-amd After it I can see svm flag on vm cpu, but from some reason I still receive the same error "No virtualization Hardware was detected", when try to deploy vm in engine as host. The same scenario for intel cpu's works fine and I can use nested virtualization: 1) echo "options kvm-intel nested=1" > /etc/modprobe.d/kvm-intel.conf 2) modprobe -r kvm-amd 3) modprobe kvm-amd So it looks like problem in host deploy with amd cpu maybe Alon Bar-Lev can help with it. Also check your kernel it must be >= 3.10.... ----- Original Message ----- From: "Winfried de Heiden" <wdh@dds.nl> To: users@ovirt.org Sent: Tuesday, April 21, 2015 10:45:06 AM Subject: [ovirt-users] Nested KVM on AMD Hi all, For testing purposes I installed vdsm-hook-nestedvt: rpm -qi vdsm-hook-nestedvt.noarch Name : vdsm-hook-nestedvt Relocations: (not relocatable) Version : 4.16.10 Vendor: (none) Release : 8.gitc937927.el6 Build Date: ma 12 jan 2015 13:21:31 CET Install Date: do 16 apr 2015 15:37:00 CEST Build Host: fc21-vm03.phx.ovirt.org Group : Applications/System Source RPM: vdsm-4.16.10-8.gitc937927.el6.src.rpm Size : 1612 License: GPLv2+ Signature : RSA/SHA1, wo 21 jan 2015 15:32:39 CET, Key ID ab8c4f9dfe590cb7 URL : http://www.ovirt.org/wiki/Vdsm Summary : Nested Virtualization support for VDSM Description : If the nested virtualization is enabled in your kvm module this hook will expose it to the guests. Installation looks fine on the oVirt (AMD cpu) KVM-host: [root@bigvirt ~]# cat /sys/module/kvm_amd/parameters/nested 1 and in oVirt manager "50_nestedvt" will show up in Host Hooks. However, trying to install "oVirt Node Hypervisor 3.5" it will warn "No virtualization Hardware was detected". Also, the svm flag is not shown on the guest machine. Am I missing something? Why is nested kvm not working? Winfried _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

This is a multi-part message in MIME format. --------------050405030107010704000503 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit On 21-4-2015 10:14, Winfried de Heiden wrote:
Hi all,
So, the kernel might be the problem, I'm running Centos6 using a kernel 2.6:
[root@bigvirt qemu]# uname -r 2.6.32-504.12.2.el6.x86_64
It seems I need to upgrade first to Centos7
You could also use elrepo kernels and stay on Centos6 but with a much newer kernel. Have been running those for quite a while and haven't had any problems with it. Regards, Joop --------------050405030107010704000503 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 7bit <html> <head> <meta content="text/html; charset=windows-1252" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <div class="moz-cite-prefix">On 21-4-2015 10:14, Winfried de Heiden wrote:<br> </div> <blockquote cite="mid:553606FE.3080708@dds.nl" type="cite"> <meta content="text/html; charset=windows-1252" http-equiv="Content-Type"> <font face="Carlito">Hi all,<br> <br> So, the kernel might be the problem, I'm running Centos6 using a kernel 2.6:<br> <br> [root@bigvirt qemu]# uname -r<br> 2.6.32-504.12.2.el6.x86_64<br> <br> It seems I need to upgrade first to Centos7<br> </font><br> </blockquote> You could also use elrepo kernels and stay on Centos6 but with a much newer kernel. Have been running those for quite a while and haven't had any problems with it.<br> <br> Regards,<br> <br> Joop<br> <br> </body> </html> --------------050405030107010704000503--
participants (3)
-
Artyom Lukianov
-
noc
-
Winfried de Heiden