[vbox-dev] How to start a VM from Python/COM ?
Alexey Eromenko
al4321 at gmail.com
Fri Feb 4 01:14:48 PST 2011
On Mon, Jan 31, 2011 at 2:27 AM, Nikolay Igotti
<nikolay.igotti at oracle.com> wrote:
> Hi,
>
> First of all, it would be nice if you tried vboxshell.py first. It's
> strongly recommended
> to use uniform bindings (vboxapi.py) in all newly developed code.
> With it code is pretty simple:
>
> from vboxapi import VirtualBoxManager
> mgr = VirtualBoxManager(None, None)
> vbox = mgr.vbox
> name = "ubu"
> mach = vbox.findMachine(name)
> session = mgr.mgr.getSessionObject(vbox)
> progress = mach.launchVMProcess(session, "gui", "")
> progress.waitForCompletion(-1)
>
Your example works.
The official SDK's example does not. (SDKRef.pdf)
I would like to ask to update section v2.3.2 of SDKRef.pdf to working example.
--
-Alexey Eromenko "Technologov"
More information about the vbox-dev
mailing list