WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] How to detect if a machine is a Virtual machine ??

To: Sachin Goel <SACHIN.GOEL@xxxxxxxxxx>
Subject: Re: [Xen-devel] How to detect if a machine is a Virtual machine ??
From: Michal Novotny <minovotn@xxxxxxxxxx>
Date: Mon, 04 Jan 2010 07:32:58 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 03 Jan 2010 22:33:45 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <73775f00-d334-4b42-9854-bebcb6891821@default>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <73775f00-d334-4b42-9854-bebcb6891821@default>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Thunderbird/3.0b4
Yeah, sorry about that. Hope you're not confused anymore ;)

Michal

On 12/23/2009 09:39 PM, Sachin Goel wrote:
Thanks Michal for clarifying..

For a moment I got confused :)

- Sachin.

----- Original Message -----
From: minovotn@xxxxxxxxxx
To: xen-devel@xxxxxxxxxxxxxxxxxxx
Sent: Thursday, December 24, 2009 1:20:34 AM GMT +05:30 Chennai, Kolkata, 
Mumbai, 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
dom0. Since there is a source code for this one you could scp it to
the guest, compile and run inside the guest environment. There is no
need to provide a guest with this tool by default and in fact this
is really impossible so it's better to scp it to the guest and
compile there.
It's also worth pointing out that the underlying test for xen in this
program executes a particular instruction to find the information
about its environment.   What that means is that it's possible to
write a version of ./tools/misc/xen-detect.c that will work in any
guest machine OS.
But one more point, if you want to know whether XEN_PV is returned for
dom0 PV guest or domU (since it's the same for both) you can try to
look for /proc/xen/privcmd. This one is available only in dom0 because
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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-devel] How to detect if a machine is a Virtual machine ??, Michal Novotny <=