|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] simple check for domU?
On 11/11/05, Karsten M. Self <kself@xxxxxxxxxxxxx> wrote:
> on Fri, Nov 11, 2005 at 12:23:18AM +0000, Chris Bainbridge
> (chris.bainbridge@xxxxxxxxx) wrote:
> > Hi, is there a simple way to check that we're running under a domU? So
> > far I came up with:
>
> Try:
>
> uname -r | grep -q -- -xen
>
> ... which generally works. 'test -d /proc/xen' is pretty reliable as
> well.
I'm looking specifically for domU and not dom0 (well, it would be
useful to have a reliable way of identifying both). /proc/xen will be
present in dom0 and uname depends on the kernel EXTRAVERSION which
isn't guaranteed.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|