Your solution seemed to work for me, but it fails during installation of a package (amp) at the end.
(my zone is called "testzone" ) Jul 5 09:12:16 testzone login: ROOT LOGIN /dev/console Last login: Thu Jul 5 08:58:49 on console OpenIndiana (powered by illumos) SunOS 5.11 oi_151a4 April 2012 root@testzone:~# pkg search amp pkg: No image found. root@testzone:~# pkg image-create -f --zone --full -p http://pkg.openindiana.org/dev/ / Refreshing catalog Refreshing catalog 1/1 openindiana.org Caching catalogs ... root@testzone:~# pkg install entire Refreshing catalog Refreshing catalog 1/1 openindiana.org Packages to install: 27 Create boot environment: No DOWNLOAD PKGS FILES XFER (MB) consolidation/gfx/gfx-incorporation 0/27 0/1 0.0/0.0 Completed 27/27 1/1 0.0/0.0 PHASE ACTIONS Install Phase 3852/3852 PHASE ITEMS Package State Update Phase 1/27 Package State Update Phase 27/27 Image State Update Phase 1/2 Image State Update Phase 2/2 PHASE ITEMS Reading Existing Index 8/8 Indexing Packages 27/27 Indexing Packages 27/27 Optimizing Index... PHASE ITEMS Indexing Packages 1/27 Indexing Packages 15/27 Indexing Packages 16/27 Indexing Packages 24/27 Indexing Packages 25/27 Indexing Packages 27/27 Indexing Packages 27/27 root@testzone:~# pkg search amp INDEX ACTION VALUE PACKAGE description set Cluster containing an AMP (Apache, MySQL, PHP) deployment kit pkg:/web/amp@0.5.11-0.151.1.5 pkg.summary set Cluster containing an AMP (Apache, MySQL, PHP) deployment kit pkg:/web/amp@0.5.11-0.151.1.5 incorporate depend amp@0.5.11-0.133 pkg:/consolidation/sfw/sfw-incorporation@0.5.11-0.151.1.5 basename dir usr/lib/python2.6/vendor-packages/elisa/plugins/amp pkg:/desktop/media-player/moovida/moovida-plugins@0.5.11-0.151.1.5 pkg.fmri set openindiana.org/amp pkg:/amp@0.5.11-0.133 pkg.fmri set openindiana.org/web/amp pkg:/web/amp@0.5.11-0.151.1.5 root@testzone:~# pkg install amp Refreshing catalog Refreshing catalog 1/1 openindiana.org .... truncated output.... Install Phase 5244/33892Action install failed for 'lib/libc.so.1' (pkg://openindiana.org/system/library): OSError: [Errno 16] Device busy pkg: An unexpected error happened during install: [Errno 16] Device busy Traceback (most recent call last): File "/usr/bin/pkg", line 4233, in handle_errors __ret = func(*args, **kwargs) File "/usr/bin/pkg", line 4212, in main_func return func(img, pargs) File "/usr/bin/pkg", line 1410, in install ret_code = __api_execute_plan(op, api_inst) File "/usr/bin/pkg", line 1001, in __api_execute_plan api_inst.execute_plan() File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 828, in execute_plan self.__img.imageplan.execute() File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 1226, in execute p.execute_install(src, dest) File "/usr/lib/python2.6/vendor-packages/pkg/client/pkgplan.py", line 336, in execute_install dest.install(self, src) File "/usr/lib/python2.6/vendor-packages/pkg/actions/file.py", line 211, in install portable.rename(temp, final_path) File "/usr/lib/python2.6/vendor-packages/pkg/portable/os_unix.py", line 236, in rename os.rename(src, dst) OSError: [Errno 16] Device busy pkg: This is an internal error. Please let the developers know about this problem by filing a bug at http://defect.opensolaris.org and including the above traceback and this message. The version of pkg(5) is '4d886e93dafc'. I know 'lib/libc.so.1' is shared between the global zone and the zones. -----Original Message----- From: Sašo Kiselkov [mailto:skiselkov...@gmail.com] Sent: woensdag 4 juli 2012 23:38 To: Discussion list for OpenIndiana Subject: Re: [OpenIndiana-discuss] Broken pkg in ipkg zones since update to oi_151a5 On 07/04/2012 11:09 PM, Sašo Kiselkov wrote: > Hi guys, > > I noticed that there's been an update published to openindiana.org > (oi_151a5) - great stuff, but the new version of pkg(1) in it broke > zone creation from oi_151a4 hosts. In short, here's the problem: > > * Global zone: oi_151a4 > * zoneadm -z newzone install <-- this fetches and installs pkg(1) > from openindiana.org for oi_151a5 > * zlogin newzone > * (in-newzone)# pkg publisher > pkg: No image found. > > The IPS database format has probably changed in such a way that the > new > pkg(1) doesn't recognize the old database. I've tested this numerous > times with the following pkg(1) versions and I can consistently > reproduce this: > > (global-zone)# pkg version > 5d2771134f21+ > > (non-global-zone)# pkg version > 4d886e93dafc > > A way to work around this is to re-generate the package database in > the non-global zone as follows: > # pkg image-create -f --zone --full -p http://pkg.openindiana.org/dev/ / > # pkg install entire # to ensure everything's properly installed > > When installing the non-global zone from an oi_151a5 global zone, this > doesn't occur (just tested on a second machine - yep, if global is > oi_151a5, all is good, otherwise, the non-global zone's pkg is broken). > Sure I'm not the only one who's seeing this, right? P.S. minor correction: my proposed fix doesn't actually work, so at present, zones are broken on openindiana oi_151a4 (at least for me). Cheers, -- Saso _______________________________________________ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss _______________________________________________ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss