<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Carlito">Hi all,<br>
      <br>
      Nested KVM on the hyervisor host is there:<br>
      [xxx@bigvirt ~]$ cat /sys/module/kvm_amd/parameters/nested<br>
      1<br>
      <br>
      <br>
      [root@bigvirt ~]# virsh -r dumpxml RHEV<br>
      &lt;domain type='kvm' id='2'&gt;<br>
        &lt;name&gt;RHEV&lt;/name&gt;<br>
        &lt;uuid&gt;98a86cc8-efbe-43b5-a8e2-4c636b6556a8&lt;/uuid&gt;<br>
        &lt;metadata xmlns:ovirt=<a class="moz-txt-link-rfc2396E" href="http://ovirt.org/vm/tune/1.0">"http://ovirt.org/vm/tune/1.0"</a>&gt;<br>
          &lt;ovirt:qos/&gt;<br>
        &lt;/metadata&gt;<br>
        &lt;maxMemory slots='16'
      unit='KiB'&gt;4294967296&lt;/maxMemory&gt;<br>
        &lt;memory unit='KiB'&gt;2097152&lt;/memory&gt;<br>
        &lt;currentMemory unit='KiB'&gt;2097152&lt;/currentMemory&gt;<br>
        &lt;vcpu placement='static' current='2'&gt;16&lt;/vcpu&gt;<br>
        &lt;cputune&gt;<br>
          &lt;shares&gt;1020&lt;/shares&gt;<br>
        &lt;/cputune&gt;<br>
        &lt;numatune&gt;<br>
          &lt;memory mode='interleave' nodeset='0'/&gt;<br>
        &lt;/numatune&gt;<br>
        &lt;resource&gt;<br>
          &lt;partition&gt;/machine&lt;/partition&gt;<br>
        &lt;/resource&gt;<br>
        &lt;sysinfo type='smbios'&gt;<br>
          &lt;system&gt;<br>
            &lt;entry name='manufacturer'&gt;oVirt&lt;/entry&gt;<br>
            &lt;entry name='product'&gt;oVirt Node&lt;/entry&gt;<br>
            &lt;entry
      name='version'&gt;7-2.1511.el7.centos.2.10&lt;/entry&gt;<br>
            &lt;entry
      name='serial'&gt;60E59E92-3256-BD11-B8BD-14DAE9ED31D2&lt;/entry&gt;<br>
            &lt;entry
      name='uuid'&gt;98a86cc8-efbe-43b5-a8e2-4c636b6556a8&lt;/entry&gt;<br>
          &lt;/system&gt;<br>
        &lt;/sysinfo&gt;<br>
        &lt;os&gt;<br>
          &lt;type arch='x86_64'
      machine='pc-i440fx-rhel7.2.0'&gt;hvm&lt;/type&gt;<br>
          &lt;smbios mode='sysinfo'/&gt;<br>
        &lt;/os&gt;<br>
        &lt;features&gt;<br>
          &lt;acpi/&gt;<br>
        &lt;/features&gt;<br>
        &lt;cpu mode='custom' match='exact'&gt;<br>
          &lt;model fallback='allow'&gt;Opteron_G3&lt;/model&gt;<br>
          &lt;topology sockets='16' cores='1' threads='1'/&gt;<br>
          &lt;feature policy='require' name='svm'/&gt;<br>
          &lt;numa&gt;<br>
            &lt;cell id='0' cpus='0-1' memory='2097152' unit='KiB'/&gt;<br>
          &lt;/numa&gt;<br>
        &lt;/cpu&gt;<br>
        &lt;clock offset='variable' adjustment='0' basis='utc'&gt;<br>
          &lt;timer name='rtc' tickpolicy='catchup'/&gt;<br>
          &lt;timer name='pit' tickpolicy='delay'/&gt;<br>
          &lt;timer name='hpet' present='no'/&gt;<br>
        &lt;/clock&gt;<br>
        &lt;on_poweroff&gt;destroy&lt;/on_poweroff&gt;<br>
        &lt;on_reboot&gt;restart&lt;/on_reboot&gt;<br>
        &lt;on_crash&gt;destroy&lt;/on_crash&gt;<br>
        &lt;devices&gt;<br>
          &lt;emulator&gt;/usr/libexec/qemu-kvm&lt;/emulator&gt;<br>
          &lt;disk type='file' device='cdrom'&gt;<br>
            &lt;driver name='qemu' type='raw'/&gt;<br>
            &lt;source startupPolicy='optional'/&gt;<br>
            &lt;backingStore/&gt;<br>
            &lt;target dev='hdc' bus='ide'/&gt;<br>
            &lt;readonly/&gt;<br>
            &lt;serial&gt;&lt;/serial&gt;<br>
            &lt;alias name='ide0-1-0'/&gt;<br>
            &lt;address type='drive' controller='0' bus='1' target='0'
      unit='0'/&gt;<br>
          &lt;/disk&gt;<br>
          &lt;disk type='file' device='disk' snapshot='no'&gt;<br>
            &lt;driver name='qemu' type='raw' cache='none'
      error_policy='stop' io='threads'/&gt;<br>
            &lt;source
