Code: Select all
import virtualbox
vm = virtualbox.VirtualBox().find_machine('test')
session = vm.create_session()
s = virtualbox.Session()
vm.launch_vm_process()
Code: Select all
(The machine 'test' is already locked by a session (or being locked or unlocked))
But then when I try to lock it, using this command:
Code: Select all
vm.create_session(lock_type=virtualbox.library.LockType.write)
Code: Select all
Failed to create clone - 0x80bb0007 (The machine 'test' is already locked for a session (or being unlocked))
Can anyone help me with this?
Thanks!