Version 4.1.8 fails to install on Solaris 11 zone

Discussions related to using VirtualBox on Solaris hosts.
gz1
Posts: 2
Joined: 22. Dec 2011, 09:38
Primary OS: Solaris
VBox Version: OSE other
Guest OSses: Solaris, Linux, Windows

Version 4.1.8 fails to install on Solaris 11 zone

Post by gz1 »

Installing Vbox 4.1.8 on Solaris 11 works fine on the Global Zone, however fails to install on local zone with the following dependency check error:

Code: Select all

SVbox [ ~ ]# pkgadd -d VirtualBox-4.1.8-SunOS-r75467.pkg

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

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

Processing package instance <SUNWvbox> from </root/VirtualBox-4.1.8-SunOS-r75467.pkg>

Oracle VM VirtualBox(i386) 4.1.8,REV=2011.12.19.14.10.75467
Oracle Corporation
## Executing checkinstall script.
Checking package dependencies...
## Missing packages:
## IPS :  runtime/python-26 system/library/iconv/utf-8
## SVr4:  SUNWPython SUNWPython-devel
##
## Please install either the IPS or SVr4 packages before installing VirtualBox.
pkgadd: ERROR: checkinstall script did not complete successfully

Installation of <SUNWvbox> failed.
No changes were made to the system.
However the packages are installed:

Code: Select all

SVbox [ ~ ]# pkg info runtime/python-26
          Name: runtime/python-26
       Summary: The Python interpreter, libraries and utilities
      Category: Development/Python
         State: Installed
     Publisher: solaris
       Version: 2.6.4
 Build Release: 5.11
        Branch: 0.175.1.0.0.5.613
Packaging Date: Mon Dec 12 22:11:43 2011
          Size: 27.45 MB
          FMRI: pkg://solaris/runtime/python-26@2.6.4,5.11-0.175.1.0.0.5.613:20111212T221143Z
SVbox [ ~ ]# pkg info system/library/iconv/utf-8
          Name: system/library/iconv/utf-8
       Summary: Iconv modules for UTF-8 Locale
   Description: Core set of iconv code conversion modules providing conversions
                among UTF-8 and other Unicode codesets and selected single-byte
                codesets.
      Category: System/Internationalization
         State: Installed
     Publisher: solaris
       Version: 0.5.11
 Build Release: 5.11
        Branch: 0.175.1.0.0.4.1013
Packaging Date: Wed Nov 30 03:57:57 2011
          Size: 50.57 MB
          FMRI: pkg://solaris/system/library/iconv/utf-8@0.5.11,5.11-0.175.1.0.0.4.1013:20111130T035757Z
SVbox [ ~ ]#
Installing version 4.1.6 and 4.1.4 works fine in the same zone.

Any ideas on how to solve this? or is it a bug?

many thanks
allpoints
Posts: 28
Joined: 27. Dec 2011, 10:26
Primary OS: Solaris
VBox Version: PUEL
Guest OSses: Linuxes, Win8

Re: Version 4.1.8 fails to install on Solaris 11 zone

Post by allpoints »

It works pretty sweet for me in S11.
I have 4 zones with VBox 4.1.8 installed and headless VMs bridged to each individual exclusive IP zone's (automatically created) net0 vnic.
S11 nonglobal zones are exclusive IP by default, and they create their own vnics which VBox sees as a physical nic it can bridge to. You can make as many extra as you need with dladm from within the exclusive IP zone too.
The advantage of this is that the zones are completely migrate-able and there's no need to create or dedicate a vnic or etherstub on the global to bridge.

I extracted the download in the global zone, reinstalled and tested there, and then c/p'd the VBox .pkg and extensions into /tmp/ in each zone from root Nautilus.
Then I did a pkgadd -d /tmp/<VBox .pkg> like you did to install VBox in each nonglobal zone. Then VBoxManage extpack install < extpack 4.1.8>
Then I attached the VBox drivers from $ modinfo | grep vbox on the global to each zone.

