[fedora-virt] how can i see if the running kernel has kvm support?

David Lutterkort lutter at redhat.com
Thu Apr 9 23:38:11 UTC 2009


On Wed, 2009-04-08 at 16:05 -0400, Robert P. J. Day wrote:
> i'm curious as to how to examine a running kernel to see what it has
> in the way of kvm support.

Just for completeness' sake: the most supportable and portable way to
check for that is to use libvirt's virConnectGetCapabilities[1] (or
'virsh capabilities')

Programs that need to know whether kvm is enabled, shouldn't go poking
around /sys etc. - look at the capabilities XML instead. And if there's
info missing that you need, ask on libvir-list and it'll happen somehow.

David

[1] http://libvirt.org/formatcaps.html





More information about the Fedora-virt mailing list