From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: KVM Guest detection Date: Wed, 13 Aug 2008 13:59:30 -0500 Message-ID: <48A32F12.1000602@codemonkey.ws> References: <173499.50107.qm@web35806.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: KVM List To: jdsw2002@yahoo.com Return-path: Received: from wr-out-0506.google.com ([64.233.184.226]:38420 "EHLO wr-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751763AbYHMTAL (ORCPT ); Wed, 13 Aug 2008 15:00:11 -0400 Received: by wr-out-0506.google.com with SMTP id 69so114581wri.5 for ; Wed, 13 Aug 2008 12:00:10 -0700 (PDT) In-Reply-To: <173499.50107.qm@web35806.mail.mud.yahoo.com> Sender: kvm-owner@vger.kernel.org List-ID: 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 ] > The preferred way of doing this is checking CPUID leaf 0x4000 0000 for the signature "KVMKVMKVM". Most hypervisors (KVM, Xen, VMware, and Hyper-V) are adopting this as the preferred detection mechanism. Regards, Anthony Liguori > /Jd > > > > > -- > 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 >