How to reload vboxapi when VBoxXPCOMIPCD and VBoxSVC is killed
Posted: 29. Sep 2020, 08:21
I import vboxapi and get the object like this:
it will start VBoxXPCOMIPCD and VBoxSVC process automatically, but when I kill the VBoxXPCOMIPCD and VBoxSVC, the vbox object will be None. Even if I reload vboxapi, and reget the vbox object again, it still None.
my question is , how to get the vbox object again , when the VBoxXPCOMIPCD and VBoxSVC is killed or crash.(do not close my python script and restart)
Code: Select all
import vboxapi
reload(vboxapi)
oVBoxMgr = vboxapi.VirtualBoxManager(None, None)
vbox = oVBoxMgr.getVirtualBox()my question is , how to get the vbox object again , when the VBoxXPCOMIPCD and VBoxSVC is killed or crash.(do not close my python script and restart)