← Back to team overview

openstack team mailing list archive

[Folsom] CPU mode "host-model" generated in libvirt.xml gives error when booting

 

Hi,

Nova is generating libvirt.xml for each instance with <cpu mode="host-model" match="exact"/> As a result, virsh (and nova-compute) refuses to start instance as complaining :
"error : internal error Cannot find suitable CPU model for given data"


Libvirt is 0.9.13-0ubuntu12.2~cloud0 and kvm is qemu-1.3 (from source)

Please find attached my virsh capabilities (virsh_capabilities.txt)


I looked at my previous Essex install (with same kvm version) and no <cpu> tag is given in libvirt.xml.template. I know that libvirt.xml file generation has been rewritten in Folsom, so I can't see what's wrong, neither how to fix it.


Thanks,
-Sylvain
<capabilities>

  <host>
    <uuid>14ac1a75-a391-1724-d3fb-015701849cd4</uuid>
    <cpu>
      <arch>x86_64</arch>
      <model>Nehalem</model>
      <vendor>Intel</vendor>
      <topology sockets='1' cores='2' threads='2'/>
      <feature name='rdtscp'/>
      <feature name='pdcm'/>
      <feature name='xtpr'/>
      <feature name='tm2'/>
      <feature name='est'/>
      <feature name='vmx'/>
      <feature name='ds_cpl'/>
      <feature name='monitor'/>
      <feature name='dtes64'/>
      <feature name='pbe'/>
      <feature name='tm'/>
      <feature name='ht'/>
      <feature name='ss'/>
      <feature name='acpi'/>
      <feature name='ds'/>
      <feature name='vme'/>
    </cpu>
    <power_management>
      <suspend_mem/>
      <suspend_disk/>
    </power_management>
    <migration_features>
      <live/>
      <uri_transports>
        <uri_transport>tcp</uri_transport>
      </uri_transports>
    </migration_features>
    <topology>
      <cells num='1'>
        <cell id='0'>
          <cpus num='4'>
            <cpu id='0'/>
            <cpu id='1'/>
            <cpu id='2'/>
            <cpu id='3'/>
          </cpus>
        </cell>
      </cells>
    </topology>
  </host>

  <guest>
    <os_type>hvm</os_type>
    <arch name='i686'>
      <wordsize>32</wordsize>
      <emulator>/usr/bin/qemu-system-x86_64</emulator>
      <machine>pc-1.3</machine>
      <machine>none</machine>
      <machine canonical='pc-1.3'>pc</machine>
      <machine>pc-1.2</machine>
      <machine>pc-1.1</machine>
      <machine>pc-1.0</machine>
      <machine>pc-0.15</machine>
      <machine>pc-0.14</machine>
      <machine>pc-0.13</machine>
      <machine>pc-0.12</machine>
      <machine>pc-0.11</machine>
      <machine>pc-0.10</machine>
      <machine>isapc</machine>
      <machine canonical='q35-next'>q35</machine>
      <machine>q35-next</machine>
      <domain type='qemu'>
      </domain>
      <domain type='kvm'>
        <emulator>/usr/bin/kvm</emulator>
        <machine>pc-1.3</machine>
        <machine>none</machine>
        <machine canonical='pc-1.3'>pc</machine>
        <machine>pc-1.2</machine>
        <machine>pc-1.1</machine>
        <machine>pc-1.0</machine>
        <machine>pc-0.15</machine>
        <machine>pc-0.14</machine>
        <machine>pc-0.13</machine>
        <machine>pc-0.12</machine>
        <machine>pc-0.11</machine>
        <machine>pc-0.10</machine>
        <machine>isapc</machine>
        <machine canonical='q35-next'>q35</machine>
        <machine>q35-next</machine>
      </domain>
    </arch>
    <features>
      <cpuselection/>
      <pae/>
      <nonpae/>
      <acpi default='on' toggle='yes'/>
      <apic default='on' toggle='no'/>
    </features>
  </guest>

  <guest>
    <os_type>hvm</os_type>
    <arch name='x86_64'>
      <wordsize>64</wordsize>
      <emulator>/usr/bin/qemu-system-x86_64</emulator>
      <machine>pc-1.3</machine>
      <machine>none</machine>
      <machine canonical='pc-1.3'>pc</machine>
      <machine>pc-1.2</machine>
      <machine>pc-1.1</machine>
      <machine>pc-1.0</machine>
      <machine>pc-0.15</machine>
      <machine>pc-0.14</machine>
      <machine>pc-0.13</machine>
      <machine>pc-0.12</machine>
      <machine>pc-0.11</machine>
      <machine>pc-0.10</machine>
      <machine>isapc</machine>
      <machine canonical='q35-next'>q35</machine>
      <machine>q35-next</machine>
      <domain type='qemu'>
      </domain>
      <domain type='kvm'>
        <emulator>/usr/bin/kvm</emulator>
        <machine>pc-1.3</machine>
        <machine>none</machine>
        <machine canonical='pc-1.3'>pc</machine>
        <machine>pc-1.2</machine>
        <machine>pc-1.1</machine>
        <machine>pc-1.0</machine>
        <machine>pc-0.15</machine>
        <machine>pc-0.14</machine>
        <machine>pc-0.13</machine>
        <machine>pc-0.12</machine>
        <machine>pc-0.11</machine>
        <machine>pc-0.10</machine>
        <machine>isapc</machine>
        <machine canonical='q35-next'>q35</machine>
        <machine>q35-next</machine>
      </domain>
    </arch>
    <features>
      <cpuselection/>
      <acpi default='on' toggle='yes'/>
      <apic default='on' toggle='no'/>
    </features>
  </guest>

</capabilities>



Follow ups