On 25 September 2016 at 17:57, Leonard den Ottolander >>> >> Nested Virtualization will be a tech preview in RHEL 7.3 Beta, and so >> it'll be available after RHEL 7.3 is released and CentOS rebuilds it. >Officially its gonna be tech-preview in 7.3, but I can tell you we've been successfully using it for testing oVirt since 7.1... (For el7 on top of el7, see [1] for setup example) YMMV though, we only tested with intel CPUs so far... [1]: http://lago.readthedocs.io/en/stable/README.html#virtualization-and-nested-virtualization-support -- Barak Korren bkorren at redhat.com oVirt infra team My views are my own and do not necessarily reflect my employer`s
Leonard den Ottolander
2016-Sep-27 14:29 UTC
[CentOS] How to enable the svm cpu flag inside a vm?
Hello Barak, On Mon, 2016-09-26 at 18:53 +0300, Barak Korren wrote:> On 25 September 2016 at 17:57, Leonard den Ottolander >> > >> Nested Virtualization will be a tech preview in RHEL 7.3 Beta, and so > >> it'll be available after RHEL 7.3 is released and CentOS rebuilds it.> Officially its gonna be tech-preview in 7.3, but I can tell you we've > been successfully using it for testing oVirt since 7.1... (For el7 on > top of el7, see [1] for setup example) > > YMMV though, we only tested with intel CPUs so far...Thanks for pointing this out. It seems I do not have to wait for the release of 7.3 to get this to work. Using "host-passthrough" as the vm cpu type after enabling nested virtualization for my AMD Opteron on a pristine CentOS-7.2 system indeed passes the svm cpu flag and /dev/kvm to the guest. I haven't actually installed Android Studio yet, but I am quite confident the emulator will work. This is a compelling reason to update my desktop from C6 to C7. Hadn't planned on that for a few more years but oh well... :) Regards, Leonard. -- mount -t life -o ro /dev/dna /genetic/research
I ran into this issue as well so make a blog post about my efforts https://www.thegoldfish.org/2017/04/nested-virtualization-in-centos-6/ Summary is I needed to add a pass through command in libvirt to get qemu to start with the enable-nesting option https://libvirt.org/drvqemu.html#qemucommand -- View this message in context: http://centos.1050465.n5.nabble.com/CentOS-How-to-enable-the-svm-cpu-flag-inside-a-vm-tp5745040p5747856.html Sent from the CentOS mailing list archive at Nabble.com.