#10919 closed defect (fixed)
4.2.0 doesn't recognise Solaris 12
Reported by: | James McPherson | Owned by: | |
---|---|---|---|
Component: | installer | Version: | VirtualBox 4.2.0 |
Keywords: | Cc: | ||
Guest type: | other | Host type: | Solaris |
Description (last modified by )
I updated my workstation to Solaris 12 build 4, removed vbox 4.1.18 and installed the 4.2.0 version. The postinstall script has a problem:
## Executing postinstall script. Checking for older bits... Installing new ones... Detected Solaris 5.11 Version 12 Loading VirtualBox kernel modules... - Loaded: Host module - Loaded: NetAdapter module here - Loaded: NetFilter (Crossbow) module * Warning!! Solaris 5.11 build 124 or higher required for USB support. Skipped installing USB support. Configuring services... * Warning!! Importing Zone access service ...FAILED. * Warning!! Refer /var/svc/log/system-manifest-import:default.log for details.
Firstly, this isn't Solaris 5.11 Version 12, it's Solaris 12. Secondly, the usb support check is broken.
For Solaris 11 (FCS) and later (11.1, 11.whatever, 12...), the usb support check should pass, because we are most definitely *past* s11_124. If you detect the kernel version as including "5.12" or "5.11-0.175" then you know that the check has passed.
If you check the kernel version with
STR_KERN=`pkg info kernel |awk '/Branch/ {print $2}'`
then you can use something like this to determine OS minor / micro versions:
if [[ $STR_KERN =~ 5.12 ]]; then # Next Release under development HOST_OS_MAJORVERSION="12" elif [[ $STR_KERN =~ 0.175.[1-9] ]]; then # S11 Update release HOST_OS_MAJORVERSION="11."`echo $STR_KERN|awk -F"." '{print $3}` else # S11 FCS HOST_OS_MAJORVERSION="11" fi if [[ $HOST_OST_MAJORVERSION == "11" ]]; then HOST_OS_MINORVERSION=`uname -r` else HOST_OS_MINORVERSION=`echo $STR_KERN|awk -F"." '{print $6}'` fi
I'll ignore for a moment that the Major Solaris Version is _5_ and not _5.11_.
Then when you do the vboxusb addition, you should firstly check the major then minor OS versions:
if [[ $HOST_OS_MAJORVERSION == "5.12" -o $HOST_OS_MAJORVERSION == "11.[1-9]" \ -o ( $HOST_OS_MAJORVERSION == "11" -a $HOST_OS_MINORVERSION -ge 123 ) ]] ; then ## clear to add the vboxusb driver ... fi
Change History (6)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Description: | modified (diff) |
---|
comment:3 by , 12 years ago
Solaris 12 is the next development version, it's not a released product.
comment:4 by , 12 years ago
priority: | major → minor |
---|
comment:6 by , 10 years ago
I have the production release of Solaris 11.2 uname -a SunOS solaris 5.11 11.2 i86pc i386 i86pc
pkgrm SUNWvbox . . /opRemoval of <SUNWvbox> was successful. root@solaris:/home/jbrewer/Downloads# pkgadd -d ./VirtualBox-4.0.28-SunOS-r97686.pkg
The following packages are available:
1 SUNWvbox Oracle VM VirtualBox
(i386) 4.0.28,REV=2015.01.16.22.18.97686
Select package(s) you wish to process (or 'all' to process all packages). (default: all) ?,??,q: y
ERROR: Entry does not match available menu selection. Enter the number of the menu item you wish to select, or the token which is associated with the menu item, or a partial string which uniquely identifies the token for the menu item. Enter ?? to reprint the menu.
Select package(s) you wish to process (or 'all' to process all packages). (default: all) ?,??,q: all
Processing package instance <SUNWvbox> from </home/jbrewer/Downloads/VirtualBox-4.0.28-SunOS-r97686.pkg>
Oracle VM VirtualBox(i386) 4.0.28,REV=2015.01.16.22.18.97686 Oracle Corporation ## Executing checkinstall script. Checking package dependencies... Done. ## Processing package information. ## Processing system information.
1 package pathname is already properly installed.
## Verifying disk space requirements. ## Checking for conflicts with packages already installed. ## Checking for setuid/setgid programs.
The following files are being installed with setuid and/or setgid permissions:
/opt/VirtualBox/amd64/VBoxBFE <setuid root> /opt/VirtualBox/amd64/VBoxHeadless <setuid root> /opt/VirtualBox/amd64/VBoxNetAdpCtl <setuid root> /opt/VirtualBox/amd64/VBoxNetDHCP <setuid root> /opt/VirtualBox/amd64/VBoxSDL <setuid root> /opt/VirtualBox/amd64/VirtualBox <setuid root> /opt/VirtualBox/i386/VBoxBFE <setuid root> /opt/VirtualBox/i386/VBoxHeadless <setuid root> /opt/VirtualBox/i386/VBoxNetAdpCtl <setuid root> /opt/VirtualBox/i386/VBoxNetDHCP <setuid root> /opt/VirtualBox/i386/VBoxSDL <setuid root> /opt/VirtualBox/i386/VirtualBox <setuid root>
Do you want to install these as setuid/setgid files [y,n,?,q] y
This package contains scripts which will be executed with super-user permission during the process of installing this package.
Do you want to continue with the installation of <SUNWvbox> [y,n,?] y
Installing Oracle VM VirtualBox as <SUNWvbox>
## Installing part 1 of 1. /etc/hostname.vboxnet0 /opt/VirtualBox/64/VBoxPython.so /opt/VirtualBox/64/VBoxPython2_4.so /opt/VirtualBox/64/VBoxPython2_5.so /opt/VirtualBox/64/VBoxPython2_6.so /opt/VirtualBox/LICENSE /opt/VirtualBox/UserManual.pdf /opt/VirtualBox/VBox.sh /opt/VirtualBox/VBoxBFE . . . t/VirtualBox/vboxwebsrv <linked pathname> /opt/VirtualBox/webtest <linked pathname> [ verifying class <manifest> ] ## Executing postinstall script. Checking for older bits... Installing new ones... Detected Solaris 5.11 Version 11.2 Loading VirtualBox kernel modules...
- Loaded: Host module
- Loaded: NetAdapter module
- Loaded: NetFilter module
- Warning!! Solaris 5.11 build 124 or higher required for USB support. Skipped installing USB support.
Configuring services...
- Loaded: Zone access service
Installing MIME types and icons Installing Python bindings...
- Installed: Bindings for Python 2.6
Updating the boot archive...
Installation of <SUNWvbox> was successful.
What Solaris version is that? I'm not aware of Solaris 12.