how to show running vms with VBoxManage list runningvms

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Dirk_Lehmann
Posts: 60
Joined: 4. Oct 2015, 22:27

how to show running vms with VBoxManage list runningvms

Post by Dirk_Lehmann »

If I enter:

Code: Select all

VBoxManage list runningvms
on the host I do not get any output. graphical interface shows running vms. how to use VBoxManage list runningvms corretly to get a output?

DL
andyp73
Volunteer
Posts: 1631
Joined: 25. May 2010, 23:48
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Assorted Linux, Windows Server 2012, DOS, Windows 10, BIOS/UEFI emulation

Re: how to show running vms with VBoxManage list runningvms

Post by andyp73 »

It looks as though you may be running the VBoxManage command as a different user to the one that started the virtual machines.

On my live Debian 9 machine they get started by a user called "virtualbox" and the VBoxManage command has to be run by that user. Running it as root, for example, shows no output.

-Andy.
My crystal ball is currently broken. If you want assistance you are going to have to give me all of the necessary information.
Please don't ask me to do your homework for you, I have more than enough of my own things to do.
Dirk_Lehmann
Posts: 60
Joined: 4. Oct 2015, 22:27

Re: how to show running vms with VBoxManage list runningvms

Post by Dirk_Lehmann »

Might be, I tried it with my username and with superuser. Which user might it be? How to figure that out?
andyp73
Volunteer
Posts: 1631
Joined: 25. May 2010, 23:48
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Assorted Linux, Windows Server 2012, DOS, Windows 10, BIOS/UEFI emulation

Re: how to show running vms with VBoxManage list runningvms

Post by andyp73 »

Run "ps -aux" as root and look or grep through the output. The first field is the owner of the running process.

-Andy.
My crystal ball is currently broken. If you want assistance you are going to have to give me all of the necessary information.
Please don't ask me to do your homework for you, I have more than enough of my own things to do.
Dirk_Lehmann
Posts: 60
Joined: 4. Oct 2015, 22:27

Re: how to show running vms with VBoxManage list runningvms

Post by Dirk_Lehmann »

Thank you very much, see maybe:

Code: Select all

dirk     22697  2.1  0.3 4903436 105952 ?      Sl   Mär26  78:35 /usr/lib/virtualbox/VirtualBox --comment Webserver --startvm 59e4efc3-4866-4931-a560-92808
I was wondering why I do net get any output as dirk by using the command mentioned?!
Post Reply