Re: [zones-discuss] [osol-discuss] solaris 8 container installation failed
[ changing the cc to zones-discuss which is a more appropriate alias for this kind of question. ] hey asif, i'm guessing that cpio is not your problem. the key error below is: uncompress: stdin: corrupt input perhaps the s8_install script is somehow not detecting the compression type correctly? could you run the following command: grep files_compressed_method /engr.flar thanks ed On Fri, Aug 08, 2008 at 12:24:25AM -0400, Asif Iqbal wrote: I am failing to install flash archive of a solaris 8 02/04 running on a netra t1. I can install the example solaris8-image.flar (optional download from sun). Here is the failed log bash-3.00# more /var/tmp/engr-01.install.7078.log [Thu Aug 7 23:59:44 EDT 2008] Log File: /var/tmp/engr-01.install.7078.log [Thu Aug 7 23:59:44 EDT 2008]Product: Solaris 8 Containers 1.0 [Thu Aug 7 23:59:44 EDT 2008] Installer: solaris8 brand installer 1.22 [Thu Aug 7 23:59:44 EDT 2008] Zone: engr-01 [Thu Aug 7 23:59:44 EDT 2008] Path: /zones/solaris8 [Thu Aug 7 23:59:44 EDT 2008] Starting pre-installation tasks. [Thu Aug 7 23:59:44 EDT 2008] Installation started for zone engr-01 [Thu Aug 7 23:59:44 EDT 2008] Source: /engr.flar [Thu Aug 7 23:59:44 EDT 2008] Media Type: flash archive [Thu Aug 7 23:59:44 EDT 2008] Installing: This may take several minutes... [Thu Aug 7 23:59:44 EDT 2008] cd /zones/solaris8/root [Thu Aug 7 23:59:44 EDT 2008] do_flar /engr.flar uncompress: stdin: corrupt input [Fri Aug 8 00:01:31 EDT 2008] Postprocessing: This may take several minutes... [Fri Aug 8 00:01:31 EDT 2008] running: p2v -u eug-engr-01 [Fri Aug 8 00:01:31 EDT 2008]Postprocess: Gathering information about zone engr-01 [Fri Aug 8 00:01:31 EDT 2008]Postprocess: Creating mount points touch: /zones/solaris8/root/etc/mnttab cannot create chmod: WARNING: can't access /zones/solaris8/root/etc/mnttab [Fri Aug 8 00:01:31 EDT 2008]Postprocess: Processing /etc/system cp: cannot access /zones/solaris8/root/etc/system [Fri Aug 8 00:01:32 EDT 2008] Result: Postprocessing failed. [Fri Aug 8 00:01:32 EDT 2008] [Fri Aug 8 00:01:32 EDT 2008] Result: *** Installation FAILED *** [Fri Aug 8 00:01:32 EDT 2008] Log File: /var/tmp/engr-01.install.7078.log Here is the good log where installing from the example solaris 8 image from SUN site that comes as optional download with solaris 8 container software bash-3.00# more /var/tmp/engr-01.install.5279.log [Thu Aug 7 23:31:12 EDT 2008] Log File: /var/tmp/engr-01.install.5279.log [Thu Aug 7 23:31:12 EDT 2008]Product: Solaris 8 Containers 1.0 [Thu Aug 7 23:31:12 EDT 2008] Installer: solaris8 brand installer 1.22 [Thu Aug 7 23:31:12 EDT 2008] Zone: engr-01 [Thu Aug 7 23:31:12 EDT 2008] Path: /zones/solaris8 [Thu Aug 7 23:31:12 EDT 2008] Starting pre-installation tasks. [Thu Aug 7 23:31:12 EDT 2008] Installation started for zone engr-01 [Thu Aug 7 23:31:12 EDT 2008] Source: /tmp/solaris8-image.flar [Thu Aug 7 23:31:12 EDT 2008] Media Type: flash archive [Thu Aug 7 23:31:13 EDT 2008] Installing: This may take several minutes... [Thu Aug 7 23:31:13 EDT 2008] cd /zones/solaris8/root [Thu Aug 7 23:31:13 EDT 2008] do_flar /tmp/solaris8-image.flar [Thu Aug 7 23:35:28 EDT 2008] Sanity Check: Passed. Looks like a Solaris 8 system. [Thu Aug 7 23:35:28 EDT 2008] Postprocessing: This may take several minutes... [Thu Aug 7 23:35:28 EDT 2008] running: p2v -u eug-engr-01 [Thu Aug 7 23:35:28 EDT 2008]Postprocess: Gathering information about zone eug-engr-01 [Thu Aug 7 23:35:29 EDT 2008]Postprocess: Creating mount points [Thu Aug 7 23:35:30 EDT 2008]Postprocess: Processing /etc/system [Thu Aug 7 23:35:30 EDT 2008]Postprocess: Booting zone to single user mode [Thu Aug 7 23:35:48 EDT 2008]Postprocess: Applying p2v module S20_apply_patches [Thu Aug 7 20:35:49 PDT 2008] S20_apply_patches: Unpacking patch: 109147-44 [Thu Aug 7 20:35:50 PDT 2008] S20_apply_patches: Installing patch: 109147-44 Checking installed patches... Patch 109147-44 has already been applied. See patchadd(1M) for instructions. Patchadd is terminating. [Thu Aug 7 20:36:01 PDT 2008] S20_apply_patches: Unpacking patch: 111023-03 [Thu Aug 7 20:36:02 PDT 2008] S20_apply_patches: Installing patch: 111023-03 Checking installed patches... Patch 111023-03 has already been applied. See patchadd(1M) for instructions. Patchadd is terminating. [Thu Aug 7 20:36:08 PDT 2008] S20_apply_patches: Unpacking patch: 111431-01 [Thu Aug 7 20:36:08 PDT 2008] S20_apply_patches: Installing patch: 111431-01 Checking installed patches... This patch is obsoleted by patch 108993-67 which has already been applied to this system. Patchadd is terminating. [Thu Aug
Re: [zones-discuss] [osol-discuss] solaris 8 container installation failed
On Fri, Aug 8, 2008 at 2:13 PM, Edward Pilatowicz [EMAIL PROTECTED] wrote: [ changing the cc to zones-discuss which is a more appropriate alias for this kind of question. ] hey asif, i'm guessing that cpio is not your problem. the key error below is: uncompress: stdin: corrupt input perhaps the s8_install script is somehow not detecting the compression type correctly? could you run the following command: grep files_compressed_method /engr.flar bash-3.00# grep files_compressed_method /engr.flar files_compressed_method=compress bash-3.00# flar info /engr.flar archive_id=d37bfbb8e8f8940362746dfc5af2fbed files_archived_method=cpio creation_date=20080807215755 creation_master=engr-01 content_name=engr creation_node=engr-01 creation_hardware_class=sun4u creation_platform=SUNW,UltraSPARC-IIi-cEngine creation_processor=sparc creation_release=5.8 creation_os_name=SunOS creation_os_version=Generic_117350-39 files_compressed_method=compress content_architectures=sun4u thanks ed On Fri, Aug 08, 2008 at 12:24:25AM -0400, Asif Iqbal wrote: I am failing to install flash archive of a solaris 8 02/04 running on a netra t1. I can install the example solaris8-image.flar (optional download from sun). Here is the failed log bash-3.00# more /var/tmp/engr-01.install.7078.log [Thu Aug 7 23:59:44 EDT 2008] Log File: /var/tmp/engr-01.install.7078.log [Thu Aug 7 23:59:44 EDT 2008]Product: Solaris 8 Containers 1.0 [Thu Aug 7 23:59:44 EDT 2008] Installer: solaris8 brand installer 1.22 [Thu Aug 7 23:59:44 EDT 2008] Zone: engr-01 [Thu Aug 7 23:59:44 EDT 2008] Path: /zones/solaris8 [Thu Aug 7 23:59:44 EDT 2008] Starting pre-installation tasks. [Thu Aug 7 23:59:44 EDT 2008] Installation started for zone engr-01 [Thu Aug 7 23:59:44 EDT 2008] Source: /engr.flar [Thu Aug 7 23:59:44 EDT 2008] Media Type: flash archive [Thu Aug 7 23:59:44 EDT 2008] Installing: This may take several minutes... [Thu Aug 7 23:59:44 EDT 2008] cd /zones/solaris8/root [Thu Aug 7 23:59:44 EDT 2008] do_flar /engr.flar uncompress: stdin: corrupt input [Fri Aug 8 00:01:31 EDT 2008] Postprocessing: This may take several minutes... [Fri Aug 8 00:01:31 EDT 2008] running: p2v -u eug-engr-01 [Fri Aug 8 00:01:31 EDT 2008]Postprocess: Gathering information about zone engr-01 [Fri Aug 8 00:01:31 EDT 2008]Postprocess: Creating mount points touch: /zones/solaris8/root/etc/mnttab cannot create chmod: WARNING: can't access /zones/solaris8/root/etc/mnttab [Fri Aug 8 00:01:31 EDT 2008]Postprocess: Processing /etc/system cp: cannot access /zones/solaris8/root/etc/system [Fri Aug 8 00:01:32 EDT 2008] Result: Postprocessing failed. [Fri Aug 8 00:01:32 EDT 2008] [Fri Aug 8 00:01:32 EDT 2008] Result: *** Installation FAILED *** [Fri Aug 8 00:01:32 EDT 2008] Log File: /var/tmp/engr-01.install.7078.log Here is the good log where installing from the example solaris 8 image from SUN site that comes as optional download with solaris 8 container software bash-3.00# more /var/tmp/engr-01.install.5279.log [Thu Aug 7 23:31:12 EDT 2008] Log File: /var/tmp/engr-01.install.5279.log [Thu Aug 7 23:31:12 EDT 2008]Product: Solaris 8 Containers 1.0 [Thu Aug 7 23:31:12 EDT 2008] Installer: solaris8 brand installer 1.22 [Thu Aug 7 23:31:12 EDT 2008] Zone: engr-01 [Thu Aug 7 23:31:12 EDT 2008] Path: /zones/solaris8 [Thu Aug 7 23:31:12 EDT 2008] Starting pre-installation tasks. [Thu Aug 7 23:31:12 EDT 2008] Installation started for zone engr-01 [Thu Aug 7 23:31:12 EDT 2008] Source: /tmp/solaris8-image.flar [Thu Aug 7 23:31:12 EDT 2008] Media Type: flash archive [Thu Aug 7 23:31:13 EDT 2008] Installing: This may take several minutes... [Thu Aug 7 23:31:13 EDT 2008] cd /zones/solaris8/root [Thu Aug 7 23:31:13 EDT 2008] do_flar /tmp/solaris8-image.flar [Thu Aug 7 23:35:28 EDT 2008] Sanity Check: Passed. Looks like a Solaris 8 system. [Thu Aug 7 23:35:28 EDT 2008] Postprocessing: This may take several minutes... [Thu Aug 7 23:35:28 EDT 2008] running: p2v -u eug-engr-01 [Thu Aug 7 23:35:28 EDT 2008]Postprocess: Gathering information about zone eug-engr-01 [Thu Aug 7 23:35:29 EDT 2008]Postprocess: Creating mount points [Thu Aug 7 23:35:30 EDT 2008]Postprocess: Processing /etc/system [Thu Aug 7 23:35:30 EDT 2008]Postprocess: Booting zone to single user mode [Thu Aug 7 23:35:48 EDT 2008]Postprocess: Applying p2v module S20_apply_patches [Thu Aug 7 20:35:49 PDT 2008] S20_apply_patches: Unpacking patch: 109147-44 [Thu Aug 7 20:35:50 PDT 2008] S20_apply_patches: Installing patch: 109147-44 Checking installed patches... Patch 109147-44 has already been applied. See patchadd(1M) for instructions. Patchadd is terminating. [Thu Aug 7 20:36:01 PDT 2008]
Re: [zones-discuss] [osol-discuss] solaris 8 container installation failed
On Fri 08 Aug 2008 at 11:13AM, Edward Pilatowicz wrote: [Thu Aug 7 23:59:44 EDT 2008] Installing: This may take several minutes... [Thu Aug 7 23:59:44 EDT 2008] cd /zones/solaris8/root [Thu Aug 7 23:59:44 EDT 2008] do_flar /engr.flar uncompress: stdin: corrupt input This code changed recently, and I guess there's a bug. My suggestion for now would be to use 'flar split' to unpack your archive by hand, then use the '-d' option to install the zone from the resulting directory of files. Make sure to do the unpack as root so that file permissions are correct. -dp -- Daniel Price - Solaris Kernel Engineering - [EMAIL PROTECTED] - blogs.sun.com/dp ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] [osol-discuss] solaris 8 container installation failed
You could try: s8 cpio patch:112097-08 s8 compress patch:108823-02 s8 flar patch:109318-39 (requires some other patches) You could be hitting 4384301, fixed in 109318-12, which was obsoleted by the flar patch above. -Steve L. On Fri, Aug 08, 2008 at 04:58:40PM -0400, Asif Iqbal wrote: On Fri, Aug 8, 2008 at 2:13 PM, Edward Pilatowicz [EMAIL PROTECTED] wrote: [ changing the cc to zones-discuss which is a more appropriate alias for this kind of question. ] hey asif, i'm guessing that cpio is not your problem. the key error below is: uncompress: stdin: corrupt input perhaps the s8_install script is somehow not detecting the compression type correctly? could you run the following command: grep files_compressed_method /engr.flar bash-3.00# grep files_compressed_method /engr.flar files_compressed_method=compress bash-3.00# flar info /engr.flar archive_id=d37bfbb8e8f8940362746dfc5af2fbed files_archived_method=cpio creation_date=20080807215755 creation_master=engr-01 content_name=engr creation_node=engr-01 creation_hardware_class=sun4u creation_platform=SUNW,UltraSPARC-IIi-cEngine creation_processor=sparc creation_release=5.8 creation_os_name=SunOS creation_os_version=Generic_117350-39 files_compressed_method=compress content_architectures=sun4u thanks ed On Fri, Aug 08, 2008 at 12:24:25AM -0400, Asif Iqbal wrote: I am failing to install flash archive of a solaris 8 02/04 running on a netra t1. I can install the example solaris8-image.flar (optional download from sun). Here is the failed log bash-3.00# more /var/tmp/engr-01.install.7078.log [Thu Aug 7 23:59:44 EDT 2008] Log File: /var/tmp/engr-01.install.7078.log [Thu Aug 7 23:59:44 EDT 2008]Product: Solaris 8 Containers 1.0 [Thu Aug 7 23:59:44 EDT 2008] Installer: solaris8 brand installer 1.22 [Thu Aug 7 23:59:44 EDT 2008] Zone: engr-01 [Thu Aug 7 23:59:44 EDT 2008] Path: /zones/solaris8 [Thu Aug 7 23:59:44 EDT 2008] Starting pre-installation tasks. [Thu Aug 7 23:59:44 EDT 2008] Installation started for zone engr-01 [Thu Aug 7 23:59:44 EDT 2008] Source: /engr.flar [Thu Aug 7 23:59:44 EDT 2008] Media Type: flash archive [Thu Aug 7 23:59:44 EDT 2008] Installing: This may take several minutes... [Thu Aug 7 23:59:44 EDT 2008] cd /zones/solaris8/root [Thu Aug 7 23:59:44 EDT 2008] do_flar /engr.flar uncompress: stdin: corrupt input [Fri Aug 8 00:01:31 EDT 2008] Postprocessing: This may take several minutes... [Fri Aug 8 00:01:31 EDT 2008] running: p2v -u eug-engr-01 [Fri Aug 8 00:01:31 EDT 2008]Postprocess: Gathering information about zone engr-01 [Fri Aug 8 00:01:31 EDT 2008]Postprocess: Creating mount points touch: /zones/solaris8/root/etc/mnttab cannot create chmod: WARNING: can't access /zones/solaris8/root/etc/mnttab [Fri Aug 8 00:01:31 EDT 2008]Postprocess: Processing /etc/system cp: cannot access /zones/solaris8/root/etc/system [Fri Aug 8 00:01:32 EDT 2008] Result: Postprocessing failed. [Fri Aug 8 00:01:32 EDT 2008] [Fri Aug 8 00:01:32 EDT 2008] Result: *** Installation FAILED *** [Fri Aug 8 00:01:32 EDT 2008] Log File: /var/tmp/engr-01.install.7078.log Here is the good log where installing from the example solaris 8 image from SUN site that comes as optional download with solaris 8 container software bash-3.00# more /var/tmp/engr-01.install.5279.log [Thu Aug 7 23:31:12 EDT 2008] Log File: /var/tmp/engr-01.install.5279.log [Thu Aug 7 23:31:12 EDT 2008]Product: Solaris 8 Containers 1.0 [Thu Aug 7 23:31:12 EDT 2008] Installer: solaris8 brand installer 1.22 [Thu Aug 7 23:31:12 EDT 2008] Zone: engr-01 [Thu Aug 7 23:31:12 EDT 2008] Path: /zones/solaris8 [Thu Aug 7 23:31:12 EDT 2008] Starting pre-installation tasks. [Thu Aug 7 23:31:12 EDT 2008] Installation started for zone engr-01 [Thu Aug 7 23:31:12 EDT 2008] Source: /tmp/solaris8-image.flar [Thu Aug 7 23:31:12 EDT 2008] Media Type: flash archive [Thu Aug 7 23:31:13 EDT 2008] Installing: This may take several minutes... [Thu Aug 7 23:31:13 EDT 2008] cd /zones/solaris8/root [Thu Aug 7 23:31:13 EDT 2008] do_flar /tmp/solaris8-image.flar [Thu Aug 7 23:35:28 EDT 2008] Sanity Check: Passed. Looks like a Solaris 8 system. [Thu Aug 7 23:35:28 EDT 2008] Postprocessing: This may take several minutes... [Thu Aug 7 23:35:28 EDT 2008] running: p2v -u eug-engr-01 [Thu Aug 7 23:35:28 EDT 2008]Postprocess: Gathering information about zone eug-engr-01 [Thu Aug 7 23:35:29 EDT 2008]Postprocess: Creating mount points [Thu Aug 7 23:35:30 EDT 2008]Postprocess: Processing /etc/system [Thu Aug 7 23:35:30 EDT 2008]Postprocess: Booting zone to single user mode [Thu Aug 7
Re: [zones-discuss] [osol-discuss] solaris 8 container installation failed
On Fri, Aug 8, 2008 at 5:15 PM, Dan Price [EMAIL PROTECTED] wrote: On Fri 08 Aug 2008 at 11:13AM, Edward Pilatowicz wrote: [Thu Aug 7 23:59:44 EDT 2008] Installing: This may take several minutes... [Thu Aug 7 23:59:44 EDT 2008] cd /zones/solaris8/root [Thu Aug 7 23:59:44 EDT 2008] do_flar /engr.flar uncompress: stdin: corrupt input This code changed recently, and I guess there's a bug. My suggestion for now would be to use 'flar split' to unpack your archive by hand, then use the '-d' option to install the zone from the resulting directory of files. Make sure to do the unpack as root so that file permissions are correct. bash-3.00# cd / bash-3.00# flar split -d /flash engr.flar bash-3.00# ls /flash archive cookie identification bash-3.00# zoneadm -z engr-01 install -u -d /flash Log File: /var/tmp/engr-01.install.7570.log Sanity Check: /flash doesn't look like a Solaris 8 image. bash-3.00# cat /var/tmp/engr-01.install.7570.log [Fri Aug 8 19:29:07 EDT 2008] Log File: /var/tmp/engr-01.install.7570.log [Fri Aug 8 19:29:07 EDT 2008]Product: Solaris 8 Containers 1.0 [Fri Aug 8 19:29:07 EDT 2008] Installer: solaris8 brand installer 1.22 [Fri Aug 8 19:29:08 EDT 2008] Zone: engr-01 [Fri Aug 8 19:29:08 EDT 2008] Path: /zones/solaris8 [Fri Aug 8 19:29:08 EDT 2008] Starting pre-installation tasks. [Fri Aug 8 19:29:08 EDT 2008] Sanity Check: Missing etc at /flash [Fri Aug 8 19:29:08 EDT 2008] Sanity Check: Missing etc/init at /flash [Fri Aug 8 19:29:08 EDT 2008] Sanity Check: Missing usr at /flash [Fri Aug 8 19:29:08 EDT 2008] Sanity Check: Missing usr/sbin at /flash [Fri Aug 8 19:29:08 EDT 2008] Sanity Check: Missing usr/lib at /flash [Fri Aug 8 19:29:08 EDT 2008] Sanity Check: Missing sbin at /flash [Fri Aug 8 19:29:08 EDT 2008] Sanity Check: Missing lib at /flash [Fri Aug 8 19:29:08 EDT 2008] Sanity Check: Missing lib/ld.so.1 at /flash [Fri Aug 8 19:29:08 EDT 2008] Sanity Check: /flash doesn't look like a Solaris 8 image. I must be missing a step or a switch -dp -- Daniel Price - Solaris Kernel Engineering - [EMAIL PROTECTED] - blogs.sun.com/dp -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] [osol-discuss] solaris 8 container installation failed
On Fri, Aug 8, 2008 at 10:25 PM, Steve Lawrence [EMAIL PROTECTED] wrote: Other archiving options are: cpio (regular, bzip2-ed, or gzip-ed) pax XUSTAR ufsdump (level 0) So I can take a ufsdump of the whole system and then give that to zoneadm as a image of the solaris 8 container? Cool I will give that a try next You can also use the directory (-d) approach. Use any archiver/unarchiver, and pass the directory containing the extracted archive to zoneadm install -d. -Steve L. On Fri, Aug 08, 2008 at 10:18:12PM -0400, Asif Iqbal wrote: On Fri, Aug 8, 2008 at 9:11 PM, Dan Price [EMAIL PROTECTED] wrote: On Fri 08 Aug 2008 at 07:35PM, Asif Iqbal wrote: [Fri Aug 8 19:29:08 EDT 2008] Sanity Check: /flash doesn't look like a Solaris 8 image. I must be missing a step or a switch Yeah, you want to look in the 'flar' manpage for -f: -f (Used with split only.) Extract the archive section into directory called archive, rather than placing it in a file of the same name as the section. bash-3.00# flar split -d /flash -f engr.flar uncompress: stdin: corrupt input ERROR: Unable to process archive file //engr.flar. Hehe .. I guess I will try by installing the patches on solaris 8 box as suggested by Steve Lawrence here and then create flash image again. On a related note is it possible to create the image differently and then bring it over to solaris 10, short of using flar create ? That should do the unpacking of archive for you. Or you can just run file on archive and see what it is, and unpack it by hand. -dp -- Daniel Price - Solaris Kernel Engineering - [EMAIL PROTECTED] - blogs.sun.com/dp -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu ___ zones-discuss mailing list zones-discuss@opensolaris.org -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu ___ zones-discuss mailing list zones-discuss@opensolaris.org