Wednesday, August 20, 2008

VirtualBox fails to run on snv_95 OpenSolaris

Just upgraded to snv_95 (SXCE: Nevada) and Virtualbox failed to start.

# VirtualBox
ERROR: 0 bytes read from child process

Failed to create the VirtualBox COM object.
Callee RC 0x80470007

After a panic, several reboots I found the web link which get me the solution:

http://www.virtualbox.org/ticket/1840

Summary:
========

Start VBoxSVC with environment variable LD_NODIRECT=1:

# cd /opt/VirtualBox
# mv VBoxSVC VBoxSVC.real
# cat > VBoxSVC
#!/bin/sh
LD_NODIRECT=1
export LD_NODIRECT
exec /opt/VirtualBox/VBoxSVC.real "$@"
^D
# chmod +x VBoxSVC

2 comments:

Unknown said...

LifeSaver, thanks!

For anyone else lousy at following instructions and/or beginners: If it fails, open up the VBoxSVC file to see what you just did. The first line includes the "#!" and the file should read exactly:

#!/bin/sh
LD_NODIRECT=1
export LD_NODIRECT
exec /opt/VirtualBox/VBoxSVC.real "$@"

As a final step, one may also have to run from the command line:

chgrp bin VBoxSVC

Andrew Watkins said...

They tell me that this is now fixed in version 1.6.6 from http://www.virtualbox.org

Andrew