VBOX 3.1.0 install fails on my Solaris 10 u8

Discussions related to using VirtualBox on Solaris hosts.
Post Reply
michel
Posts: 10
Joined: 1. Dec 2009, 13:55
Primary OS: Solaris
VBox Version: OSE other
Guest OSses: Linux,Windows,opensolaris

VBOX 3.1.0 install fails on my Solaris 10 u8

Post by michel »

Hi,
There seems to be a problem with the postinstall script (see below).
I uninstalled 3.0.12 and installed 3.1.0 on a new solaris 10 u8 with latest RS patches.

#ls -l /usr/bin/svcs
-r-xr-xr-x 1 root bin 87692 Aug 14 2007 /usr/bin/svcs

I am now also unable to remove the package (same error)

Thanks for any help.

Michel

=======

pkgadd -d VirtualBox-3.1.0-SunOS-r55467.pkg

...
## Executing postinstall script.
Checking for older bits...
## set noglob;
setenv COLUMNS '130';
setenv LINES '39';
unset noglob;
/usr/bin/svcs missing or is not an executable
## ERROR!! Failed to remove older/partially installed bits.
pkgadd: ERROR: postinstall script did not complete successfully

Installation of <SUNWvbox> failed.
michel
Posts: 10
Joined: 1. Dec 2009, 13:55
Primary OS: Solaris
VBox Version: OSE other
Guest OSses: Linux,Windows,opensolaris

Re: VBOX 3.1.0 install fails on my Solaris 10 u8

Post by michel »

The problem seems to come from vboxconfig.sh
I've changed the first line to activate some debugging:
#!/bin/sh -xv

I attached the result of pkgrm -v SUNWvbox

Thanks for any help.

Michel
Attachments
vbox3.1.0install_debug.txt
(22.66 KiB) Downloaded 53 times
michel
Posts: 10
Joined: 1. Dec 2009, 13:55
Primary OS: Solaris
VBox Version: OSE other
Guest OSses: Linux,Windows,opensolaris

Re: VBOX 3.1.0 install fails on my Solaris 10 u8

Post by michel »

Getting there:

I commented out lines 133 & 134 in /opt/VirtualBox/vboxconfig.sh:
#check_bin_path "$BIN_SVCS"
#check_bin_path "$BIN_IFCONFIG"

Then I could uninstall with pkgrm SUNWvbox

-I installed again with same expected problem.
-Changed /opt/VirtualBox/vboxconfig.sh again
did: /opt/VirtualBox/vboxconfig.sh --postinstall


Loading VirtualBox kernel modules...
- Loaded: Host module
- Loaded: NetAdapter module
- Loaded: NetFilter module
Configuring services...
- Loaded: Web service
- Loaded: Zone access service
* Warning!! Python not found, skipped installed Python bindings.
Updating the boot archive...

And it's alive and kicking! :P


Still have this #@!& of a problem with python not being found (it's in /usr/bin/python)

Michel
Ramshankar
Oracle Corporation
Posts: 793
Joined: 7. Jan 2008, 16:17

Re: VBOX 3.1.0 install fails on my Solaris 10 u8

Post by Ramshankar »

Could you paste me the output of 'which svcs' from your shell ?
Oracle Corp.
michel
Posts: 10
Joined: 1. Dec 2009, 13:55
Primary OS: Solaris
VBox Version: OSE other
Guest OSses: Linux,Windows,opensolaris

Re: VBOX 3.1.0 install fails on my Solaris 10 u8

Post by michel »

Ramshankar wrote:Could you paste me the output of 'which svcs' from your shell ?
Hi Ramshankar,
Here you go (in sh):

!root:sh
#which svcs
set noglob;
setenv COLUMNS '130';
setenv LINES '39';
unset noglob;
/bin/svcs

and in tcsh:
!root:which svcs
/bin/svcs

Could this problem be linked to the fact that I didn't install a /.profile ?

Michel
Ramshankar
Oracle Corporation
Posts: 793
Joined: 7. Jan 2008, 16:17

Re: VBOX 3.1.0 install fails on my Solaris 10 u8

Post by Ramshankar »

Hmm, And what does ls -l /bin/svcs give?
Oracle Corp.
Ramshankar
Oracle Corporation
Posts: 793
Joined: 7. Jan 2008, 16:17

Re: VBOX 3.1.0 install fails on my Solaris 10 u8

Post by Ramshankar »

The problem seems to be "set noglob" is getting passed to the test function.
Oracle Corp.
michel
Posts: 10
Joined: 1. Dec 2009, 13:55
Primary OS: Solaris
VBox Version: OSE other
Guest OSses: Linux,Windows,opensolaris

Re: VBOX 3.1.0 install fails on my Solaris 10 u8

Post by michel »

