Usage DCOM for remote control, advices?
Posted: 1. Feb 2025, 19:56
Hi,
I’m trying clarify situation for remote controlling VirtualBox on Windows using COM interface.
I found in SDKRef.pdf#page29 docs a comparison table SOAP (webservice) vs COM/XPCOM.
Docs says a preferable way (or one possible?) for remote control virtualbox on Windows host is WebService. Is WebService only one possible/required way for remote controlling vbox on Windows host?
As far as I know for Windows it is (in theory) possible to use Distributed COM.
I tried to register VboxClient-x86.dll and VboxProxyStub-x86.dll on a client system. After that I changed using dcomcnfg targets to a remote server (actual windows host). I even able to receive on remote guest a IVirtualBoxClient or IVirtualBox objects by calling CoCreateInstanceEx.
But if I’m trying call interface members - for IVirtualBoxClient I receive error - VboxSDS isn’t found, use vboxsds —register… (vboxsds service started manually on host). IVirtualBox just says Access Denied for any call, even for a version request. Actually, sounds like I just missing something with security settings/accounts usage. I already allowed Everyone to access all DCOM-specific activities.
Do you have any advice how to set up DCOM remote access? Is it possible or vbox has some unclear limitations which prevents working thru DCOM?
Thank you!
I’m trying clarify situation for remote controlling VirtualBox on Windows using COM interface.
I found in SDKRef.pdf#page29 docs a comparison table SOAP (webservice) vs COM/XPCOM.
Docs says a preferable way (or one possible?) for remote control virtualbox on Windows host is WebService. Is WebService only one possible/required way for remote controlling vbox on Windows host?
As far as I know for Windows it is (in theory) possible to use Distributed COM.
I tried to register VboxClient-x86.dll and VboxProxyStub-x86.dll on a client system. After that I changed using dcomcnfg targets to a remote server (actual windows host). I even able to receive on remote guest a IVirtualBoxClient or IVirtualBox objects by calling CoCreateInstanceEx.
But if I’m trying call interface members - for IVirtualBoxClient I receive error - VboxSDS isn’t found, use vboxsds —register… (vboxsds service started manually on host). IVirtualBox just says Access Denied for any call, even for a version request. Actually, sounds like I just missing something with security settings/accounts usage. I already allowed Everyone to access all DCOM-specific activities.
Do you have any advice how to set up DCOM remote access? Is it possible or vbox has some unclear limitations which prevents working thru DCOM?
Thank you!