[vbox-dev] How to get the current running IMachine instance inside a host service?
huisinro at yahoo.com
Fri May 8 07:08:16 PDT 2009
Thanks. Yes, we can get that info from command line, on linux or windows.
I was wondering if there are better ways? for instance, the COM. If not, perhaps add a method to IVirtualBox, or pass some info to the host services on loading time.
--- On Fri, 5/8/09, Armindo Silva <deathon2legs at gmail.com> wrote:
From: Armindo Silva <deathon2legs at gmail.com>
Subject: Re: [vbox-dev] How to get the current running IMachine instance inside a host service?
To: "Huihong Luo" <huisinro at yahoo.com>
Cc: vbox-dev at virtualbox.org
Date: Friday, May 8, 2009, 6:27 AM
On linux hosts:
$ ps aux | grep -i virtual
mndo 18797 0.0 0.0 5600 1808 ? S 13:02 0:00
mndo 19614 0.0 0.0 3336 884 pts/5 S+ 14:24 0:00 grep -i virtual
mndo 21477 0.0 0.2 13828 4256 ? Sl 13:03 0:01
mndo 21485 20.2 24.4 631264 503028 ? Sl 13:03 16:26
/usr/lib/virtualbox/VirtualBox --comment WinXP --startvm
The last line have the name and the uuid.
Don't have a windows host :|
Hope this helps.
On Thu, May 7, 2009 at 6:21 PM, Huihong Luo <huisinro at yahoo.com> wrote:
> I am developping a shared service between host and guest. On host service
> dll, I need to get some info about the current running vm. What is the
> correct way of doing this? I couldn't figure out how to get the vm name or
> vm uuid.
> vbox-dev mailing list
> vbox-dev at virtualbox.org
"The only way of discovering the limits of the possible is to venture
a little way past them into the impossible."
Sir Arthur C. Clarke
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vbox-dev