file='/rhev/data-center/21ecac04-6bc8-4e20-88da-48bcb5b9a5a4/cb05b616-71bc-457f-9401-d18748f68678/images/bd8f017e-a33e-49c7-a487-34b1d110b678/8e72df98-7dba-47e7-baec-2b034d208496'/&gt;<br>
            &lt;backingStore/&gt;<br>
            &lt;target dev='vda' bus='virtio'/&gt;<br>
           
      &lt;serial&gt;bd8f017e-a33e-49c7-a487-34b1d110b678&lt;/serial&gt;<br>
            &lt;boot order='1'/&gt;<br>
            &lt;alias name='virtio-disk0'/&gt;<br>
            &lt;address type='pci' domain='0x0000' bus='0x00'
      slot='0x06' function='0x0'/&gt;<br>
          &lt;/disk&gt;<br>
          &lt;controller type='scsi' index='0' model='virtio-scsi'&gt;<br>
            &lt;alias name='scsi0'/&gt;<br>
            &lt;address type='pci' domain='0x0000' bus='0x00'
      slot='0x04' function='0x0'/&gt;<br>
          &lt;/controller&gt;<br>
          &lt;controller type='virtio-serial' index='0' ports='16'&gt;<br>
            &lt;alias name='virtio-serial0'/&gt;<br>
            &lt;address type='pci' domain='0x0000' bus='0x00'
      slot='0x05' function='0x0'/&gt;<br>
          &lt;/controller&gt;<br>
          &lt;controller type='usb' index='0'&gt;<br>
            &lt;alias name='usb'/&gt;<br>
            &lt;address type='pci' domain='0x0000' bus='0x00'
      slot='0x01' function='0x2'/&gt;<br>
          &lt;/controller&gt;<br>
          &lt;controller type='pci' index='0' model='pci-root'&gt;<br>
            &lt;alias name='pci.0'/&gt;<br>
          &lt;/controller&gt;<br>
          &lt;controller type='ide' index='0'&gt;<br>
            &lt;alias name='ide'/&gt;<br>
            &lt;address type='pci' domain='0x0000' bus='0x00'
      slot='0x01' function='0x1'/&gt;<br>
          &lt;/controller&gt;<br>
          &lt;interface type='bridge'&gt;<br>
            &lt;mac address='00:1a:4a:16:01:57'/&gt;<br>
            &lt;source bridge='ovirtmgmt'/&gt;<br>
            &lt;target dev='vnet0'/&gt;<br>
            &lt;model type='virtio'/&gt;<br>
            &lt;filterref filter='vdsm-no-mac-spoofing'/&gt;<br>
            &lt;link state='up'/&gt;<br>
            &lt;alias name='net0'/&gt;<br>
            &lt;address type='pci' domain='0x0000' bus='0x00'
      slot='0x03' function='0x0'/&gt;<br>
          &lt;/interface&gt;<br>
          &lt;channel type='unix'&gt;<br>
            &lt;source mode='bind'