zonecfg:vboxzone>add device
zonecfg:vboxzone:device>set match=/dev/vboxdrv
zonecfg:vboxzone:device>(/dev/the others)
...
zonecfg:vboxzone:device>end
zonecfg:vboxzone>verify
zonecfg:vboxzone>exit

...which is probably overkill, but not as bad as adding each device separately... :roll:



Also, before I installed the nonglobal zones, I created pools with compression and dedup, and chmod 700 the entire mountpoints from the start.
My only hiccup was failing to remember about different headless VMs needing different RDP ports... :lol:


You may have done it differently?
gz1
Posts: 2
Joined: 22. Dec 2011, 09:38
Primary OS: Solaris
VBox Version: OSE other
Guest OSses: Solaris, Linux, Windows

Re: Version 4.1.8 fails to install on Solaris 11 zone

Post by gz1 »

Thanks for your reply allpoints,
I have done pretty much the same as you, and I'm pretty sure my setup is right cause 4.1.4 works just fine as you say, it's only 4.1.8 that is refusing to install in a zone with the above errors.
I have even created a whole brand new zone from scratch (not cloned) just in case, and it still fails.
Since it works ok on yours, It's probably my release of solaris though, I'm on the latest dev build, (SunOS gz 5.11 11.1_05 i86pc i386 i86pc)
thanks for the info.
allpoints
Posts: 28
Joined: 27. Dec 2011, 10:26
Primary OS: Solaris
VBox Version: PUEL
Guest OSses: Linuxes, Win8

Re: Version 4.1.8 fails to install on Solaris 11 zone

Post by allpoints »

Yeah, 5.11 11.0 here..
it may well be your release or compiler, as I couldn't get VBox going at all with OI_151 on the same box.

At least the earlier VBox releases work for you...hope you get it solved!

ap
allpoints
Posts: 28
Joined: 27. Dec 2011, 10:26
Primary OS: Solaris
VBox Version: PUEL
Guest OSses: Linuxes, Win8

Re: Version 4.1.8 fails to install on Solaris 11 zone

Post by allpoints »

gz1 wrote:Thanks for your reply allpoints,
I have done pretty much the same as you, and I'm pretty sure my setup is right cause 4.1.4 works just fine as you say, it's only 4.1.8 that is refusing to install in a zone with the above errors.
I have even created a whole brand new zone from scratch (not cloned) just in case, and it still fails.
Since it works ok on yours, It's probably my release of solaris though, I'm on the latest dev build, (SunOS gz 5.11 11.1_05 i86pc i386 i86pc)
thanks for the info.

Did you ever get this solved? Because now I have it.... :evil:

New Zone from scratch. Boot & zlogin, then try to pkgadd -d VirtualBox-4.1.8-SunOS-r75467.pkg...

Code: Select all

# pkgadd -d VirtualBox-4.1.8-SunOS-r75467.pkg

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

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

Processing package instance <SUNWvbox> from </root/VirtualBox-4.1.8-SunOS-r75467.pkg>

Oracle VM VirtualBox(i386) 4.1.8,REV=2011.12.19.14.10.75467
Oracle Corporation
## Executing checkinstall script.
Checking package dependencies...
## Missing packages: 
## IPS :  runtime/python-26 system/library/iconv/utf-8
## SVr4:  SUNWPython SUNWPython-devel
## 
## Please install either the IPS or SVr4 packages before installing VirtualBox.
pkgadd: ERROR: checkinstall script did not complete successfully

Installation of <SUNWvbox> failed.
No changes were made to the system.
I've destroyed/reinstalled the zone twice - same result when I try to install VBox.

Anyone?
allpoints
Posts: 28
Joined: 27. Dec 2011, 10:26
Primary OS: Solaris
VBox Version: PUEL
Guest OSses: Linuxes, Win8

Re: Version 4.1.8 fails to install on Solaris 11 zone

Post by allpoints »

More info:

The same VBox 4.1.8 pkg installed properly 5 times in the global + 4 different zones. Now it throws a false dependency error. :?:

Code: Select all

 root@vbzone5:~# python
Python 2.6.4 (r264:75706, Oct 17 2011, 16:55:05) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> 
-------



