Dear all, I wanted to know the processes running inside domU from dom0. Is it possible? if yes,how to know? Thanks & Regards, Yashwanth _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Mar-03 06:13 UTC
Re: [Xen-users] how to know processes running inside domU
On Wed, Mar 3, 2010 at 1:09 PM, yashwanth <yashwanth.reddy@atc.tcs.com> wrote:> Dear all, > > I wanted to know the processes running inside domU from dom0. > Is it possible? if yes,how to know?Short answer: you can''t. Not with the default setup. For the same reasons that you can''t get the list of running processes on another physical server. Long answer: Try net-snmp (OID .1.3.6.1.2.1.25.4.2.1) , or see http://doc.xenaccess.org/ -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Mar-03 06:38 UTC
Re: [Xen-users] how to know processes running inside domU
On Wed, Mar 3, 2010 at 1:37 PM, yashwanth <yashwanth.reddy@atc.tcs.com> wrote:> Dear Fajar, > Thank you for your prompt response. > What i thought was using "xentop" or "xm top" we can know the > utilization of cpu inside domU from dom0. > In the same way is any command to list processes inside domU.That''s not possible. xentop merely display sets of statictics collected by dom0 regarding vcpus, vbd, and vif. xen keeps track of those stats, so xentop only has to display them in human-readable output. On the contrary, xen does not keep track of what processess are running inside domU. It doesn''t care, and have no way of knowing. Xen only knows what kernel domU is running (PV domU kernel, or hvmloader in case of HVM domU). That''s it. This is different from (for example) Solaris zones, Linux containers, or openvz, where they essentially share one kernel and guest''s processes also show up on the host. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Michael Schmidt
2010-Mar-03 06:49 UTC
Re: [Xen-users] how to know processes running inside domU
yashwanth schrieb:> Dear all, > > I wanted to know the processes running inside domU from dom0. > Is it possible? if yes,how to know? > > Thanks & Regards, > Yashwanth > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >Hi, you can run a short client app on the DomU who writes misc informations (like ps list) into the xenstore. Then you can read this informations on the dom0. But at first you have to create a xenstore tree (in /tool/..) and grand write rights to the DomU. The xenstore tools on the domU must have the same or newer xen version than the dom0 version. If others like this feature too, i can (realy fast) add it to my xnCORE software. Best Regards - Michael Schmidt _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, 3 Mar 2010, yashwanth wrote:> Dear all, > > I wanted to know the processes running inside domU from dom0. > Is it possible? if yes,how to know? > > Thanks & Regards, > YashwanthHi, You must be logged in to it, either via console or ssh and issue a ps command. I don''t think there is other way.> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Zane Rockenbaugh
2010-Mar-03 16:48 UTC
Re: [Xen-users] how to know processes running inside domU
In the same vein, you still log in, but if you wanted to automate, you could do something like: ssh admin@10.0.0.2 "ps aux | grep someprocessname" Or, to completely automate it you can set up SSH with certificate based authentication between the dom0 and domU, then you don''t even need to enter a password to get the above to work (after unlocking the cert for the session). I''ve written a script to do this, which I describe here: http://www.zanecorp.com/wiki/index.php/SSH_with_Certificates There''s also a link at the bottom to the tutorial which I derived the script from which shows you how to manually set it up. Nux wrote:> On Wed, 3 Mar 2010, yashwanth wrote: > >> Dear all, >> >> I wanted to know the processes running inside domU from dom0. >> Is it possible? if yes,how to know? >> >> Thanks & Regards, >> Yashwanth > > Hi, > > You must be logged in to it, either via console or ssh and issue a ps > command. > I don''t think there is other way. > >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- twitter: zanerock _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users