[libvirt-users] Check whether we are runnig on a KVM guest
Michal Privoznik
mprivozn at redhat.com
Tue Aug 25 14:24:34 UTC 2015
On 25.08.2015 11:53, Jean-Pierre Ribeauville wrote:
> Hi,
>
> How may I , via a C program , check whether I'm running on a KVM guest ?
>
> May I use the same API on Windows and Linux Guest ?
I don't think there's gonna be a single API. After all, hypervisors tend
to hide the fact that you're running in virtualized environment. But
fortunately, Rich has written a script just for what you're asking:
http://people.redhat.com/~rjones/virt-what/
Michal
More information about the libvirt-users
mailing list