[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] test for domU


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.