However:

Code: Select all

root@vbzone5:~# pkgadd -d /tmp/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 </tmp/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...
Done.
## Processing package information...

...Installation of <SUNWvbox> was successful.

root@vbzone5:~# VBoxManage extpack install /tmp/Oracle_VM_VirtualBox_Extension_Pack-4.1.6-74713.vbox-extpack
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully installed "Oracle VM VirtualBox Extension Pack".

...

Maybe a prob with VBox 4.1.8 checkinstall script?

:?:

I usually like checks. Wheat Chex. Rice Chex. Certified checks. Brunette Czechs...
allpoints
Posts: 28
Joined: 27. Dec 2011, 10:26
Primary OS: Solaris
VBox Version: PUEL
Guest OSses: Linuxes, Win8

Re: Version 4.1.8 fails to install on Solaris 11 zone

Post by allpoints »

Update:

As indicated above, was as able to install VB 4.1.6 and create a VM, but couldn't boot it due to a kern module error, as I didn't add the vboxdrv device with zoneadm from the global (VBox 4.1.8 is installed on the global, and I didn't want to introduce more potential problem layers).

Uninstalled VB 4.1.6 and extpack, and was then able to install VB 4.1.8 + extpack into the zone normally. Now all is well in my little virtual world.







I'm not a VX software engineer, but there seems a slight hiccup with the VB 4.1.8 checkinstall script as it relates to S11 zones.

I wish I had the time and skillset to develop an elegant solution instead of the kludgy way I had to hammer it in.... :roll:

A fine piece of machinery like VBox deserves better!
Ramshankar
Oracle Corporation
Posts: 793
Joined: 7. Jan 2008, 16:17

Re: Version 4.1.8 fails to install on Solaris 11 zone

Post by Ramshankar »

It must be the way we check for package dependencies in the check install phase.

I'll take a look a this. Thanks for the report. Also, what's the exact version of Solaris 11 being used here? (uname -a output please)
Oracle Corp.
allpoints
Posts: 28
Joined: 27. Dec 2011, 10:26
Primary OS: Solaris
VBox Version: PUEL
Guest OSses: Linuxes, Win8

Re: Version 4.1.8 fails to install on Solaris 11 zone

Post by allpoints »

Ramshankar wrote:It must be the way we check for package dependencies in the check install phase.

I'll take a look a this. Thanks for the report. Also, what's the exact version of Solaris 11 being used here? (uname -a output please)
Thanks for the interest and response R.
Here ya go:

Code: Select all

root@hostname:~# uname -a
SunOS hostname 5.11 11.0 i86pc i386 i86pc

Again, thanks. And let me know if you need anything more.

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

Re: Version 4.1.8 fails to install on Solaris 11 zone

Post by Ramshankar »

I think I've found and fixed the issue,I'll backport it shortly, should be available in next version. Thanks for the report.
Oracle Corp.
allpoints
Posts: 28
Joined: 27. Dec 2011, 10:26
Primary OS: Solaris
VBox Version: PUEL
Guest OSses: Linuxes, Win8

Re: Version 4.1.8 fails to install on Solaris 11 zone

Post by allpoints »

8)

Thanks for sharing the stoke!
nweissma
Posts: 5
Joined: 19. Feb 2012, 20:14
Primary OS: Solaris
VBox Version: PUEL
Guest OSses: Win7, FreeBSD,

Re: Version 4.1.8 fails to install on Solaris 11 zone

Post by nweissma »

