Professional Documents
Culture Documents
STEP 1: Shutdown The Zone "Orazone"
STEP 1: Shutdown The Zone "Orazone"
globalzone# cd /zones/oraprodzone/root/etc
-boot new renaming zone
globalzone# zoneadm -z oraprodzone boot
Feel free to leave a comment :)
T h u r s d a y, J u l y 1 0 , 2 0 0 8
Solaris 9.0 OS Image file - (downloaded from sun.com this file named - solaris9image.flar)
MY OBJECTIVE To install Solaris 9 OS as a container on a Solaris 10 zone. We have some native
apps on Solaris 9, so i need to check if that would work fine.
STEPS I FOLLOWED STEP 1 - Solaris 10 OS Installation on the System
Installed Solaris 10 update 5 on my Sun Fire 280R. Chose Entire Distribution and
allocated my second 80GB HDD only for storing Zone data. So i formatted and
mounted /zones on my second hard disk c1t1d0s2. I dedicated my first disk
(c1t0d0) to run Solaris 10 exclusively. Installation was successful without a hitch.
Below is my install configuration hostname - sol10
ip address - 10.10.8.46/24 (on eri0 interface)
plumbed my ce0 interface so that i can dedicate this to my solaris 9 zone that i
would be creating in the next step.
globalzone # cat /etc/release
Solaris 10 5/08 s10s_u5wos_10 SPARC
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 24 March 2008
globalzone #ifconfig ce0 plumb
STEP 2 - Install Solaris 9 Container Application 1.0
I uploaded the file s9containers-1_0-rr-solaris10-sparc.tar.gz to my home directory.
zonecfg:solaris9> info
zonename: solaris9
zonepath: /zones/solaris9
brand: solaris9
autoboot: false
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
net:
address: 10.10.8.91/24
physical: ce0
zonecfg:solaris9> verify
zonecfg:solaris9> commit
zonecfg:solaris9> exit
STEP 4 - Installed Solaris 9 on the Branded Zone
I uploaded the file solaris9-image.flar to my home directory and performed the
below commands to Install solaris 9 zone.
globalzone # zoneadm -z solaris9 install -u -a /export/home/vishal/solaris9image.flar
Log File: /var/tmp/solaris9.install.846.log
Source: /export/home/vishal/solaris9-image.flar
Installing: This may take several minutes...
solaris9-zone # uname -a
SunOS solaris9 5.9 Generic_Virtual sun4u sparc SUNW,Sun-Fire-280R
solaris9-zone # cat /etc/release
Solaris 9 9/05 HW s9s_u9wos_06b SPARC
Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 25 September 2006
solaris9-zone # df -h
Filesystem size used avail capacity Mounted on
/ 67G 1.9G 65G 3% /
/.SUNWnative/lib 9.6G 162M 9.4G 2% /.SUNWnative/lib
/.SUNWnative/platform
9.6G 162M 9.4G 2% /.SUNWnative/platform
/.SUNWnative/usr 29G 3.1G 25G 11% /.SUNWnative/usr
/dev 67G 1.9G 65G 3% /dev
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 11G 16K 11G 1% /etc/svc/volatile
/dev/ksyms 29G 3.1G 25G 11% /dev/ksyms
fd 0K 0K 0K 0% /dev/fd
swap 11G 0K 11G 0% /tmp
solaris9-zone # psrinfo
0 on-line since 06/23/2008 11:52:30
1 on-line since 06/23/2008 11:52:31
solaris9-zone #
I hope the above would be useful to you guys. Do feel free to comment, if you
happen to have any questions.
Posted by Vishal Sharma at 9:41 PM 0 comments
Labels: Zones
S a t u r d a y, J u n e 2 1 , 2 0 0 8
Hello Folks,
I am now working on doing a Solaris 9 OS install on a Solaris 10 system using Solaris
10 Zones. If you dont know already know, Solaris 10 can run container versions of
Solaris 8 and 9 within a Solaris 9. There are some specific applications that you
need to install on your global zone to make it work. From what all i have read so
far, all that is needed is a Solaris 9.0 Container Software 1.0 and Solaris 9 install
image. You can download both from the Sun Download website. Also make sure
that the version of Solaris ten is Update 4 or above. I will be illustrating the
procedure with Update 5 release. Stay tuned....
Posted by Vishal Sharma at 9:41 PM 0 comments
Labels: Zones
W e d n e s d a y, J u n e 1 8 , 2 0 0 8
STEP 1 - Use zoneadm list on the global zone to show status of zones on your
system.
On the global zone, use the zoneadm list -cv to show current status of all installed
zones.
In the illustration below, i have two zones installed, one being ora9 and another
being ora8
globalzone# zoneadm list -cv
ID NAME STATUS PATH
0 global running /
1 ora9 running /zone/ora9
- ora8 configured /zone/ora8
globalzone#
Note: You may also use zoneadm -z list -v to verify the specific zone status.
STEP 2 - Use zonecfg -z to enter the zone modifying environment
On the global zone, use the zonecfg -z to enter the zone configuration
environment. The enviromental prompt "zonecfg:" will display.
Use info in the zone configuration environment to verify the network values.
globalzone# zonecfg -z ora9
zonecfg:ora9> info
zonepath: /zone/ora9
autoboot: true
pool:
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
net:
address: 10.10.10.8/24
physical: ce0
zonecfg:ora9>
STEP 3 - Use set address= and set physical= to change the network address and
physical interface.
Use set address= and set physical= in the zone configuration environment .
zonecfg:ora9:net> set address=10.10.10.11/24
zonecfg:ora9:net> set physical=ce1
zonecfg:ora9:net> info
net:
address: 10.10.10.11/24
physical: ce1
zonecfg:ora9:net> end
zonecfg:ora9> verify
zonecfg:ora9> info
zonepath: /zone/ora9
autoboot: true
pool:
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
net:
address: 10.10.10.8/24
physical: ce0
net:
address: 10.10.10.11/24
physical: ce1
zonecfg:ora9> remove net address=10.10.10.8/24
zonecfg:ora9> info
zonepath: /zone/ora9
autoboot: true
pool:
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
net:
address: 10.10.10.11/24
physical: ce1
zonecfg:ora9> commit
zonecfg:ora9>
The zone does not require a reboot for this parameter to take place as the zone
will use the new value if it is halted.
Note:
* If you set the autoboot resource property in a zones configuration to true, that
zone is automatically booted when the global zone is booted. The default setting is
false.
* for the zones to autoboot, the zones service svc:/system/zones:default must also
be enabled.
STEP 4 - Use remove net address= to remove the old network values.
Use exit in the environment to save the changes and leave the zone configuration
environment.
zonecfg:ora9> info
zonepath: /zone/ora9
autoboot: true
pool:
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
net:
address: 10.10.10.8/24
physical: ce0
net:
address: 10.10.10.11/24
physical: ce1
zonecfg:ora9> remove net address=10.10.10.8/24
zonecfg:ora9> info
zonepath: /zone/ora9
autoboot: true
pool:
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
net:
address: 10.10.10.11/24
physical: ce1
zonecfg:ora9> commit
zonecfg:ora9>
Note:
Performing either remove net address=
or
remove net physical=
will delete both network parameters. You do not nor can you perform both
command after you have issue one of them.
STEP 5 - Use commit and exit to save the changes to the parameter
Use commit and exit in the environment to save the changes and leave the zone
configuration environment.
zonecfg:ora9> verify
zonecfg:ora9> commit
zonecfg:ora9> exit
globalzone#
Use zoneadm -z halt followed by zoneadm -z boot
The new network parameters will not come into force until the zone is booted. Use
zoneadm -z halt to halt the zone. Then use zoneadm -z boot to start the zone with
the new network parameters.
globalzone# ifconfig -a
lo0: flags=2001000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
lo0:1: flags=2001000849 mtu 8232 index 1
zone ora9
inet 127.0.0.1 netmask ff000000
ce0: flags=1000843 mtu 1500 index 2
inet 10.10.10.14 netmask ffffff00 broadcast 10.10.10.255
ether [removed]
globalzone#
Posted by Vishal Sharma at 1:26 AM 0 comments
Labels: Zones
Tu e s d a y, M a y 2 0 , 2 0 0 8
4. Cannot communicate with other non-global zones by default. NIC must be used,
which means, use standard network API(TCP)
5. GLOBAL zone admin. can delegate non-global zone administration
###Zone Configuration###
Use: zonecfg - to configure zones
Note: zonecfg can be run: interactively, non-interactively, command-file modes
Requirements for non-global zones:
1. hostname
2. zone root path. i.e. /export/home/zones/testzone1
3. IP address - bound to logical or physical interface
Zone Types:
1. Sparse Root Zones - share key files with global zone
2. Whole Root Zones - require more storage
Steps for configuring non-global zone:
1. mkdir /export/home/zones/testzone1 && chmod 700
/export/home/zones/testzone1
2. zonecfg -z testzone1
3. create
4. set zonepath=/export/home/zones/testzone1 - sets root of zone
5. add net ; set address=192.168.1.60
6. set physical=e1000g0
7. (optional) set autoboot=true - testzone1 will be started when system boots
8. (optional) add attr ; set name=comment; set type=string; set value="TestZone1"
9. verify zone - verifies zone for errors
10. commit changes - commit
11. Zone Installation - zoneadm -z testzone1 install - places zone, 'testzone1' into
'installed' state. NOT ready for production
12. zoneadm -z testzone1 boot - boots the zone, changing its state
###Zlogin - is used to login to zones###
Note: each non-global zone maintains a console. Use 'zlogin -C zonename' after
I would presume here that the zone is already created and i would detail out the
process to change an "existing" zone's network parameters.
Please Note - The network parameters can be changed without halting the zone.
But the changes would only take affect after the zone is rebooted. So be careful
with this part. Before you can use any network interface on a local zone, that
interface must be plumbed first (e.g. ifconfig plumb, on the global zone) in the
global zone. If no network address is assigned on the global zone to that interface,
its default address will be set to inet 0.0.0.0 netmask 0.
Objective - To change network properties of zone "ora9"
FROM Interface - ce0
IP Address - 10.10.10.8/24
TO Interface - ce1
IP Address - 10.10.10.11/24
STEP 1 - Use zoneadm list on the global zone to show status of zones on your
system.
On the global zone, use the zoneadm list -cv to show current status of all installed
zones.
In the illustration below, i have two zones installed, one being ora9 and another
being ora8
globalzone# zoneadm list -cv
ID NAME STATUS PATH
0 global running /
1 ora9 running /zone/ora9
- ora8 configured /zone/ora8
globalzone#
Note: You may also use zoneadm -z list -v to verify the specific zone status.
STEP 2 - Use zonecfg -z to enter the zone modifying environment
On the global zone, use the zonecfg -z to enter the zone configuration
environment. The enviromental prompt "zonecfg:" will display.
Use info in the zone configuration environment to verify the network values.
globalzone# zonecfg -z ora9
zonecfg:ora9> info
zonepath: /zone/ora9
autoboot: true
pool:
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
net:
address: 10.10.10.8/24
physical: ce0
zonecfg:ora9>
STEP 3 - Use set address= and set physical= to change the network address and
physical interface.
Use set address= and set physical= in the zone configuration environment .
zonecfg:ora9:net> set address=10.10.10.11/24
zonecfg:ora9:net> set physical=ce1
zonecfg:ora9:net> info
net:
address: 10.10.10.11/24
physical: ce1
zonecfg:ora9:net> end
zonecfg:ora9> verify
zonecfg:ora9> info
zonepath: /zone/ora9
autoboot: true
pool:
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
net:
address: 10.10.10.8/24
physical: ce0
net:
address: 10.10.10.11/24
physical: ce1
autoboot: true
pool:
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
net:
address: 10.10.10.8/24
physical: ce0
net:
address: 10.10.10.11/24
physical: ce1
zonecfg:ora9> remove net address=10.10.10.8/24
zonecfg:ora9> info
zonepath: /zone/ora9
autoboot: true
pool:
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
net:
address: 10.10.10.11/24
physical: ce1
zonecfg:ora9> commit
zonecfg:ora9>
Note: