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-users

Re: [Xen-users] Am I running under Xen?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Am I running under Xen?
From: Andy Smith <andy@xxxxxxxxxxxxxx>
Date: Mon, 3 Mar 2008 05:38:06 +0000
Delivery-date: Sun, 02 Mar 2008 21:38:56 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200803022305.02496.jim_burn@xxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Openpgp: id=BF15490B; url=http://strugglers.net/~andy/pubkey.asc
References: <20080302215654.6358d3b4@zooty> <200803022305.02496.jim_burn@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
Hi,

On Sun, Mar 02, 2008 at 11:05:01PM -0500, jim burns wrote:
> On Sunday 02 March 2008 09:56:54 pm Tom Horsley wrote:
> > Is there a standard idiom most folks use to ask the
> > question: Am I a linux that was just booted under Xen?
> 
> Probably the existence of /proc/xen, altho that's true for dom0 also.

You can test whether you are dom0 or domU by looking at
/proc/xen/capabilities.

A modified dom0 can of course lie to you about this though, so it
isn't a very satisfactory answer to the hypothetical philosophical
question of "are we in a virtual machine?"  Unfortunately there is
no Morpheus with the blue and red pills.

Cheers,
Andy

Attachment: signature.asc
Description: Digital signature

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