path='/var/lib/libvirt/qemu/channels/98a86cc8-efbe-43b5-a8e2-4c636b6556a8.com.redhat.rhevm.vdsm'/&gt;<br>
            &lt;target type='virtio' name='com.redhat.rhevm.vdsm'
      state='disconnected'/&gt;<br>
            &lt;alias name='channel0'/&gt;<br>
            &lt;address type='virtio-serial' controller='0' bus='0'
      port='1'/&gt;<br>
          &lt;/channel&gt;<br>
          &lt;channel type='unix'&gt;<br>
            &lt;source mode='bind'
path='/var/lib/libvirt/qemu/channels/98a86cc8-efbe-43b5-a8e2-4c636b6556a8.org.qemu.guest_agent.0'/&gt;<br>
            &lt;target type='virtio' name='org.qemu.guest_agent.0'
      state='disconnected'/&gt;<br>
            &lt;alias name='channel1'/&gt;<br>
            &lt;address type='virtio-serial' controller='0' bus='0'
      port='2'/&gt;<br>
          &lt;/channel&gt;<br>
          &lt;channel type='spicevmc'&gt;<br>
            &lt;target type='virtio' name='com.redhat.spice.0'
      state='disconnected'/&gt;<br>
            &lt;alias name='channel2'/&gt;<br>
            &lt;address type='virtio-serial' controller='0' bus='0'
      port='3'/&gt;<br>
          &lt;/channel&gt;<br>
          &lt;input type='mouse' bus='ps2'/&gt;<br>
          &lt;input type='keyboard' bus='ps2'/&gt;<br>
          &lt;graphics type='spice' port='5900' tlsPort='5901'
      autoport='yes' listen='192.168.1.7'
      passwdValidTo='1970-01-01T00:00:01'&gt;<br>
            &lt;listen type='network' address='192.168.1.7'
      network='vdsm-ovirtmgmt'/&gt;<br>
          &lt;/graphics&gt;<br>
          &lt;video&gt;<br>
            &lt;model type='qxl' ram='65536' vram='32768' vgamem='16384'
      heads='1'/&gt;<br>
            &lt;alias name='video0'/&gt;<br>
            &lt;address type='pci' domain='0x0000' bus='0x00'
      slot='0x02' function='0x0'/&gt;<br>
          &lt;/video&gt;<br>
          &lt;memballoon model='none'&gt;<br>
            &lt;alias name='balloon0'/&gt;<br>
          &lt;/memballoon&gt;<br>
        &lt;/devices&gt;<br>
        &lt;seclabel type='dynamic' model='selinux' relabel='yes'&gt;<br>
         
      &lt;label&gt;system_u:system_r:svirt_t:s0:c147,c512&lt;/label&gt;<br>
         
