launchVMProcess documentation
Posted: 8. Mar 2011, 22:26
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
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'
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','')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'