[vbox-dev] How to Initialize PUVM object from VM UUID/name

Azizul Hakim mhaki005 at fiu.edu
Wed Apr 19 19:45:25 UTC 2017

Hi Klaus,

Thank you for your organized answer. Basically I am planning to write a VM
introspection module for LibVMI. LibVMI does it for XEN. XEN by default has
some exposed API to take advantage of VM introspection. I was looking into
that source code of LibVMI and was exploring if something similar can be
done for Virtual Box. As a start point, I started looking into VBoxVMM and
some of the functions seemed to be analogous to the API's from XEN which
made me believe I could use similar approach for VBox too.

Having said that, I would like to know if there is any support from VBox
for VM introspection and which part of the source code should I look into
in case I've to add the support from scratch.

Azizul Hakim


Message: 6
Date: Wed, 19 Apr 2017 19:52:06 +0200
From: Klaus Espenlaub <klaus.espenlaub at oracle.com>
To: vbox-dev at virtualbox.org
Subject: Re: [vbox-dev] How to Initialize PUVM object from VM
Message-ID: <6a980edb-fc3d-c037-9467-4f056f425cf3 at oracle.com>
Content-Type: text/plain; charset=windows-1252; format=flowed

Hello Azizul,

On 19.04.2017 15:32, Azizul Hakim wrote:
> I'm doing some research on VirtualBox VMM. I'm trying to call some VMM
> functions from my library. Basically I was trying to call VMR3Suspend
> function and it takes an instance of PUVM. PUVM is only initialized
> during the creation of a VM. Which means I can't suspend a VM unless I
> created it. I was just wondering if there is some function which will
> initialize an instance of PUVM given its UUID/name.

There must be another way (it doesn't have to be calling the official
C++ API which offers a method to pause a VM, which internally calls
VMR3Suspend). Your code must be located in the VM process anyway, so it
should have some starting point (and no, there's no function call to
calculate PUVM from the VM UUID/name).

Who's calling your code? You should be able to get what you need...

> Because of the type of my work, I can not do it using other VBox tools.
> I've to do it through the VMM. Any guideline is much appreciated.

Too little information to help, I'm afraid.


> Best
> Azizul Hakim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20170419/cc9603c4/attachment.html>

More information about the vbox-dev mailing list