* KVM guest OS reports zero CPU frequency via /proc/cpuinfo
@ 2013-02-19 21:25 Dmitry Krivenok
2013-03-02 1:03 ` Marcelo Tosatti
0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Krivenok @ 2013-02-19 21:25 UTC (permalink / raw)
To: kvm
Hello,
I encountered an odd issue with running VMWare .vmdk image inside KVM.
I run KVM as follows
qemu-kvm -hda ./guest.vmdk -m 4096
and guest OS (SLES11) boots fine, but reports zero CPU freq via
/proc/cpuinfo (cpu MHz):
$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 2
model name : QEMU Virtual CPU version 0.15.1
stepping : 3
cpu MHz : 0.000
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good
nopl pni cx16 popcnt lahf_lm
bogomips : 2088.96
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
$
I tried to convert .vmdk to qcow2 image and also tried different
–cpu=<MODEL> options, but I always get zero frequency in this guest.
Another guest (Ubuntu in native qcow2 image) works fine and reports
correct cpu frequency, so I only see this problem with this particular
.vmdk image.
I’m running
QEMU emulator version 0.15.1 (kvm-0.15.1-0.17.3), Copyright (c)
2003-2008 Fabrice Bellard
on SLES11-SP2 host (3.0 kernel + patches).
This problem is critical for me because by guest runs a binary which
relies on non-zero CPU freq in /proc/cpuinfo.
Any ideas?
Thanks!
--
Sincerely yours, Dmitry V. Krivenok
e-mail: krivenok.dmitry@gmail.com
skype: krivenok_dmitry
jabber: krivenok_dmitry@jabber.ru
icq: 242-526-443
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: KVM guest OS reports zero CPU frequency via /proc/cpuinfo
2013-02-19 21:25 KVM guest OS reports zero CPU frequency via /proc/cpuinfo Dmitry Krivenok
@ 2013-03-02 1:03 ` Marcelo Tosatti
0 siblings, 0 replies; 2+ messages in thread
From: Marcelo Tosatti @ 2013-03-02 1:03 UTC (permalink / raw)
To: Dmitry Krivenok; +Cc: kvm, Don Slutz
https://lists.gnu.org/archive/html/qemu-devel/2012-10/msg02269.html
On Wed, Feb 20, 2013 at 01:25:04AM +0400, Dmitry Krivenok wrote:
> Hello,
>
> I encountered an odd issue with running VMWare .vmdk image inside KVM.
>
> I run KVM as follows
> qemu-kvm -hda ./guest.vmdk -m 4096
>
> and guest OS (SLES11) boots fine, but reports zero CPU freq via
> /proc/cpuinfo (cpu MHz):
>
>
>
> $ cat /proc/cpuinfo
>
> processor : 0
>
> vendor_id : GenuineIntel
>
> cpu family : 6
>
> model : 2
>
> model name : QEMU Virtual CPU version 0.15.1
>
> stepping : 3
>
> cpu MHz : 0.000
>
> cache size : 4096 KB
>
> fpu : yes
>
> fpu_exception : yes
>
> cpuid level : 4
>
> wp : yes
>
> flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good
> nopl pni cx16 popcnt lahf_lm
>
> bogomips : 2088.96
>
> clflush size : 64
>
> cache_alignment : 64
>
> address sizes : 40 bits physical, 48 bits virtual
>
> power management:
>
> $
>
>
>
> I tried to convert .vmdk to qcow2 image and also tried different
> –cpu=<MODEL> options, but I always get zero frequency in this guest.
>
> Another guest (Ubuntu in native qcow2 image) works fine and reports
> correct cpu frequency, so I only see this problem with this particular
> .vmdk image.
>
>
>
> I’m running
>
> QEMU emulator version 0.15.1 (kvm-0.15.1-0.17.3), Copyright (c)
> 2003-2008 Fabrice Bellard
>
> on SLES11-SP2 host (3.0 kernel + patches).
>
> This problem is critical for me because by guest runs a binary which
> relies on non-zero CPU freq in /proc/cpuinfo.
>
>
> Any ideas?
>
> Thanks!
>
> --
> Sincerely yours, Dmitry V. Krivenok
> e-mail: krivenok.dmitry@gmail.com
> skype: krivenok_dmitry
> jabber: krivenok_dmitry@jabber.ru
> icq: 242-526-443
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-02 1:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-19 21:25 KVM guest OS reports zero CPU frequency via /proc/cpuinfo Dmitry Krivenok
2013-03-02 1:03 ` Marcelo Tosatti
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.