&lt;imagelabel&gt;system_u:object_r:svirt_image_t:s0:c147,c512&lt;/imagelabel&gt;<br>
        &lt;/seclabel&gt;<br>
      &lt;/domain&gt;<br>
      <br>
      Removed the machine, I was not shure if I created the machine
      after adding "nested=1" to kvm_amd<br>
      <br>
      [root@bigvirt ~]# virsh -r dumpxml RHEV<br>
      &lt;domain type='kvm' id='5'&gt;<br>
        &lt;name&gt;RHEV&lt;/name&gt;<br>
        &lt;uuid&gt;a583ec5a-50ba-447a-bc4f-f88b2704847f&lt;/uuid&gt;<br>
        &lt;metadata xmlns:ovirt=<a class="moz-txt-link-rfc2396E" href="http://ovirt.org/vm/tune/1.0">"http://ovirt.org/vm/tune/1.0"</a>&gt;<br>
          &lt;ovirt:qos/&gt;<br>
        &lt;/metadata&gt;<br>
        &lt;maxMemory slots='16'
      unit='KiB'&gt;4294967296&lt;/maxMemory&gt;<br>
        &lt;memory unit='KiB'&gt;2097152&lt;/memory&gt;<br>
        &lt;currentMemory unit='KiB'&gt;2097152&lt;/currentMemory&gt;<br>
        &lt;vcpu placement='static' current='2'&gt;16&lt;/vcpu&gt;<br>
        &lt;cputune&gt;<br>
          &lt;shares&gt;1020&lt;/shares&gt;<br>
        &lt;/cputune&gt;<br>
        &lt;numatune&gt;<br>
          &lt;memory mode='interleave' nodeset='0'/&gt;<br>
        &lt;/numatune&gt;<br>
        &lt;resource&gt;<br>
          &lt;partition&gt;/machine&lt;/partition&gt;<br>
        &lt;/resource&gt;<br>
        &lt;sysinfo type='smbios'&gt;<br>
          &lt;system&gt;<br>
            &lt;entry name='manufacturer'&gt;oVirt&lt;/entry&gt;<br>
            &lt;entry name='product'&gt;oVirt Node&lt;/entry&gt;<br>
            &lt;entry
      name='version'&gt;7-2.1511.el7.centos.2.10&lt;/entry&gt;<br>
            &lt;entry
      name='serial'&gt;60E59E92-3256-BD11-B8BD-14DAE9ED31D2&lt;/entry&gt;<br>
            &lt;entry
      name='uuid'&gt;a583ec5a-50ba-447a-bc4f-f88b2704847f&lt;/entry&gt;<br>
          &lt;/system&gt;<br>
        &lt;/sysinfo&gt;<br>
        &lt;os&gt;<br>
          &lt;type arch='x86_64'
      machine='pc-i440fx-rhel7.2.0'&gt;hvm&lt;/type&gt;<br>
          &lt;smbios mode='sysinfo'/&gt;<br>
        &lt;/os&gt;<br>
        &lt;features&gt;<br>
          &lt;acpi/&gt;<br>
        &lt;/features&gt;<br>
        &lt;cpu mode='custom' match='exact'&gt;<br>
          &lt;model fallback='allow'&gt;Opteron_G3&lt;/model&gt;<br>
          &lt;topology sockets='16' cores='1' threads='1'/&gt;<br>
          &lt;feature policy='require' name='svm'/&gt;<br>
          &lt;numa&gt;<br>
            &lt;cell id='0' cpus='0-1' memory='2097152' unit='KiB'/&gt;<br>
          &lt;/numa&gt;<br>
        &lt;/cpu&gt;<br>
        &lt;clock offset='variable' adjustment='0' basis='utc'&gt;<br>
          &lt;timer name='rtc' tickpolicy='catchup'/&gt;<br>
          &lt;timer name='pit' tickpolicy='delay'/&gt;<br>
          &lt;timer name='hpet' present='no'/&gt;<br>
        &lt;/clock&gt;<br>
        &lt;on_poweroff&gt;destroy&lt;/on_poweroff&gt;<br>
        &lt;on_reboot&gt;restart&lt;/on_reboot&gt;<br>
        &lt;on_crash&gt;destroy&lt;/on_crash&gt;<br>
        &lt;devices&gt;<br>
          &lt;emulator&gt;/usr/libexec/qemu-kvm&lt;/emulator&gt;<br>
          &lt;disk type='file' device='cdrom'&gt;<br>
            &lt;driver name='qemu' type='raw'/&gt;<br>
            &lt;source
      file='/rhev/data-center/mnt/10.0.0.3:_nfs_iso/8cdabe73-5676-4820-b876-7af86854ea39/images/11111111-1111-1111-1111-111111111111/rhev-hypervisor6-6.7-20151123.0.iso'
      startupPolicy='optional'&gt;<br>
              &lt;seclabel model='selinux' labelskip='yes'/&gt;<br>
            &lt;/source&gt;<br>
            &lt;backingStore/&gt;<br>
            &lt;target dev='hdc' bus='ide'/&gt;<br>
            &lt;readonly/&gt;<br>
            &lt;serial&gt;&lt;/serial&gt;<br>
            &lt;boot order='1'/&gt;<br>
            &lt;alias name='ide0-1-0'/&gt;<br>
            &lt;address type='drive' controller='0' bus='1' target='0'
      unit='0'/&gt;<br>
          &lt;/disk&gt;<br>
          &lt;disk type='file' device='disk' snapshot='no'&gt;<br>
            &lt;driver name='qemu' type='raw' cache='none'
      error_policy='stop' io='threads'/&gt;<br>
            &lt;source
