VirtualBox pids to vm?

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Red Squirrel
Posts: 118
Joined: 25. Jan 2009, 05:28

VirtualBox pids to vm?

Post 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?
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?

Post 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).
Red Squirrel
Posts: 118
Joined: 25. Jan 2009, 05:28

Re: VirtualBox pids to vm?

Post 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.
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?

Post 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 ?
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
Red Squirrel
Posts: 118
Joined: 25. Jan 2009, 05:28

Re: VirtualBox pids to vm?

Post 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.
Post Reply