[vbox-dev] Virtual Box API to shutdown machine / apply snapshot
Benedict, Elad
benedict.elad at hp.com
Fri Apr 20 09:12:59 PDT 2012
Hi,
This is my first interaction with this API so I guess I'm just using it wrong;
My machine can be in the saved\paused\abort\running state.
I'd like to write the simplest code that gets my machine from whatever state it is in to a running state after having restored a given snapshot.
Can you please advise?
Thanks again,
Elad.
-----Original Message-----
From: Klaus Espenlaub [mailto:klaus.espenlaub at oracle.com]
Sent: Friday, April 20, 2012 6:42 PM
To: vbox-dev at virtualbox.org
Subject: Re: [vbox-dev] Virtual Box API to shutdown machine / apply snapshot
Hi Elad,
On 20.04.2012 17:31, Benedict, Elad wrote:
> Hi all,
>
> I'm trying to use the COM API to apply some snapshot.
> Since I don't know (or more accurately, care, about) the initial state
> of the machine I thought I'd:
> 1. Power the machine off
> 2. Apply the snapshot I want
>
> The thing is I can't get the machine to PoweredOff state using the
> PowerDown method since it's not legal when the machine is in certain states.
> Is there some easy way to perform what I want?
> (Either easily apply the snapshot, regardless of the machines current
> state, or get it to powered off state)
Which "certain states" are you talking about? So far we got away with
the API methods...
Klaus
>
>
> Thanks a lot,
> Elad.
_______________________________________________
vbox-dev mailing list
vbox-dev at virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev
More information about the vbox-dev
mailing list