Ramshankar wrote:The problem seems to be "set noglob" is getting passed to the test function.
which is a csh internal command.
but in sh, it executes /bin/which , a csh script (see below)
I tried "which" on an old sol10u3 and it also shows these "set noglob, setenv COLUMNS..."
Ramshankar wrote:Hmm, And what does ls -l /bin/svcs give?
ls -l /bin/svcs
-r-xr-xr-x 1 root bin 87692 Aug 14 2007 /bin/svcs


/bin/which:

#! /usr/bin/csh -f
#
# Copyright(c) 1997, by Sun Microsystems, Inc.
# All rights reserved.
#
# ident "@(#)which.csh 1.5 00/07/17 SMI"
#
# which : tells you which program you get
#
# Set prompt so .cshrc will think we're interactive and set aliases.
# Save and restore path to prevent .cshrc from messing it up.
set _which_saved_path_ = ( $path )
set prompt = ""
if ( -r ~/.cshrc && -f ~/.cshrc ) source ~/.cshrc
set path = ( $_which_saved_path_ )
unset prompt _which_saved_path_
set noglob
foreach arg ( $argv )
set alius = `alias $arg`
switch ( $#alius )
case 0 :
breaksw
case 1 :
set arg = $alius[1]
breaksw
default :
echo ${arg}: " " aliased to $alius
continue
endsw
unset found
if ( "$arg:h" != "$arg:t" ) then # head != tail, don't search
if ( -e $arg ) then # just do simple lookup
echo $arg
else
echo $arg not found
endif
continue
else
foreach i ( $path )
if ( -x $i/$arg && ! -d $i/$arg ) then
echo $i/$arg
set found
break
endif
end
endif
if ( ! $?found ) then
echo no $arg in $path
endif
end
michel
Posts: 10
Joined: 1. Dec 2009, 13:55
Primary OS: Solaris
VBox Version: OSE other
Guest OSses: Linux,Windows,opensolaris

Re: VBOX 3.1.0 install fails on my Solaris 10 u8

Post by michel »

Hi all,

Well since my first post, I upgraded to Solaris 10 u9 and hacked my way through VirtualBox3.1 which worked.

I'm trying now to upgrade to VirtualBox4.1.6 and run into the same kind of problems:

pkgrm wen allright but pkgadd fails.

I think it is still linked with the info returned by 'which' command (COLUMNS=130;
LINES=57;
export COLUMNS LINES;
unset noglob;
)

Anybody has a sugestion ? thanks

Michel

pkgadd -G -d VirtualBox-4.1.6-SunOS-r74727.pkg

The following packages are available:
1 SUNWvbox Oracle VM VirtualBox
(i386) 4.1.6,REV=2011.11.05.00.26.74727

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: 1

Processing package instance <SUNWvbox> from </usr/local/src/VirtualBox-4.1.6/VirtualBox-4.1.6-SunOS-r74727.pkg>

Oracle VM VirtualBox(i386) 4.1.6,REV=2011.11.05.00.26.74727
Oracle Corporation
## Executing checkinstall script.
Checking package dependencies...
## Missing or non-executable binaries: pkg (COLUMNS=130;
LINES=57;
export COLUMNS LINES;
no pkg in /sbin /usr/sbin /usr/bin /usr/sadm/install/bin) and pkginfo (COLUMNS=130;
LINES=57;
export COLUMNS LINES;
/usr/bin/pkginfo).
## Cannot check for dependencies.
##
## Please install one of the required packaging system.
pkgadd: ERROR: checkinstall script did not complete successfully

Installation of <SUNWvbox> failed.
No changes were made to the system.
michel
Posts: 10
Joined: 1. Dec 2009, 13:55
Primary OS: Solaris
VBox Version: OSE other
Guest OSses: Linux,Windows,opensolaris

Re: VBOX 3.1.0 install fails on my Solaris 10 u8

Post by michel »

OK, went a bit further: my /.cshrc contained the command 'resize' which had a side effect on '/bin/which' command.

This is solved but still no cigar: the installer seems to need python 2.6 and I've got 2.4.6. Is this right or did I miss something?

Oracle VM VirtualBox(i386) 4.1.6,REV=2011.11.05.00.26.74727
## Executing checkinstall script.
Checking package dependencies...
## Missing packages:
## IPS : runtime/python-26 system/library/iconv/utf-8
## SVr4: SUNWPython SUNWPython-devel SUNWuiu8
##
## Please install either the IPS or SVr4 packages before installing VirtualBox.
michel
Posts: 10
Joined: 1. Dec 2009, 13:55
Primary OS: Solaris
VBox Version: OSE other
Guest OSses: Linux,Windows,opensolaris

[SOLVED] Re: VBOX 3.1.0 install fails on my Solaris 10 u8

Post by michel »

After some playing around, I tried to remove my /.cshrc completely, and the Install went a lot Better.

With the exception of 2 zones where some python package was missing, it installed OK.

Michel
Post Reply