i seem to be having the same problem:
nweissma@new-host:~$ su - root
Password:
Oracle Corporation SunOS 5.11 11.0 November 2011
root@new-host:~# pkgadd -d VirtualBox-4.1.8-SunOS-R75467.pkg
pkgadd: ERROR: attempt to process datastream failed
- open of <VirtualBox-4.1.8-SunOS-R75467.pkg> failed, errno=2
pkgadd: ERROR: could not process datastream from <VirtualBox-4.1.8-SunOS-R75467.pkg>
root@new-host:~# gu
-bash: gu: command not found
root@new-host:~#
root@new-host:~# gunzip -cd VirtualBox-4.1.8-SunOS.tar.gz | tar xvf-
tar: tarfile must be specified with 'f' function modifier
Usage: tar {c|r|t|u|x}[BDeEFhilmnopPTvw@/[0-7]][bf][X...] [j|z|Z] [blocksize] [tarfile] [size] [exclude-file...] {file | -I include-file | -C directory file}...
gunzip: VirtualBox-4.1.8-SunOS.tar.gz: No such file or directory
root@new-host:~# gunzip -cd VirtualBox-4.1.8-SunOS.tar.gz | tar xvf -
gunzip: VirtualBox-4.1.8-SunOS.tar.gz: No such file or directory
tar: tape blocksize error
root@new-host:~# gunzip -cd VirtualBox-4.1.8-SunOS.tar.gz | tar xvf -
gunzip: VirtualBox-4.1.8-SunOS.tar.gz: No such file or directory
tar: tape blocksize error
root@new-host:~#
root@new-host:~# pkgadd -d VirtualBox-4.1.8-SunOS-R75467.pkg
pkgadd: ERROR: attempt to process datastream failed
- open of <VirtualBox-4.1.8-SunOS-R75467.pkg> failed, errno=2
pkgadd: ERROR: could not process datastream from <VirtualBox-4.1.8-SunOS-R75467.pkg>
root@new-host:~# zonename
global
root@new-host:~# uname -a
SunOS new-host 5.11 11.0 i86pc i386 i86pc
i am a noob -- i am not as sophisticated as the previous posters -- but i have tried everything reasonable, in accordance with the online user's manual, and was stopped immediately every time.
VB-Install_WhatNow_3.png
VB-Install_WhatNow_3.png (41.01 KiB) Viewed 11518 times
VB-Install_NowWhat.png
VB-Install_NowWhat.png (103.17 KiB) Viewed 11518 times
-- i tried to 'open as administrator, after "su - root", and was still denied.
Ramshankar
Oracle Corporation
Posts: 793
Joined: 7. Jan 2008, 16:17

Re: Version 4.1.8 fails to install on Solaris 11 zone

Post by Ramshankar »

Try using "./" in front of your .tar.gz file name.

example:

Code: Select all

cd Downloads
gunzip -cd ./VirtualBox-4.1.8-SunOS.tar.gz | tar xvf -
pkgadd -d ./VirtualBox-4.1.8-SunOS.pkg
Also there should be a space between "xvf" and "-".

P.S. This has nothing to do with Zones and thus I would have preferred if you had created a new thread than hijack an existing one, but anyway the above should fix your syntax error issues. So don't need to create a new one now.
Oracle Corp.
sonic
Posts: 5
Joined: 29. Mar 2012, 11:42

Re: Version 4.1.8 fails to install on Solaris 11 zone

Post by sonic »

i have save problem with Version 4.1.10-76795。

Code: Select all

root@twb:~/DOM_For_OpenIndiana151# pkgadd -R "/root/DOM_For_OpenIndiana151/buildroot/" -d "/root/DOM_For_OpenIndiana151/VirtualBox/VirtualBox.pkg" -n -a ./VirtualBox/autoresponse  SUNWvbox
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.
pkgadd: ERROR: checkinstall script did not complete successfully

Installation of <SUNWvbox> failed.
and where

Code: Select all

root@twb:~/DOM_For_OpenIndiana151# pkg -R "/root/DOM_For_OpenIndiana151/buildroot/" list runtime/python-26 system/library/iconv/utf-8
NAME (PUBLISHER)                              VERSION         STATE      UFOXI
runtime/python-26                             2.6.4-0.151.1   installed  -----
system/library/iconv/utf-8                    0.5.11-0.151.1  installed  -----
Ramshankar
Oracle Corporation
Posts: 793
Joined: 7. Jan 2008, 16:17

Re: Version 4.1.8 fails to install on Solaris 11 zone

Post by Ramshankar »

Hmm, I thought I already checked for this. Could you try specifying -R without the quotes?
Oracle Corp.
Post Reply