file='/rhev/data-center/21ecac04-6bc8-4e20-88da-48bcb5b9a5a4/cb05b616-71bc-457f-9401-d18748f68678/images/bd8f017e-a33e-49c7-a487-34b1d110b678/8e72df98-7dba-47e7-baec-2b034d208496'/&gt;<br>
            &lt;backingStore/&gt;<br>
            &lt;target dev='vda' bus='virtio'/&gt;<br>
           
      &lt;serial&gt;bd8f017e-a33e-49c7-a487-34b1d110b678&lt;/serial&gt;<br>
            &lt;boot order='2'/&gt;<br>
            &lt;alias name='virtio-disk0'/&gt;<br>
            &lt;address type='pci' domain='0x0000' bus='0x00'
      slot='0x06' function='0x0'/&gt;<br>
          &lt;/disk&gt;<br>
          &lt;controller type='scsi' index='0' model='virtio-scsi'&gt;<br>
            &lt;alias name='scsi0'/&gt;<br>
            &lt;address type='pci' domain='0x0000' bus='0x00'
      slot='0x04' function='0x0'/&gt;<br>
          &lt;/controller&gt;<br>
          &lt;controller type='virtio-serial' index='0' ports='16'&gt;<br>
            &lt;alias name='virtio-serial0'/&gt;<br>
            &lt;address type='pci' domain='0x0000' bus='0x00'
      slot='0x05' function='0x0'/&gt;<br>
          &lt;/controller&gt;<br>
          &lt;controller type='usb' index='0'&gt;<br>
            &lt;alias name='usb'/&gt;<br>
            &lt;address type='pci' domain='0x0000' bus='0x00'
      slot='0x01' function='0x2'/&gt;<br>
          &lt;/controller&gt;<br>
          &lt;controller type='pci' index='0' model='pci-root'&gt;<br>
            &lt;alias name='pci.0'/&gt;<br>
          &lt;/controller&gt;<br>
          &lt;controller type='ide' index='0'&gt;<br>
            &lt;alias name='ide'/&gt;<br>
            &lt;address type='pci' domain='0x0000' bus='0x00'
      slot='0x01' function='0x1'/&gt;<br>
          &lt;/controller&gt;<br>
          &lt;interface type='bridge'&gt;<br>
            &lt;mac address='00:1a:4a:16:01:57'/&gt;<br>
            &lt;source bridge='ovirtmgmt'/&gt;<br>
            &lt;target dev='vnet0'/&gt;<br>
            &lt;model type='virtio'/&gt;<br>
            &lt;filterref filter='vdsm-no-mac-spoofing'/&gt;<br>
            &lt;link state='up'/&gt;<br>
            &lt;boot order='3'/&gt;<br>
            &lt;alias name='net0'/&gt;<br>
            &lt;address type='pci' domain='0x0000' bus='0x00'
      slot='0x03' function='0x0'/&gt;<br>
          &lt;/interface&gt;<br>
          &lt;channel type='unix'&gt;<br>
            &lt;source mode='bind'
path='/var/lib/libvirt/qemu/channels/a583ec5a-50ba-447a-bc4f-f88b2704847f.com.redhat.rhevm.vdsm'/&gt;<br>
            &lt;target type='virtio' name='com.redhat.rhevm.vdsm'
      state='disconnected'/&gt;<br>
            &lt;alias name='channel0'/&gt;<br>
            &lt;address type='virtio-serial' controller='0' bus='0'
      port='1'/&gt;<br>
          &lt;/channel&gt;<br>
          &lt;channel type='unix'&gt;<br>
            &lt;source mode='bind'
