Page 2 of 2

Re: Version 4.1.8 fails to install on Solaris 11 zone

Posted: 30. Mar 2012, 03:12
by sonic
Ramshankar wrote:Hmm, I thought I already checked for this. Could you try specifying -R without the quotes?
i have tried -R without the quotes ,it doesn't work;
and i try “pkgadd -R / ” and pkgadd without -R ,it success.
but i really need install with "-R mypath " . thanks for your help

Re: Version 4.1.8 fails to install on Solaris 11 zone

Posted: 30. Mar 2012, 03:19
by sonic
i have read the checkinstall script , and checked by myself ,i think there is no reason i can't pass the dependencies check.
it is important to me. please help me

Re: Version 4.1.8 fails to install on Solaris 11 zone

Posted: 30. Mar 2012, 04:53
by sonic
i use pkgtrans extract the pkg.
and i modify the checkinstall to debug.
i found this

Code: Select all

checkdep_ips()
{
if test -z "$1"; then
        errorprint "Missing argument to checkdep_svr4"
        return 1
    fi
    # using "list" without "-a" only lists installed pkgs which is what we need
echo "*******"  $BIN_PKG $BASEDIR_OPT list "$1"
    $BIN_PKG $BASEDIR_OPT list "$1" 
   
    if test $? -eq 0; then
echo "****** 0"
        return 0
    fi
echo "****** 1"
    PKG_MISSING_IPS="$PKG_MISSING_IPS $1"
    return 1

}

Code: Select all

## Executing checkinstall script.
Checking package dependencies...
******* /usr/bin/pkg -R "/root/DOM_For_OpenIndiana151/buildroot" list runtime/python-26
pkg: No image rooted at '"/root/DOM_For_OpenIndiana151/buildroot"'
****** 1
******* /usr/bin/pkg -R "/root/DOM_For_OpenIndiana151/buildroot" list system/library/iconv/utf-8
pkg: No image rooted at '"/root/DOM_For_OpenIndiana151/buildroot"'
****** 1
but when i do it myself

Code: Select all

root@twb:~/DOM_For_OpenIndiana151# /usr/bin/pkg -R "/root/DOM_For_OpenIndiana151/buildroot" list system/library/iconv/utf-8        
NAME (PUBLISHER)                              VERSION         STATE      UFOXI
system/library/iconv/utf-8                    0.5.11-0.151.1  installed  -----

Re: Version 4.1.8 fails to install on Solaris 11 zone

Posted: 30. Mar 2012, 05:42
by sonic
i found it.i change

Code: Select all

ASEDIR_OPT="-R \"$PKG_INSTALL_ROOT\""
to

Code: Select all

 BASEDIR_OPT=-R "$PKG_INSTALL_ROOT"
it works. :D

because

Code: Select all

root@twb:~/DOM_For_OpenIndiana151# /usr/bin/pkg -R \"/root/DOM_For_OpenIndiana151/buildroot\" list runtime/python-26
pkg: No image rooted at '"/root/DOM_For_OpenIndiana151/buildroot"'


Re: Version 4.1.8 fails to install on Solaris 11 zone

Posted: 30. Mar 2012, 15:02
by Ramshankar
I knew this was the problem, that's why I asked you to try without the quotes :) Anyway I'll fix it tomorrow. Thanks for the report.

Re: Version 4.1.8 fails to install on Solaris 11 zone

Posted: 4. Apr 2012, 11:56
by Ramshankar
sonic wrote:i found it.i change

Code: Select all

ASEDIR_OPT="-R \"$PKG_INSTALL_ROOT\""
to

Code: Select all

 BASEDIR_OPT=-R "$PKG_INSTALL_ROOT"
it works. :D
The correct fix should be:

Code: Select all

 BASEDIR_OPT="-R $PKG_INSTALL_ROOT"

Re: Version 4.1.8 fails to install on Solaris 11 zone

Posted: 3. Jul 2012, 19:12
by Carlos Azevedo
Hello,

I have successfully got VirtualBox 4.1.8 running from a Solaris 11 zone from a Solaris 11 server (no desktop/GUI).

At first, I just installed it on the global zone and simply mapped /opt/VirtualBox to the non-global-zones and added to PATH:

GZ# zonecfg -z NGZ "add fs; set dir=/opt/VirtualBox; set special=/opt/VirtualBox; set type=lofs; end"
GZ# zonecfg -z NGZ "add device; set match=/dev/vboxdrv; end"
GZ# zonecfg -z NGZ "add device; set match=/dev/vboxusbmon; end"

NGZ$ export PATH=$PATH:/opt/VirtualBox

It appears to run without problems, but once in a while I've experienced network connectivity problems: the connection was simply lost and I had to restart network/physical:default from withing the zone.
I'm still not sure if this is related to the NGZ "installation" method I've used of if it's due to some other problem in my GZ networking (802.3ad).

I have noticed that repeating the GZ installation procedure inside the NGZ is harmless, so it might be the safest or "best-practice".

Regards,
:D

Note: Of course, as no desktop/GUI is available everything has to be in terms of VBoxManage and VBoxHeadless.

Note: Here's the information I have gathered: Regards,
Carlos.