Está en la página 1de 5

Installing a Branded Solaris 8 zone on an Oracle (Sun) T-5120 system:

Verify that the base SUNWs8brandr and SUNWs8brandu packages are installed.

(The SUNWs8brandr and SUNWs8brandu packages should be installed on your system during the Solaris system installation. If not already installed, the packages are available from the Solaris 10 10/09 media in the NFS repository /nfs/install/sol10_1009/Solaris_10/Product.)
(globalZ)# pkginfo | grep -i SUNWs8brand system SUNWs8brandr Solaris 8 Containers: solaris8 brand support (Root) system SUNWs8brandu Solaris 8 Containers: solaris8 brand support (Usr) Verify that the kernel patch 127111-01 or later is installed (globalZ)# cd /nfs/install/legacytools/1.0.1/Product Installing the Solaris 8 Containers 1.0.1 Software (globalZ)# pkgadd -d . SUNWs8brandk Verify if the kernel patch 127111-01 or later is installed (globalZ)# patchadd -p | grep 127111 Use the zonecfg command to create the Solaris 8 zone. (globalZ)# zonecfg -z newbrandz newbrandz: No such zone configured Use 'create' to begin configuring a new zone. zonecfg:newbrandz> create -t SUNWsolaris8 zonecfg:newbrandz> set zonepath=/z/hostroot/newbrandz zonecfg:newbrandz> set autoboot=true zonecfg:newbrandz> add net zonecfg:newbrandz:net> set address=128.56.11.201 zonecfg:newbrandz:net> set physical=nxge0 zonecfg:newbrandz:net> end zonecfg:newbrandz> add attr zonecfg:newbrandz:attr> set name=machine zonecfg:newbrandz:attr> set type=string zonecfg:newbrandz:attr> set value=sun4u zonecfg:newbrandz:attr> end zonecfg:newbrandz> verify zonecfg:newbrandz> commit zonecfg:newbrandz> exit # Verify that the newly created Branded Zone configuration globalZ)# zonecfg -z newbrandz info zonename: newbrandz zonepath: /z/hostroot/newbrandz brand: solaris8 autoboot: true

bootargs: pool: limitpriv: scheduling-class: ip-type: shared net: address: 128.56.11.201 physical: nxge0 defrouter not specified attr: name: machine type: string value: sun4u Verify the Branded Zone configuration file (globalZ)# cat /etc/zones/newbrandz.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE zone PUBLIC "-//Sun Microsystems Inc//DTD Zones//EN" "file:///usr/share/lib/xml/dtd/zonecfg.dtd.1"> <!-DO NOT EDIT THIS FILE. Use zonecfg(1M) instead. --> <zone name="newbrandz" zonepath="/z/hostroot/newbrandz" autoboot="true" brand="solaris8"> <network address="128.56.11.201" physical="nxge0"/> <attr name="machine" type="string" value="sun4u"/> </zone> Format partition 6 as 18GB on the boot drives for the zone root (globalZ)# format c1t1d0 c1t0d0 c1t2d0 AVAILABLE DISK SELECTIONS: 0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> /pci@0/pci@0/pci@2/scsi@0/sd@0,0 1. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> /pci@0/pci@0/pci@2/scsi@0/sd@1,0 2. c1t2d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> /pci@0/pci@0/pci@2/scsi@0/sd@2,0 Specify disk (enter its number): 0 selecting c1t0d0 [disk formatted] /dev/dsk/c1t0d0s0 is part of SVM volume stripe:d101. Please see metaclear(1M). /dev/dsk/c1t0d0s1 is part of SVM volume stripe:d111. Please see metaclear(1M). /dev/dsk/c1t0d0s3 is in use by dump. Please see dumpadm(1M). /dev/dsk/c1t0d0s7 contains an SVM mdb. Please see metadb(1M).

FORMAT MENU: disk - select a disk type - select (define) a disk type partition - select (define) a partition table current - describe the current disk

format repair label analyze defect backup verify save inquiry volname !<cmd> quit format> p partition> p

- format and analyze the disk - repair a defective sector - write label to the disk - surface analysis - defect list management - search for backup labels - read and display labels - save new disk/partition definitions - show vendor, product and revision - set 8-character volume name - execute <cmd>, then return

Current partition table (unnamed): Total disk cylinders available: 14087 + 2 (reserved cylinders) Part 0 1 2 3 4 5 6 7 Tag root swap backup unassigned unassigned unassigned root unassigned Flag wm wu wu wm wu wu wm wm Cylinders 825 - 3298 0 - 824 0 - 14086 3299 - 4123 0 0 4126 - 5980 4124 - 4125 Size 24.01GB 8.01GB 136.71GB 8.01GB 0 0 18.00GB 19.88MB Blocks (2474/0/0) (825/0/0) (14087/0/0) (825/0/0) (0/0/0) (0/0/0) (1855/0/0) (2/0/0)

50350848 16790400 286698624 16790400 0 0 37752960 40704

Create the Zone Root directory (globalZ)# mkdir p /z/hostroot/newbrandz Create metadevices for the Zone root devices (globalZ)# metainit d801 1 1 c1t0d0s4 (globalZ)# metainit d802 1 1 c1t1d0s4 (globalZ)# metainit d803 1 1 c1t2d0s4 Create a 1 Way Mirror (globalZ)# metainit d800 -m d801 Create a filesystem on the Zone root device (globalZ)# newfs /dev/md/rdsk/d80 # (globalZ)# mount /dev/md/dsk/d80 /z/hostroot/newbrandz (globalZ)# chmod 700 /z/hostroot/newbrandz

Check the status of the Zones (globalZ)# zoneadm list -iv Check the availability of the flash archive file for solaris8S (globalZ)# ls -l /nfs/archives_rep/solaris8S/solaris8S_Sun-Fire-V240_sol5.8_117350-55.flar Install the configured zone s8-zone by using the zoneadm command with the install -a option and the path to the archive. You will see various messages as the installation completes. This can take some time. To remove the system identity from a system image that you created without altering the image, use the -u option. The sys-unconfig occurs to the target zone. (globalZ)# zoneadm -z newbrandz install -u -a /nfs/archives_rep/solaris8S/solaris8S_Sun-FireV240_sol5.8_117350-55.flar Verify that the zone is installing ls -l /z/hostroot/newbrandz ls -l /z/hostroot/newbrandz/root

Verify Zone Status zoneadm list -iv Boot Zone zoneadm -z newbrandz boot Verify Zone Status zoneadm list -iv Log into the new Branded zone (globalZ)#zlogin newbrandz # Update the network identify files to reflect the new zone name (newbrandz)# vi /etc/resolv.conf # Copy from the Global Zone (newbrandz)# vi /etc/nodename (newbrandz)# vi /etc/nsswitch.conf # Copy from the Global Zone (newbrandz)# vi /etc/net/ticlts/hosts (newbrandz)# vi /etc/net/ticots/hosts (newbrandz)# vi /etc/net/ticotsord/hosts (newbrandz)# vi /etc/hosts # Exit Zone (newbrandz)# exit

Log into the new Branded zone (globalZ)# zlogin newbrandz # Mount the NFS server nasappl (newbrandz)# dfshares nasappl | grep /nfs/appl nasappl:/nfs/appl nasappl (newbrandz)# mount nasappl:/nfs/appl Install NIS (newbrandz)# # Install NIS Check the Automounter Remove all the STANDARD packages and reinstall the required ones /mnt

Additional Reference:
http://download.oracle.com/docs/cd/E19455-01/820-2914/gftqt/index.html

También podría gustarte