I have modified VBoxManageSnapshot.cpp to set some properties of a VM before
the snapshot is started and after the snapshot is completes: i.e.
if( if (!strcmp(a->argv[1], "take")))
{
ComPtr<IMachine> myMachine;
a->session->COMGETTER(Machine)(myMachine.asOutParam());
......handle the snapshot stuff
CHECK_ERROR(myMachine, SetGuestPropertyValue(Bstr("/MyProperties/property1"),
Bstr("snapshot complete")));
}
When I check property1 within the program (i.e. use GetGuestPropertyValue and
print the time stamp before and after setting it), the value and the time stamp
indeed change.
However, afterwards, sometimes when I do sudo ./VBoxManage guestproperty get
vmname /MyProperties/property1 the value appears unchanged, and the time stamp
looks different from the old and the new time stamp. Why is this happening?
Is this a bug or am I doing something wrong? If its the latter, what is the
right way?
Basically, what I am trying to achieve is to tell the application within the VM
(running Ubuntu) that the snapshot is about to start (which will pause the VM)
and notify the VM after it is resumed because the snapshot has completed.
Thank You.
_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev