From: Sachin Goel Subject: Re: How to detect if a machine is a Virtual machine ?? Date: Wed, 23 Dec 2009 12:39:55 -0800 (PST) Message-ID: <73775f00-d334-4b42-9854-bebcb6891821@default> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: minovotn@redhat.com Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Thanks Michal for clarifying.. For a moment I got confused :) - Sachin. ----- Original Message ----- From: minovotn@redhat.com To: xen-devel@lists.xensource.com Sent: Thursday, December 24, 2009 1:20:34 AM GMT +05:30 Chennai, Kolkata, M= umbai, New Delhi Subject: Re: [Xen-devel] How to detect if a machine is a Virtual machine ?? On 12/23/2009 10:34 AM, Michal Novotny wrote: > On 12/23/2009 10:16 AM, John Haxby wrote: >> On 22/12/09 10:37, Michal Novotny wrote: >>> Hi Sachin, >>> the tool is not in the virtual machine. This is the tool that's in=20 >>> dom0. Since there is a source code for this one you could scp it to=20 >>> the guest, compile and run inside the guest environment. There is no=20 >>> need to provide a guest with this tool by default and in fact this=20 >>> is really impossible so it's better to scp it to the guest and=20 >>> compile there. >> >> It's also worth pointing out that the underlying test for xen in this=20 >> program executes a particular instruction to find the information=20 >> about its environment. What that means is that it's possible to=20 >> write a version of ./tools/misc/xen-detect.c that will work in any=20 >> guest machine OS. > But one more point, if you want to know whether XEN_PV is returned for=20 > dom0 PV guest or domU (since it's the same for both) you can try to=20 > look for /proc/xen/privcmd. This one is available only in dom0 because=20 > privileged commands are for privileged domain (domain-0) only... Oh, sorry, I did mean for domU PV guest or dom0, of course... Michal _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel