<div dir="ltr">Hi,<div><br></div><div>thanks for the quick response. Here are both logs:</div><div><br></div><div>VBoxHeadless: <a href="http://pastebin.com/5yNy2Mke">http://pastebin.com/5yNy2Mke</a><br></div><div><br></div><div>My frontend: <a href="http://pastebin.com/kLHC4eTD">http://pastebin.com/kLHC4eTD</a></div><div><br></div><div>If you can see what is wrong from these logs I'd like to know so I can avoid troubling the dev list, for my untrained eye they seemed similar.</div><div><br></div><div>><span style="font-size:12.8000001907349px"> </span><span style="font-size:12.8000001907349px">I hope you don't tweak too much in your custom code, because</span></div><span style="font-size:12.8000001907349px">then we can't easily help with figuring out what might be the cause.</span><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Well, the same code worked without issues on Windows, what I did was just replace CoCreateInstance with the glue code from your example, and change names of some accessors.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">> </span><span style="font-size:12.8000001907349px">can't you try with a newer vbox version, such as 4.3.26?</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Well, I hope that someone corrects my if I'm wrong, but as far as I understand, due to hardening I can't run a custom frontend with 4.3.14+ without recompiling from sources with hardening disabled or adding my binary to the list of trusted frontends, so in that case I can as well build from source and debug what exactly is going wrong.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Best Regards,</span></div><div><span style="font-size:12.8000001907349px">Rudolfs Bundulis<br></span><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-23 13:12 GMT+02:00 Gianfranco Costamagna <span dir="ltr"><<a href="mailto:costamagnagianfranco@yahoo.it" target="_blank">costamagnagianfranco@yahoo.it</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
can't you try with a newer vbox version, such as 4.3.26?<br>
<br>
cheers,<br>
<br>
G.<br>
<br>
<br>
<br>
<br>
<br>
Il Lunedì 23 Marzo 2015 11:25, Rūdolfs Bundulis <<a href="mailto:rudolfs.bundulis@gmail.com">rudolfs.bundulis@gmail.com</a>> ha scritto:<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
Hi,<br>
<br>
I'm porting my existing frontend from Windows (COM) to Linux (XPCOM). I was able to successfully plug all the XPCOM stuff from the example in the source tree. I am able to successfully obtain an instance of the API, find the needed machine and power it up. However after I call IConsole PowerUp I get an error which I didn't get on Windows in the VBox.log:<br>
<br>
irtualBox VM 4.3.10_Ubuntu r93012 linux.amd64 (Jan <a href="tel:29%202015%2003" value="+37129201503">29 2015 03</a>:52:40) release log<br>
00:00:02.502397 Log opened 2015-03-15T13:13:26.762531000Z<br>
00:00:02.502398 Build Type: release<br>
00:00:02.502402 OS Product: Linux<br>
00:00:02.502402 OS Release: 3.16.0-30-generic<br>
00:00:02.502403 OS Version: #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015<br>
00:00:02.502424 DMI Product Name: Z9PE-D16 Series<br>
00:00:02.502430 DMI Product Version: 1.0X<br>
00:00:02.502501 Host RAM: 15995MB total, 15603MB available<br>
00:00:02.502531 Executable: /tmp/DisplayWall/Build/Linux/Debug/DisplayWallServer<br>
00:00:02.502532 Process ID: 16081<br>
00:00:02.502533 Package type: LINUX_64BITS_GENERIC (OSE)<br>
00:00:02.508922 Installed Extension Packs:<br>
00:00:02.508931   VNC (Version: 4.3.10 r93012; VRDE Module: VBoxVNC)<br>
00:00:02.557003 SUP: Loaded VMMR0.r0 (/usr/lib/virtualbox/VMMR0.r0) at 0xffffffffc0fa9020 - ModuleInit at ffffffffc0fc67a0 and ModuleTerm at ffffffffc0fc6a40<br>
00:00:02.557025 SUP: VMMR0EntryEx located at ffffffffc0fc7e00, VMMR0EntryFast at ffffffffc0fc7a20 and VMMR0EntryInt at ffffffffc0fc7a10<br>
00:00:02.558343 Guest OS type: 'Windows7_64'<br>
00:00:02.560036 fHMForced=true - Lots of RAM<br>
00:00:02.560040 fHMForced=true - SMP<br>
00:00:02.560042 fHMForced=true - 64-bit guest<br>
00:00:02.563830 File system of '/root/VirtualBox VMs/Windows 7 XPDM/Snapshots' (snapshots) is unknown<br>
00:00:02.563836 File system of '/root/VirtualBox VMs/Windows 7 XPDM/Windows 7 XPDM-disk2.vmdk' is ext4<br>
00:00:02.611317 Shared clipboard mode: Off<br>
00:00:02.642036 Drag'n'drop mode: Off<br>
....<br>
00:00:02.964518 VMSetError: /build/buildd/virtualbox-4.3.10-dfsg/src/VBox/VMM/VMMR3/VM.cpp(363) int VMR3Create(uint32_t, PCVMM2USERMETHODS, PFNVMATERROR, void*, PFNCFGMCONSTRUCTOR, void*, VM**, UVM**); rc=VERR_NOT_SUPPORTED<br>
00:00:02.964523 VMSetError: Not supported.<br>
00:00:03.026185 ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={8ab7c520-2442-4b66-8d74-4ff1e195d2b6} aComponent={Console} aText={Not supported. (VERR_NOT_SUPPORTED)}, preserve=false<br>
<br>
The code base is the same that worked on windows, and the log does not actually state what is not supported. I tried to debug the program using the symbol package for ubuntu, but I can only get a stack trace, but not walk through the code to find an exact line to see what goes wrong. The only big difference i see, that in Windows I was not doing any event pumping, while i see code that does xpcom event pumping in the examples, could that cause this issue? VBoxManage is able to start the same virtual machine fine, I did a diff on the logs, and actually till the error line everything is the same, no additional errors or info. Any hints on what am I missing?<br>
<br>
Best Regards,<br>
Rudolfs Bundulis<br>
</div></div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
vbox-dev mailing list<br>
<a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br>
<a href="https://www.virtualbox.org/mailman/listinfo/vbox-dev" target="_blank">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a><br>
</div></div></blockquote></div><br></div>