path='/var/lib/libvirt/qemu/channels/a583ec5a-50ba-447a-bc4f-f88b2704847f.org.qemu.guest_agent.0'/&gt;<br>
            &lt;target type='virtio' name='org.qemu.guest_agent.0'
      state='disconnected'/&gt;<br>
            &lt;alias name='channel1'/&gt;<br>
            &lt;address type='virtio-serial' controller='0' bus='0'
      port='2'/&gt;<br>
          &lt;/channel&gt;<br>
          &lt;channel type='spicevmc'&gt;<br>
            &lt;target type='virtio' name='com.redhat.spice.0'
      state='disconnected'/&gt;<br>
            &lt;alias name='channel2'/&gt;<br>
            &lt;address type='virtio-serial' controller='0' bus='0'
      port='3'/&gt;<br>
          &lt;/channel&gt;<br>
          &lt;input type='mouse' bus='ps2'/&gt;<br>
          &lt;input type='keyboard' bus='ps2'/&gt;<br>
          &lt;graphics type='spice' port='5900' tlsPort='5901'
      autoport='yes' listen='192.168.1.7'
      passwdValidTo='2016-01-05T16:58:47' connected='disconnect'&gt;<br>
            &lt;listen type='network' address='192.168.1.7'
      network='vdsm-ovirtmgmt'/&gt;<br>
          &lt;/graphics&gt;<br>
          &lt;video&gt;<br>
            &lt;model type='qxl' ram='65536' vram='32768' vgamem='16384'
      heads='1'/&gt;<br>
            &lt;alias name='video0'/&gt;<br>
            &lt;address type='pci' domain='0x0000' bus='0x00'
      slot='0x02' function='0x0'/&gt;<br>
          &lt;/video&gt;<br>
          &lt;memballoon model='none'&gt;<br>
            &lt;alias name='balloon0'/&gt;<br>
          &lt;/memballoon&gt;<br>
        &lt;/devices&gt;<br>
        &lt;seclabel type='dynamic' model='selinux' relabel='yes'&gt;<br>
         
      &lt;label&gt;system_u:system_r:svirt_t:s0:c19,c668&lt;/label&gt;<br>
         
&lt;imagelabel&gt;system_u:object_r:svirt_image_t:s0:c19,c668&lt;/imagelabel&gt;<br>
        &lt;/seclabel&gt;<br>
      &lt;/domain&gt;<br>
      <br>
      Still the same, on the Hypervisor prompt "modprobe -v kvm_amd"
      will tell "operation not supported".<br>
      <br>
      But mmmm, the xml file tells "</font><font face="Carlito"><font
        face="Carlito">&lt;feature policy='require' name='svm'/&gt;<br>
        <br>
        grep svm /proc/cpuinfo on the hypervisor shows it is available.
        On the virtual machine (using nested kvm) it is not available
        despite kvm_amd is loaded with "nested=1"<br>
        Mmm, does qemu not pickup the nested stuff?<br>
        <br>
      </font>Thankz allready!<br>
      <br>
      Winny<br>
    </font><br>
    <div class="moz-cite-prefix">Op 04-01-16 om 14:56 schreef Martin
      Polednik:<br>
    </div>
    <blockquote
      cite="mid:432672428.3091820.1451915764369.JavaMail.zimbra@redhat.com"
      type="cite">
      <pre wrap="">----- Original Message -----
</pre>
      <blockquote type="cite">
        <pre wrap="">From: "Martin Polednik" <a class="moz-txt-link-rfc2396E" href="mailto:mpolednik@redhat.com">&lt;mpolednik@redhat.com&gt;</a>
To: <a class="moz-txt-link-abbreviated" href="mailto:wdh@dds.nl">wdh@dds.nl</a>
Cc: "users" <a class="moz-txt-link-rfc2396E" href="mailto:users@ovirt.org">&lt;users@ovirt.org&gt;</a>, "Martin Polednik" <a class="moz-txt-link-rfc2396E" href="mailto:mpolednik@redhat.com">&lt;mpolednik@redhat.com&gt;</a>
Sent: Monday, January 4, 2016 2:52:03 PM
Subject: Re: [ovirt-users] Nested KVM - vdsm-hook-nestedvt

On 04/01/16 14:38 +0100, <a class="moz-txt-link-abbreviated" href="mailto:wdh@dds.nl">wdh@dds.nl</a> wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">Hi all,

OK, it seems I am confused. Nested KVM is NOT the same as fake KVM....

If so, I installed vdsm-hook-nestedvt on the hypervisor (only). Trying
to run ovirt-Node on a VM it complains there 's no virtualization,
despite the kvm_amd module is loaded with nested=1

How to enable nested-kvm for oVirt 3.6?
</pre>
        </blockquote>
        <pre wrap="">
First, make sure that you're enabling the nested feature for amd (just
noticed that the example used intel). Please show us the output of

