Page 1 of 1

VirtualBox pids to vm?

Posted: 1. May 2009, 01:41
by Red Squirrel
When using top, is there a way to know which VM is which? I have a vm using 100% cpu but I don't know which one it is, how would I determine this?

Re: VirtualBox pids to vm?

Posted: 1. May 2009, 06:22
by SlaunchaMan
Instead of using top, try using something like ps -aef (of course, the syntax may depend on your distro - mine is for Darwin).

Re: VirtualBox pids to vm?

Posted: 1. May 2009, 22:15
by Red Squirrel
I tried that command but did not really get anything useful out of it. Just a bunch of random chars, and some random file paths. Think it's dumping actual ram or something.

Re: VirtualBox pids to vm?

Posted: 1. May 2009, 22:27
by baf
try it this way

ps axwwo pid,command|grep Vi

If you are not happy with it copy and paste the answer so we can see it.
Also exactly which linux are you on ?

Re: VirtualBox pids to vm?

Posted: 2. May 2009, 03:26
by Red Squirrel
Thanks that worked, I just had to do ps axwwo [pid] and it showed the actual command, which has the vm name in it.