VBoxHeadless 2.14 dosn't start

Discussions related to using VirtualBox on Solaris hosts.
Post Reply
ula
Posts: 3
Joined: 11. Mar 2009, 15:55

VBoxHeadless 2.14 dosn't start

Post by ula »

Hi,
I try to setup a Headless VirtualBox on solaris 10 64 bit. Interaktiv VirtualBOx works fine, but VBoxHeadless is crashing.
Has onebody an idea, who I can fix it?

Thanks
Ulf

---

ENV:
root@bla # cat /etc/release |head -1
Solaris 10 8/07 s10x_u4wos_12b X86
root@bla # isainfo -k
amd64
root@bla # pkgadd -G -d VirtualBoxKern-2.1.4-SunOS-r42893.pkg
root@bla # pkgadd -G -d VirtualBox-2.1.4-SunOS-r42893.pkg
root@bla # VirtualBox --help | head -1
Sun xVM VirtualBox Graphical User Interface 2.1.4
(rem: tested also with v. 2.1.0, same error)

VirtualBox:
root@bla # VirtualBox --startvm oc40
- virt. Machine starts
- General
Name oc40
OS Type openSUSE
Base Memory 1024 MB
Video Memory 64 MB
Boot Order Hard Disk, CD/DVD-ROM
ACPI Enabled
IO APIC Disabled
VT-x/AMD-V Disabled
PAE/NX Enabled
3D Acceleration Disabled
- Network :
<Adapter slot="0" enabled="true" MACAddress="0800275202B5" cable="true" speed="0" type="Am79C973">
<HostInterface name="e1000g2 - Intel PRO/1000 Gigabit Ethernet"/>
- Disabled: RemoteDisplay, USBController, SATAController, UART, LPT, AudioAdapters, SharedFolders, Clipboard

VBoxHeadless Error:
root@bla # VBoxHeadless -s oc40 -vrdp=off
Error: failed to start machine. Error message: Unable to load R3 module /opt/VirtualBox/VBoxDD.so (VBoxDD) (VERR_FILE_NOT_FOUND).
Unknown error creating VM (VERR_FILE_NOT_FOUND)

root@bla # ldd -r /opt/VirtualBox/amd64/VBoxDD.so
VBoxVMM.so => ./VBoxVMM.so
VBoxRT.so => ./VBoxRT.so
VBoxDDU.so => ./VBoxDDU.so
VBoxDD2.so => ./VBoxDD2.so
libadm.so.1 => /lib/64/libadm.so.1
librt.so.1 => /lib/64/librt.so.1
libsocket.so.1 => /lib/64/libsocket.so.1
libstdc++.so.6 => /usr/sfw/lib/64/libstdc++.so.6
libm.so.2 => /lib/64/libm.so.2
libgcc_s.so.1 => /usr/sfw/lib/64/libgcc_s.so.1
VBoxREM.so => ./VBoxREM.so
libkstat.so.1 => /lib/64/libkstat.so.1
libc.so.1 => /lib/64/libc.so.1
libaio.so.1 => /lib/64/libaio.so.1
libmd.so.1 => /lib/64/libmd.so.1
libnsl.so.1 => /lib/64/libnsl.so.1
libmp.so.2 => /lib/64/libmp.so.2
libscf.so.1 => /lib/64/libscf.so.1
libdoor.so.1 => /lib/64/libdoor.so.1
libuutil.so.1 => /lib/64/libuutil.so.1
libgen.so.1 => /lib/64/libgen.so.1
symbol not found: inet_aton (/opt/VirtualBox/amd64/VBoxDD.so)

LogFile:
00:00:01.050 rtldrNativeLoad: dlopen('/opt/VirtualBox/VBoxDD.so', RTLD_NOW | RTLD_LOCAL) failed: ld.so.1: VBoxHeadless: fatal: relocation error: file /opt/VirtualBox/VBoxDD.so: symbol inet_aton: referenced symbol not found
00:00:01.053 ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={e3c6d4a1-a935-47ca-b16d-f9e9c496e53e} aComponent={Console} aText={Unable to load R3 module /opt/VirtualBox/VBoxDD.so (VBoxDD) (VERR_FILE_NOT_FOUND).
00:00:01.053 Unknown error creating VM (VERR_FILE_NOT_FOUND)} aWarning=false, preserve=false
00:00:01.090 Power up failed (vrc=VERR_FILE_NOT_FOUND, rc=NS_ERROR_FAILURE (0X80004005))
aribi
Posts: 36
Joined: 12. Apr 2008, 00:36

Re: VBoxHeadless 2.14 dosn't start

Post by aribi »

Hi Ulf,

In some previous version of VirtualBox I had the same problem. It seems to me that VBoxHeadless uses a nonstandard way of locating libs. Specifically, it looks like it circumvents any settings in the LD_LIBRARY_PATH envvar.
For further investigation you might want to check your runtime linking environment with crle:

Code: Select all

