Solved

How to create a flash Image on solaris 8

Posted on 2010-08-27
8
940 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
Comment Utility
0
 

Author Comment

by:amk2121
Comment Utility
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
Comment Utility
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
 

Author Comment

by:amk2121
Comment Utility
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 13

Expert Comment

by:Rowley
Comment Utility
Did you see/read my previous comment?
0
 

Author Comment

by:amk2121
Comment Utility
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
Comment Utility
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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now