launchVMProcess documentation

This is for discussing general topics about how to use VirtualBox.
Post Reply
mega56
Posts: 3
Joined: 8. Mar 2011, 22:09
Primary OS: FreeBSD
VBox Version: OSE self-compiled
Guest OSses: FreeBSD

launchVMProcess documentation

Post 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'
dirks
Posts: 12
Joined: 19. Feb 2008, 01:59
Primary OS: MS Windows Vista
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win XP / Vista / 7

Re: launchVMProcess documentation

Post 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.
Post Reply