Page 1 of 1

launchVMProcess documentation

Posted: 8. Mar 2011, 22:26
by mega56
hello,

I'm been trying to use the API to do simple VBoxManage commands, like start, power down, revert to snapshot...etc. I'm getting stuck at the launchVMProcess. I can't find this method in the SDK documentation under IMachine. I'm running python 2.6 and VirtualBox 3.2.12.

Any ideas?

If someone can provide examples on how to get to the point where I'm starting and stopping VMs, that would be great.

Thanks

Code: Select all

>>> from vboxapi import VirtualBoxManager
>>> vboxmanager = VirtualBoxManager(None,None)
>>> vbox = vboxmanager.vbox
>>> mgr = vboxmanager.mgr
>>> mach = vbox.findMachine('qa1')
>>> session = mgr.getSessionObject(vbox)
>>> mach.launchVMProcess(session,'headless','')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.6/site-packages/xpcom/client/__init__.py", line 384, in __getattr__
raise AttributeError, "XPCOM component '%s' has no attribute '%s'" % (self._object_name_, attr)
AttributeError: XPCOM component '<unknown>' has no attribute 'launchVMProcess'

Re: launchVMProcess documentation

Posted: 9. Mar 2011, 00:24
by dirks
I'm getting stuck at the launchVMProcess. I can't find this method in the SDK documentation under IMachine. I'm running python 2.6 and VirtualBox 3.2.12.
LaunchVMProcess was introduced in V4, so it looks as if you're using a V4 example with the V3 documentation.
In V3 you can use IVirtualBox.OpenRemoteSession. It should be described in the version 3 SDK docs.

Gr.
Dirk.