I finally figured out how to make it work. I had first built VBox OSE without hardening, but I was getting an error "kernel driver not accessible". Then I trid to build with hardening, but it didn't allow me to use my own files and I didn't want to modify such an integral part of VBox. I rebuilt it without hardening again. This time I tweaked some permissions with /dev/vboxdrv and I reinstalled the package virtualbox-ose-dkms. My host service is now loading successfully.<br>
<br>Thanks to Andreas for telling me how to load my service from within ConsoleImpl2.cpp.<br><br><div class="gmail_quote">On Thu, Jun 17, 2010 at 8:07 PM, Anirudh Bagde <span dir="ltr"><<a href="mailto:anidev.aelico@gmail.com">anidev.aelico@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I managed to build from scratch VirtualBox OSE. It wasn't building before because some dev packages needed to be installed. I modified ConsoleImpl2.cpp to load my library and rebuilt VBoxC.so. However, in the log file, I get:<br>

<br><span style="font-family: courier new,monospace;">00:00:00.834 supR3HardenedLdrLoadIt: Verification of "/usr/src/virtualbox-ose-3.2.0-src/out/linux.x86/release/bin/VBoxBetterSeamless.so" failed, rc=VERR_NOT_FOUND</span><br>

<br><font face="arial,helvetica,sans-serif">I looked in the source files and I saw that my file apparently wasn't in a verification table (</font>g_aSupInstallFiles) in file SUPR3HardenedVerify.cpp. Must my build of VBox OSE not be hardened before I can do this, or should I modify SUPR3HardenedVerify.cpp to include my library?<div>
<div></div><div class="h5"><br>
<br><br><div class="gmail_quote">On Tue, Jun 15, 2010 at 5:43 PM, Anirudh Bagde <span dir="ltr"><<a href="mailto:anidev.aelico@gmail.com" target="_blank">anidev.aelico@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Thanks for your information. Does this mean I have to modify and rebuild part of VirtualBox OSE?<br><br>I didn't actually build it myself. I used aptitude to download and install the package virtualbox-ose. So what should I do from here?<br>


<br>Thanks again.<div><div></div><div><br><br><div class="gmail_quote">On Tue, Jun 15, 2010 at 3:11 AM, Andreas - Sun Microsystems <span dir="ltr"><<a href="mailto:pentagonik@sun.com" target="_blank">pentagonik@sun.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
you need to have Main load your service; take a look into src/VBox/Main/ConsoleImpl2.cpp, around<br>
<br>
.<br>
.<br>
.<br>
#ifdef VBOX_WITH_GUEST_PROPS<br>
    /*<br>
     * Guest property service<br>
     */<br>
<br>
    rc = configGuestProperties(pConsole);<br>
#endif /* VBOX_WITH_GUEST_PROPS defined */<br>
.<br>
.<br>
<br>
<br>
or<br>
<br>
.<br>
.<br>
.<br>
Console::configGuestProperties(void *pvConsole)<br>
.<br>
.<br>
.<br>
<br>
That's how we load the service for handling the guest properties.<br>
<br>
Hope this helps,<br>
-Andreas.<br>
<br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div>
My host is Ubuntu Lucid with VirtualBox OSE and my guest is Windows XP<br>
SP3 with VirtualBox (not ose).<br>
<br>
I want to create a set of programs that will make the VirtualBox<br>
seamless mode work better. To do this, I had to learn how to use the<br>
HGCM. I wrote a small test program for the guest side using C++ and<br>
building it with Visual Studio C++ 2010 Express on Windows. It used<br>
DeviceIoControl to connect and disconnect to the VBoxSharedClipboard<br>
service. It seemed to work, i.e. info.result == VINF_SUCCESS. However,<br>
info.u32ClientID == 0.<br>
<br>
I then decided to write the host service. I compiled a very small<br>
library VBoxBetterSeamless.so that would just notify me if the<br>
VBoxHGCMSvcLoad method was getting called. I verified that the method<br>
was properly exported using readelf. I then put it in<br>
/usr/lib/virtualbox/. VirtualBox OSE doesn't seem to call<br>
VBoxHGCMSvcLoad when the XP VM starts, and I really don't know how to<br>
make the service automatically load every time the VM starts. Google has<br>
not been much help.<br>
<br>
What do I need to do to cause my service to load when the XP VM starts?<br>
<br>
Thanks in advance.<br>
<br>
<br>
<br></div></div>
_______________________________________________<br>
vbox-dev mailing list<br>
<a href="mailto:vbox-dev@virtualbox.org" target="_blank">vbox-dev@virtualbox.org</a><br>
<a href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target="_blank">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a><br>
</blockquote>
<br>
<br>
_______________________________________________<br>
vbox-dev mailing list<br>
<a href="mailto:vbox-dev@virtualbox.org" target="_blank">vbox-dev@virtualbox.org</a><br>
<a href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target="_blank">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a><br>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>