Solved

How to create a flash Image on solaris 8

Posted on 2010-08-27
8
955 Views
1 Endorsement
Last Modified: 2013-12-28
Please let me know step by step procedure to create a Flash archive on a solaris 8. I also need to create Branded zone and install the flash archive on the container

The solaris 8 resides on a Physical V220 box..

Regards,
AK
1
Comment
Question by:amk2121
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 9

Accepted Solution

by:
amolg earned 500 total points
ID: 33541307
0
 

Author Comment

by:amk2121
ID: 33565524
thanks for the link, When you create a flash archive on Solaris 8 it doesnt exclude the directories which i want to be excluded from the flash archive. Is there any work around. This is on Sunfire V280 an older sun server.

Please let me know a workaround

0
 
LVL 13

Expert Comment

by:Rowley
ID: 33584291
Do you have the -f option to create the flar from a file list? If so, use find, grep etc. to create your filelist. Create your flar using -f.

0
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 

Author Comment

by:amk2121
ID: 33611440
i created the flash image Full by using the below command and arguments

#flarcreate -n sun4v -R / -S /backup

the /backup is a NFS share and it took around 9 hours to complete the flar archive with around 20 errors.

is there a better way to do it
0
 
LVL 13

Expert Comment

by:Rowley
ID: 33611969
Did you see/read my previous comment?
0
 

Author Comment

by:amk2121
ID: 33643903
Yes I saw it, solaris 8 does have the -f option, can you provide an example so it would be very much clear for me. I have to do this straight on a production server.
0
 
LVL 13

Expert Comment

by:Rowley
ID: 33661996
Build your file list, excluding any dirs you don't want in the flar:

find / -print | egrep -v "dir1|dir2|dir3" > file.list

Then use this file to create your archive with the -f option
0
 
LVL 1

Expert Comment

by:ArPcPro
ID: 34144545
After you have created the flar, to create the Solaris 8 zone do:

[root@destmachine] /storage # zonecfg -z mys8zone
mys8zone: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:mys8zone> create -t SUNWsolaris8
zonecfg:mys8zone> set zonepath=/storage/mys8zone
zonecfg:mys8zone> set autoboot=false
zonecfg:mys8zone> set ip-type=shared
zonecfg:mys8zone> add net
zonecfg:mys8zone:net> set physical=ce1
zonecfg:mys8zone:net> set address=10.255.48.175
zonecfg:mys8zone:net> set defrouter=10.255.48.129
zonecfg:mys8zone:net> end
zonecfg:mys8zone> verify
zonecfg:mys8zone> commit
zonecfg:mys8zone> exit

 [root@destmachine] /storage #
[root@destmachine] /storage # zoneadm -z mys8zone install -v -p -a /storage/machineY.flar
A ZFS file system has been created for this zone.
      Log File: /var/tmp/mys8zone.install.9208.log
       Product: Solaris 8 Containers 1.0
     Installer: solaris8 brand installer 1.21
          Zone: mys8zone
          Path: /storage/mys8zone
        Source: /storage/machineY.flar
    Media Type: flash archive
    Installing: This may take several minutes...
  Sanity Check: Passed.  Looks like a Solaris 8 system.
Postprocessing: This may take several minutes...
   Postprocess: Gathering information about zone mys8zone
   Postprocess: Creating mount points
   Postprocess: Linking in appropriate libc_psr.so for this platform
   Postprocess: Processing /etc/system
   Postprocess: Booting zone to single user mode
   Postprocess: Applying p2v module S20_apply_patches
        S20_apply_patches:  Unpacking patch:  115986-03
        S20_apply_patches: Installing patch:  115986-03
        S20_apply_patches:  Unpacking patch:  112963-32
        S20_apply_patches: Installing patch:  112963-32
   Postprocess: Applying p2v module S31_fix_net
   Postprocess: Applying p2v module S32_fix_nfs
   Postprocess: Applying p2v module S33_fix_vfstab
   Postprocess: Applying p2v module S34_fix_inittab
   Postprocess: Applying p2v module S35_fix_crontab
   Postprocess: Applying p2v module S36_fix_pam_conf
   Postprocess: Applying p2v module S40_setup_preload
   Postprocess: Halting zone
   Postprocess: Postprocessing successful.
        Result: Postprocessing complete.
   Service Tag: Gathering information about zone mys8zone
   Service Tag: Adding service tag: urn:st:73564354-c58d-c63e-ede4-b269fa685fa8
   Service Tag: Operation successful.

        Result: Installation completed successfully.
      Log File: /storage/mys8zone/root/var/log/mys8zone.install.9208.log
[root@destmachine] /storage #

Open in new window

Then change /etc/hosts e "/etc/defaultrouter" of the zone

Boot and then Login to the Solaris 8/9 Container

zoneadm -z mys8zone boot
zlogin -C mys8zone
zlogin mys8zone   (to change etc hosts on first login)
0

Featured Post

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
RHEL7 - Error installing docker compose 2 219
CISCO WIFI 6 73
Dell SonicWall Connection 18 61
Computer certifications 11 54
Let’s list some of the technologies that enable smooth teleworking. 
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question