# crle -64
Configuration file [version 4]: /var/ld/64/ld.config  
  Default Library Path (ELF):   /lib/64:/usr/lib/64:/usr/sfw/lib/64
  Trusted Directories (ELF):    /lib/secure/64:/usr/lib/secure/64  (system default)
will show you the basic minimum that is always seen, independent of any other loader hints, either through LD_LIBRARY_PATH or through lib locations embedded in the executable.
I'm not really sure, but I think inet_ntoa comes from libnsl. All in all, /lib/64 should definetly be in the default config as shown by crle.

Success, Arie Bikker
ula
Posts: 3
Joined: 11. Mar 2009, 15:55

Re: VBoxHeadless 2.14 dosn't start

Post by ula »

Hi Ari,

thanks for your response.
I've checked my lib env with, but it shows ok, I think :

Code: Select all

root@bla: /root # crle -64
Configuration file [version 4]: /var/ld/64/ld.config
  Default Library Path (ELF):   /lib/64:/usr/lib/64:/usr/sfw/lib/64
  Trusted Directories (ELF):    /lib/secure/64:/usr/lib/secure/64  (system default)
I found an entry (http://forums.virtualbox.org/viewtopic. ... .so#p23646) from mrhbit about version 1.6.4:

"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."


An other article sounds similar: http://forums.virtualbox.org/viewtopic. ... .so#p23253

Maybe, thats a solution for me, but I can't update my system to u5 and I don't have a u5 libnsl for testing.
Is there a other way to test it?

Thanks
ulf
aribi
Posts: 36
Joined: 12. Apr 2008, 00:36

Re: VBoxHeadless 2.14 dosn't start

Post by aribi »

Hi Ulf,

How about patch 138851-02. The Readme says

Title: SunOS 5.10_x86: libnsl.so.1 patch
Files Included in this Patch:
/lib/amd64/libnsl.so.1
/lib/libnsl.so.1

You'll have a problem installing only this patch as it has 3 required patches (which each have several ... which each... which: you get the picture).
But I would not advise to start swapping libs and thinking you're OK if your system does not fall apart immediately; that is sooo L!nux :P
My advice would be: do yourself a favour and install the recommend patches. I myself run pca - Patch Checker Advanced. It will take quite some time if your system is unpatched (>10 hours+ several reboots it took me the first time) but it really is worth the effort.

kind regards, Arie Bikker

BTW. nsl stands for NameServiceLibrary
ula
Posts: 3
Joined: 11. Mar 2009, 15:55

Re: VBoxHeadless 2.14 dosn't start

Post by ula »

Hi Ari,

i tried to add patch 138851-02. But, we are running some zones, so patchadd say: unable to install with running zones :).
I'm not to be able to stop this zones, because they are productive :(
So I tried this:

Code: Select all

unzip 138851-02.zip
cd 138851-02/SUNWcslr/reloc/lib/amd64
mkdir /opt/VirtualBox/lib
cp libnsl.so.1  /opt/VirtualBox/lib
cd  /opt/VirtualBox/lib
export LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH"
VBoxHeadless -s oc40 -vrdp=off
result: WORKS FINE !!!

So I wrote a shell script, which sets the LD_LIBRARY_PATH and starts VBoxHeadless in bg.

Thanks a lot for your help!

kind regards
ulf

PS: How I can set the article title to resolved?
lolomin
Posts: 2
Joined: 16. May 2012, 13:25

Re: VBoxHeadless 2.14 dosn't start

Post by lolomin »

Hi ula,

i know that this topic is pretty old but it worth the try ... :)

I'm in the same exact situation as yours with the installation of VirtualBox-4.1.14-SunOS-r77440.pkg on a "Solaris 10 8/07 s10x_u4wos_12b X86" server.

If I try to run VBoxHeadless, I get :

-bash-3.00$ /opt/VirtualBox/VBoxHeadless -s cb3234c1-6004-479f-9ee2-368ccdf42429 --vrde config
Oracle VM VirtualBox Headless Interface 4.1.12
(C) 2008-2012 Oracle Corporation
All rights reserved.

Error: failed to start machine. Error message: Unable to load R3 module /opt/VirtualBox/amd64/VBoxDD.so (VBoxDD): ld.so.1: VBoxHeadless: fatal: relocation error: file /opt/VirtualBox/amd64/VBoxDD.so: symbol inet_aton: referenced symbol not found (VERR_FILE_NOT_FOUND)

as my installation is u4 and I do not have anymore any contract with Oracle, I do not have access to the Oracle's Solaris 10 patchset.
I have others Solaris 10 servers with patch u6 or u7 but no u5, so I tried to use the libnsl.so.1 library as you said from u6 or u7 servers but no way, get the same error everytime.

Do you have the possibility to send me (if you still have it) the libnsl.so.1 library of u5 Sol 10 x86 please so I can have a test with this one and hopefully run some VM with this VirtualBox server ?

Thanks,
Regards.

Laurent
Post Reply