Page 1 of 1

VBoxHeadless on Solaris 10 U4

Posted: 20. May 2008, 14:23
by mrhbit
Hi@

I have 2 Solaris 10 machines, one with U4, the other with U5.
On version U5 VBoxHeadless runs perfectly and on U4 I see the following error:
---
...
Listening on port 3389
Error: failed to start machine. Error message: Unable to load R3
module /opt/VirtualBox/VBoxDD.
VBox status code: -102 (VERR_FILE_NOT_FOUND)
...
---

!!! PLEASE USE THIS WITH CAUTION !!!

Well, the output of "ldd ...VBoxDD.so" doesn't show a missing library. So I compared the file size of the used libraries and there are differences in 'libc.so.1,libaio.so.1,libnsl.so.1'.
As far as I know, "nsl" has somthing to do with network/security, so I replaced this version (of course with backup) with the U5 version and it works.

I also rebooted my machine after this replacement and all things runs good.

!!! BUT PLEASE USE THIS WITH CAUTION !!!

best regards
Soeren

Posted: 18. Aug 2008, 04:40
by tjobbins
Thanks for the tip mrhbit

There's a much safer way to do the same thing though - copy libnsl.so.1 from U5 to U4, but put it into /opt/VirtualBox (do not overwrite the default /lib/ version)

Then use something like the following to execute VBoxHeadless:

serv3:~$ LD_LIBRARY_PATH=/opt/VirtualBox:/opt/VirtualBox/qtgcc/lib:/lib:/opt/sfw/lib VBoxHeadless -s XPTest1

VirtualBox Headless Interface 1.6.4
(C) 2008 Sun Microsystems, Inc.
All rights reserved

Listening on port 13389

This way you will only use the foreign libnsl for executing VBoxHeadless and will not risk incompatibilities with the rest of your system.