[libvirt] libvirt arch detection on x86_64 host

Gerrit Slomma roadrunner_gs at web.de
Tue Apr 14 22:23:07 UTC 2009


Gerry Reno schrieb:
>
> I have a 64-bit host that is running a 32-bit OS (Fedora 10).
> (...)
> # virsh nodeinfo
> CPU model:           i686
> (...)
> Shouldn't the host arch have been detected and identified as x86_64?
>
>
> Regards,
> Gerry
>
> -- 
> Libvir-list mailing list
> Libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list

As stated by you in the beginning: You are running a 32-bit OS.
You can't have more bit than the OS is providing you.
/usr/bin/qemu-system-x86_64 alwas shows x86_64, even on my Core Duo.

[root at rr016 kvm]# virsh -c qemu+ssh://192.168.1.103/system capabilities
<capabilities>

  <host>
    <cpu>
      <arch>i686</arch>
    </cpu>
  </host>

  <guest>
    <os_type>hvm</os_type>
    <arch name='i686'>
      <wordsize>32</wordsize>
      <emulator>/usr/bin/qemu</emulator>
      <machine>pc</machine>
      <machine>isapc</machine>
      <domain type='qemu'>
      </domain>
      <domain type='kvm'>
        <emulator>/usr/bin/kvm</emulator>
      </domain>
    </arch>
    <features>
      <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</machine>
      <machine>isapc</machine>
      <domain type='qemu'>
      </domain>
    </arch>
    <features>
      <acpi default='on' toggle='yes'/>
      <apic default='on' toggle='no'/>
    </features>
  </guest>
(...)
</capabilities>

[root at rr016 kvm]# ssh 192.168.1.103 'grep "model name" /proc/cpuinfo'
Enter passphrase for key '/root/.ssh/id_rsa':
model name      : Genuine Intel(R) CPU           T2600  @ 2.16GHz
model name      : Genuine Intel(R) CPU           T2600  @ 2.16GHz




More information about the libvir-list mailing list