[vbox-dev] Unable to get a session - lockMachine

Alexey Eromenko al4321 at gmail.com
Mon Jan 16 23:53:45 PST 2012


Try this:
vbc = vboxapi.VirtualBoxReflectionInfo(False)
vb_mgr = vboxapi.VirtualBoxManager(None, None)
+constants = vb_mgr.constants

...
-        machine.lockMachine(session, vbc.LockType_Shared)
+        machine.lockMachine(session, constants.LockType_Shared)

No idea about this: "vbc = vboxapi.VirtualBoxReflectionInfo(False)". I
never used it.

-- 
-Alexey Eromenko "Technologov"




More information about the vbox-dev mailing list