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

[Xen-users] test for domU

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] test for domU
From: "James Dingwall" <james.dingwall@xxxxxxxxxx>
Date: Thu, 16 Oct 2008 10:55:10 +0100
Delivery-date: Thu, 16 Oct 2008 02:56:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AckvdUcpdk67q7Q+QAirWg9RqVTjKQ==
Thread-topic: test for domU
Hi,

I've moved some domU instances to a 2.6.27 pv ops kernel.  I use the
test below for various scripts to see if it is domU instance but it no
longer works as the /proc file as gone away.  Does anyone know if there
is a similar test that can be run for this new setup?

if test -e /proc/xen/capabilities && ! grep -q "control_d"
/proc/xen/capabilities ; then
        # domU
        exit 0
fi

Thanks,
James

This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] test for domU, James Dingwall <=