# cat /sys/module/kvm_intel/parameters/nested
</pre>
      </blockquote>
      <pre wrap="">
and sorry, did the same mistake again - use

# cat /sys/module/kvm_amd/parameters/nested

</pre>
      <blockquote type="cite">
        <pre wrap="">on the host (physical machine), lscpu inside the VM and VM XML - use

# virsh -r list
# virsh -r dumpxml {machine_id found in the list}

Thanks,
mpolednik

</pre>
        <blockquote type="cite">
          <pre wrap="">Winny


Martin Polednik schreef op 04-01-2016 13:29:
</pre>
          <blockquote type="cite">
            <pre wrap="">On 04/01/16 09:52 +0100, Simone Tiraboschi wrote:
</pre>
            <blockquote type="cite">
              <pre wrap="">On Fri, Jan 1, 2016 at 3:32 PM, Winfried de Heiden <a class="moz-txt-link-rfc2396E" href="mailto:wdh@dds.nl">&lt;wdh@dds.nl&gt;</a> wrote:

</pre>
              <blockquote type="cite">
                <pre wrap="">Hi all and happy new year!

I'm running oVirt 3.6 on EL7.

In order to test nested-kvm I installed vdsm-hook-nestedvt on the
hypervisor and put "fake_kvm_support = true" in /etc/vdsm/vdsm.conf.
</pre>
              </blockquote>
              <pre wrap="">



fake_kvm_support is just for developing purposes and it's not
needed as it
prevent guests to run.
</pre>
            </blockquote>
            <pre wrap="">
Not really true - fake_kvm_support enables QEMU emulation instead of
hardware virtualization (e.g. VT-x) instructions. It is also quite
broken in it's current state and fix is pending in cpuinfo branch at
gerrit.

I don't really understand the reason why fake_kvm would be used in
this case as AMD-v is enabled according to svm flag present -
following instructions should be correct for getting the flag passed
to the VMs.

</pre>
            <blockquote type="cite">
              <pre wrap="">Please check to understand if nested support is enabled on your host:
/sys/module/kvm_intel/parameters/nested

if not
 echo "options kvm-intel nested=1" &gt; /etc/modprobe.d/kvm-intel.conf
and reload the module
</pre>
            </blockquote>
            <pre wrap="">
</pre>
            <blockquote type="cite">
              <pre wrap="">Than install vdsm-hook-nestedvt on your hosts.
If you want also to use the network on your L2 guest please
install and
configure also macspoof vdsm hook on your physical hosts otherwise
all the
traffic to/from your L2 guests will be dropped.
<a class="moz-txt-link-freetext" href="https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof">https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof</a>




</pre>
              <blockquote type="cite">
                <pre wrap="">However, afterwards the hypervisor host cannot connect to the ovirt
Manager, on ovirt Manager the engine.log will tell:

2016-01-01 15:21:42,105 WARN
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(DefaultQuartzScheduler_Worker-76) [71d1638c] Correlation ID:
29daf92c,
Call Stack: null, Custom Event ID: -1, Message: Host bigvirt moved to
Non-Operational state as host does not meet the cluster's minimum CPU
level. Missing CPU features : model_Opteron_G3

After removing the option all works well again, but I'ḿ lacking
the nested
kvm option :( Is nested kvm only supported on a limited cpu's??

Winny

Information from /proc/cpuinfo:

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 16
model           : 10
model name      : AMD Phenom(tm) II X6 1055T Processor
stepping        : 0
microcode       : 0x10000bf
cpu MHz         : 2800.000
cache size      : 512 KB
physical id     : 0
siblings        : 6
core id         : 0
cpu cores       : 6
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 6
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep
mtrr pge mca
cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
fxsr_opt
pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl
nonstop_tsc
extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm
extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs
skinit wdt
cpb hw_pstate npt lbrv svm_lock nrip_save pausefilter
bogomips        : 5625.54
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate cpb

_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a>
<a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a>

</pre>
              </blockquote>
            </blockquote>
            <pre wrap="">
</pre>
            <blockquote type="cite">
              <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a>
<a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a>
</pre>
            </blockquote>
          </blockquote>
        </blockquote>
        <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a>
<a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a>

</pre>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>