jd wrote:
Hi
Is there a way to detect if a particular machine is a VM running on KVM
hypervisor or not. i.e from within a guest can one figure out if it is running
on
top of a hypervisor and not physical machine ? [For both Linux guests and
Windows
guests ]
You can generally infer the presence of qemu hosting based on the device name for
certain devices. On a Linux guest for example:
# hwinfo --all | grep -i qemu
AFAIK, it can't tell you if it is a kvm accelerated guest though.
FWIW, it isn't really an interface to qemu or kvm so you probably can't guarantee it
will continue to work or that the device strings can't be masked by something else
on the host or guest. The same method is often suggested as a cheap (sleazy) way of
detecting VMware hosting.
--
David.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html