Solved

How to create a flash Image on solaris 8

Posted on 2010-08-27
8
947 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
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
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

808 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