VirtualBox pids to vm?
-
Red Squirrel
- Posts: 118
- Joined: 25. Jan 2009, 05:28
VirtualBox pids to vm?
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?
-
SlaunchaMan
- Posts: 65
- Joined: 6. Apr 2009, 22:28
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu 18.04
- Location: Detroit, MI
- Contact:
Re: VirtualBox pids to vm?
Instead of using top, try using something like ps -aef (of course, the syntax may depend on your distro - mine is for Darwin).
-
Red Squirrel
- Posts: 118
- Joined: 25. Jan 2009, 05:28
Re: VirtualBox pids to vm?
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.
-
baf
- Volunteer
- Posts: 829
- Joined: 27. Sep 2008, 06:18
- Primary OS: Mac OS X Leopard
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: linux,xp,win7
- Location: Luleå or Skellefteå, Sweden
Re: VirtualBox pids to vm?
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 ?
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 ?
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
My way: "You live as long as you learn".
-
Red Squirrel
- Posts: 118
- Joined: 25. Jan 2009, 05:28
Re: VirtualBox pids to vm?
Thanks that worked, I just had to do ps axwwo [pid] and it showed the actual command, which has the vm name in it.