How to reload vboxapi when VBoxXPCOMIPCD and VBoxSVC is killed

Discussion about using the VirtualBox API, Tutorials, Samples.
Post Reply
smallchicken
Posts: 2
Joined: 29. Sep 2020, 05:51

How to reload vboxapi when VBoxXPCOMIPCD and VBoxSVC is killed

Post by smallchicken »

I import vboxapi and get the object like this:

Code: Select all

import vboxapi
reload(vboxapi)
oVBoxMgr = vboxapi.VirtualBoxManager(None, None)
vbox = oVBoxMgr.getVirtualBox()
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)
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: How to reload vboxapi when VBoxXPCOMIPCD and VBoxSVC is killed

Post by scottgus1 »

I deleted the two duplicates of your post. Duplicating posts is not allowed.
Post Reply