Está en la página 1de 3

Solaris[TM] 8 and 9 Container Setup (migration assistant or branded zone)

Description
How to setup Solaris[TM] 8 and 9 containers in Solaris[TM] 10
Steps to Follow
The following steps demonstrate creating a Solaris 8 container
Installing and configuring the Solaris 8 Migration Assistant.
FAQ: http://www.sun.com/software/solaris/faq.jsp#q_7_1
Documentation: http://docs.sun.com/app/docs/doc/820-2914.

1.) Download kernel patch 127111-01+ and install onto a Solaris 10 08/07 system
2.) Download s8ma-1_0-rr-solaris10-sparc.tar.gz from sun.com/downloads
3.) Install packages from s8ma-1_0-rr: SUNWs8brandr and SUNWs8brandu in that ord
er
***NOTE***
Zone Migration and Inital Boot:
During the process of installing the solaris8 branded zone, a physical-to-virtua
l conversion is automatically performed. When a solaris8 branded zone is migrate
d to a new host, this process must be repeated to ensure that the zone is optimi
zed to run on the new host. The first time that the zone attempts to boot on the
new host it will detect whether the s8_p2vconversion command was run. The zone
will not boot if the command has not been run again.
If you are booting a migrated s8-zone zone on a new host for the first time, you
'll need to run the following command before you boot the zone:

# /usr/lib/brand/solaris8/s8_p2v <zonename>
Therefore, we'll also need to install package SUNWs8p2v (not in the documentatio
n).

4.) Create a flash archive from Solaris 8 system:


# uname -a
SunOS s8zone 5.8 Generic_117000-05 sun4u sparc SUNW,Ultra-5_10
# flarcreate -S -n s8-s8zone /net/denis/var/tmp/s8-s8zone.flar
Determining which filesystems will be included in the archive...
Creating the archive...
cpio: File size of "var/adm/pacct" has increased by 40
4161924 blocks
1 error(s)
Archive creation complete.

5.) Begin the zonecfg process:


root@denis(5.10) # zonecfg -z s8-s8zone
s8-s8zone: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:s8-s8zone> create -t SUNWsolaris8 <--- -t=template
zonecfg:s8-s8zone> set zonepath=/export/home/s8-s8zone <--- ensure to perform mk
dir and chmod 700
zonecfg:s8-s8zone> set autoboot=true
zonecfg:s8-s8zone> verify
zonecfg:s8-s8zone> commit
zonecfg:s8-s8zone> exit
root@denis(5.10) # zonecfg -z s8-s8zone info
zonename: s8-s8zone
zonepath: /export/home/s8-s8zone
brand: solaris8
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
root@denis(5.10) # zonecfg -z s8-s8zone info > /var/tmp/s8-s8zone.config
root@denis(5.10) # zoneadm -z s8-s8zone install -u -a /var/tmp/s8-s8zone.flar

6.) Install the zone:


# uname -a
SunOS denis 5.10 Generic_127111-01 sun4u sparc SUNW,Ultra-250
# zoneadm -z s8-s8zone install -u -a /var/tmp/s8-s8zone.flar <--- the -u=sysunco
nfig & -a=archive location
Log File: /var/tmp/s8-s8zone.install.23675.log
Source: /var/tmp/s8-s8zone.flar
Installing: This may take several minutes...
Result: Postprocessing failed.
Result: *** Installation FAILED ***
Log File: /var/tmp/s8-s8zone.install.23675.log
root@denis(5.10) # df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0t9d0s0 7.8G 7.7G 70M 100% / <---- note
# zonecfg -z s8-s8zone delete -F
# rm -r /export/home/s8-s8zone
# mkdir -p /export/home/s8-s8zone
A successful install will place the log file in two places: /var/tmp in the glob
al zone and /var/log inside the zone.
A failed install will place the log file in /var/tmp.

7.) Boot the zone:


# /usr/lib/brand/solaris8/s8_p2v <zonename>
# zoneadm -z s8-s8zone boot
8.) Login to the zone:
# zlogin -C s8-s8zone

También podría gustarte