[Users] Ovirt Node :: Nested virtualization

This is a multi-part message in MIME format. ------_=_NextPart_001_01CDC7E1.01EB5521 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello everybody, I'm trying to enable nested virtualization on a physical ovirt node = v2.5.5. What I want is to run L1 ovirt guest vms that expose intel's vmx = feature. I've enabled nested virtualization via kvm-intel nested=3D1 on = my physical node, yet, when I create and run a guest vm on that node, = there's no vmx extension/feature on the virtualized cpu. I've also = fiddled a bit with the vdc_options table, ServerCPUList option, to no = avail. I just need to tell ovirt to add the vmx extension to the = virtualized cpu features when it creates a guest, is there a way to do = this? In libvirt terms: <cpu match=3D'exact'> <model>Penryn</model> <vendor>Intel</vendor> <feature policy=3D'require' name=3D'vmx'/> </cpu> Thanks, Daniele Pavia ------_=_NextPart_001_01CDC7E1.01EB5521 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> =20 </head> <body bgcolor=3D"#FFFFFF" text=3D"#000000"> <tt>Hello everybody,</tt><tt><br> </tt><tt>I'm trying to enable nested virtualization on a physical ovirt node v2.5.5. What I want is to run L1 ovirt guest vms that expose intel's vmx feature. I've enabled nested virtualization via </tt><code class=3D"plain">kvm-intel nested=3D1 on my physical node, yet, when I create and run a guest vm on that node, there's no vmx extension/feature on the virtualized cpu. I've also fiddled a bit with the vdc_options table, </code><code class=3D"plain"><span style=3D"color: rgb(0, 0, 0);">ServerCPUList option, to no = avail. I just need to tell ovirt to add the vmx extension to the virtualized cpu features when it creates a guest, is there a way to do this?<br> <br> In libvirt terms:</span></code><tt><br> </tt> <pre> <cpu match=3D'exact'> <model>Penryn</model> <vendor>Intel</vendor> <feature policy=3D'require' name=3D'vmx'/> </cpu></pre> <code>Thanks</code><tt>,</tt><tt><br> </tt><tt>Daniele Pavia</tt><tt><br> </tt><code class=3D"plain"></code><tt> </tt> <meta name=3D"qrichtext" content=3D"1"> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DISO-8859-1"> <style type=3D"text/css"> p, li { white-space: pre-wrap; } </style> </body> </html> ------_=_NextPart_001_01CDC7E1.01EB5521--

On 11/21/2012 02:09 PM, Pavia Daniele wrote:
Hello everybody, I'm trying to enable nested virtualization on a physical ovirt node v2.5.5. What I want is to run L1 ovirt guest vms that expose intel's vmx feature. I've enabled nested virtualization via |kvm-intel nested=1 on my physical node, yet, when I create and run a guest vm on that node, there's no vmx extension/feature on the virtualized cpu. I've also fiddled a bit with the vdc_options table, ||ServerCPUList option, to no avail. I just need to tell ovirt to add the vmx extension to the virtualized cpu features when it creates a guest, is there a way to do this?
In libvirt terms:|
<cpu match='exact'> <model>Penryn</model> <vendor>Intel</vendor> <feature policy='require' name='vmx'/> </cpu>
|Thanks|, Daniele Pavia ||
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
this hook should cover all you need, but not considered a good practice to use hooks on ovirt-node today (mike, any change here)? http://gerrit.ovirt.org/#/c/9225/ you can use a regular fedora as a host and deploy this hook as an rpm to it (using regular fedora is more flexible than ovirt node for some things)

On Thu, 2012-11-22 at 00:34 +0200, Itamar Heim wrote:
On 11/21/2012 02:09 PM, Pavia Daniele wrote:
Hello everybody, I'm trying to enable nested virtualization on a physical ovirt node v2.5.5. What I want is to run L1 ovirt guest vms that expose intel's vmx feature. I've enabled nested virtualization via |kvm-intel nested=1 on my physical node, yet, when I create and run a guest vm on that node, there's no vmx extension/feature on the virtualized cpu. I've also fiddled a bit with the vdc_options table, ||ServerCPUList option, to no avail. I just need to tell ovirt to add the vmx extension to the virtualized cpu features when it creates a guest, is there a way to do this?
In libvirt terms:|
<cpu match='exact'> <model>Penryn</model> <vendor>Intel</vendor> <feature policy='require' name='vmx'/> </cpu>
|Thanks|, Daniele Pavia ||
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
this hook should cover all you need, but not considered a good practice to use hooks on ovirt-node today (mike, any change here)? http://gerrit.ovirt.org/#/c/9225/
you can use a regular fedora as a host and deploy this hook as an rpm to it (using regular fedora is more flexible than ovirt node for some things)
It can be done by installing the hook then persisting the relevant files on ovirt-node. It's not well tested at the moment, though, and you may have other issues with nested virt specifically. You would also need to do some custom work that would enable nested virt in the kernel options as well since it is disabled by default. Getting this to work across reboots would require some additional effort. At this time, you'd generally be better off using Fedora as your host. You can also file an RFE bug to allow nested virt on ovirt-node. Mike
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (3)
-
Itamar Heim
-
Mike Burns
-
Pavia Daniele