Site icon UnixArena

How to install solaris 10 branded zone on solaris 11?

solaris 10 branded zone

Oracle Solaris 10 allows you to create a Solaris 9 and Solaris 8 as branded zone on SPARC environment and not supported on x86.But oracle soalris 11 allows you to create Solaris 10 as a branded zone on both SPARC and X86 environments.For your information Solaris 9 and Solaris 8 branded zones are not supported on solaris11. So customers are forced to use oracle solaris10 as branded zone or  oracle Solaris 11 now a days.Here we will see how to install oracle Solaris 10 as branded zone on Solaris 11 x86 environment.

Prerequisites :

  1. Solaris 11 base system should have more than 1GB ram and 2GB swap space.(use top command to find out)
  2. Solaris 10 Branded zone require minimum 3GB disk space.(zonepath)
  3. Download the oracle soalris 10 VM template from oracle website and keep it in /var/tmp of Solaris 11 global zone.
  4. Install the Solaris 10 brand on solaris11 global zone.(You need IPS to install it )
root@UAAIS:~# pkg install pkg:/system/zones/brand/brand-solaris10
No updates necessary for this image.
Planning linked: 2/2 done
root@UAAIS:~#

Click on the download link and that will take to the below screen.According to the system architecture , you can choose the VM template.

Oracle Solaris 10 x86 & SPARC Template

1.Copy the installed binary file to /var/tmp on the Solaris 11 global zone.

root@UAAIS:/var/tmp# ls -lrt |grep bin
-rwx------   1 root     root     1312819651 Mar 27 02:05 solaris-10u11-x86.bin
root@UAAIS:/var/tmp#

2.I have chosen the below dataset as the zoneroot path.

root@UAAIS:/var/tmp# df -h /oraz1/sol10z1
Filesystem             Size   Used  Available Capacity  Mounted on
oraz1/sol10z1         10.0G    32K       7.7G     1%    /oraz1/sol10z1
root@UAAIS:/var/tmp#

3.You no need to create  any zone’s configuration prior to the installation. But you need to supply the zone’s configuration to the binary file to create the Solaris 10 branded zone and zone’s installation. The below commands creates the Solaris 10 branded zone and installs it automatically.

Options:

root@UAAIS:/var/tmp# ./solaris-10u11-x86.bin -p /oraz1/sol10z1 -a 192.168.2.44 -i net0 -z uasol10z1

       This is an Oracle VM Template for Oracle Solaris Zones.
 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

 This software and related documentation are provided under a license
 agreement  containing  restrictions  on use  and  disclosure and are
 protected  by  intellectual  property  laws.   Except  as  expressly
 permitted in  your license agreement  or allowed by law, you may not
 use,  copy,   reproduce,   translate,  broadcast,  modify,  license,
 transmit,  distribute,  exhibit,  perform,  publish,  or display any
 part,   in  any  form,   or  by  any  means.   Reverse  engineering,
 disassembly,  or decompilation of this software,  unless required by
 law for interoperability, is prohibited.

IMAGE:      ./solaris-10u11-x86.bin
ZONE:       uasol10z1
ZONEPATH:   /oraz1/sol10z1/uasol10z1
VNIC:       vnicZBI27572146
IP ADDR:    192.168.2.44
NETMASK:    255.255.255.0
DEFROUTER:  192.168.2.5
TIMEZONE:   Asia/Kolkata

Checking disk-space for extraction
  Ok

Extracting in /var/tmp/bootimage.rwai4i ...
100% [===============================>]

Checking data integrity
  Ok

Checking platform compatibility

      The host  and  the image  do not have  the same Solaris release:
        host  Solaris release:   5.11
        image Solaris release:   5.10

      Will create a Solaris 10 branded zone.

Checking disk-space for installation
  Ok

Installing in /oraz1/sol10z1/uasol10z1 ...
100% [===============================>]

Attaching uasol10z1
  Ok

Booting uasol10z1

  waiting for boot to complete
  local file systems mounted
  booting...
  booting...
  booting...

Zone uasol10z1 booted

The zone's root password has been set with the one of  the global zone.
To harden the zone's security you can change this password: being root,
connect   to   the  zone  from   the  global  zone  with   the  command
'zlogin uasol10z1'.
Once  logged in,  change the root password  with  the command 'passwd'.

root@UAAIS:/var/tmp#

We have successfully installed Solaris 10 branded zone on Solaris 11 global zone.

4.Check the zone’s status and its configuration.

root@UAAIS:~# zoneadm list -cv
  ID NAME             STATUS     PATH                           BRAND    IP
   0 global           running    /                              solaris  shared
   3 uasol10z1        running    /oraz1/sol10z1/uasol10z1       solaris10 excl
   - uaz1             installed  /export/zones/uaz1             solaris  excl
   - uaz2             installed  /export/zones/uaz2             solaris  excl
root@UAAIS:~# zonecfg -z uasol10z1 info
zonename: uasol10z1
zonepath: /oraz1/sol10z1/uasol10z1
brand: solaris10
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: exclusive
hostid:
fs-allowed:
net:
        address not specified
        allowed-address not specified
        configure-allowed-address: true
        physical: vnicZBI27572146
        defrouter not specified
root@UAAIS:~#

5.You can login to the zone and verify the operating system version and release.

root@UAAIS:/var/tmp# zlogin uasol10z1
[Connected to zone 'uasol10z1' pts/4]
Last login: Thu Mar 27 19:58:07 on pts/3
Oracle Corporation      SunOS 5.10      Generic Patch   January 2005
# bash
bash-3.2# uname -a
SunOS uasol10z1 5.10 Generic_Virtual i86pc i386 i86pc
bash-3.2# cat /etc/release
                    Oracle Solaris 10 1/13 s10x_u11wos_24a X86
  Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.
                            Assembled 17 January 2013
bash-3.2#
bash-3.2# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
vnicZBI27572146: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.2.44 netmask ffffff00 broadcast 192.168.2.255
        ether 2:8:20:f6:d3:4a
bash-3.2# zpool list
NAME    SIZE  ALLOC   FREE  CAP  DEDUP  HEALTH  ALTROOT
rpool  10.1G  2.28G  7.83G  22%  1.00x  ONLINE  -
bash-3.2#

The installation may fail due to the following reasons .

  1. Insufficient memory
  2. Insufficient disk-space.
  3. zone-path doesn’t exists.

Here is the some of the examples of those failed installations.

root@UAAIS:/var/tmp# ./solaris-10u11-x86.bin -p /oraz1/sol10z1 -a 192.168.2.44 -i net0 -z uasol10z1

       This is an Oracle VM Template for Oracle Solaris Zones.
 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

 This software and related documentation are provided under a license
 agreement  containing  restrictions  on use  and  disclosure and are
 protected  by  intellectual  property  laws.   Except  as  expressly
 permitted in  your license agreement  or allowed by law, you may not
 use,  copy,   reproduce,   translate,  broadcast,  modify,  license,
 transmit,  distribute,  exhibit,  perform,  publish,  or display any
 part,   in  any  form,   or  by  any  means.   Reverse  engineering,
 disassembly,  or decompilation of this software,  unless required by
 law for interoperability, is prohibited.

  /oraz1/sol10z1 does not exist or is not a directory, exiting

root@UAAIS:/var/tmp# df -h  /oraz1
Filesystem             Size   Used  Available Capacity  Mounted on
oraz1                 10.0G    35K       9.8G     1%    /oraz1
root@UAAIS:/var/tmp# zfs create oraz1/sol10z1

Another example, Here the installation failed due to insufficient memory.

root@UAAIS:/var/tmp# ./solaris-10u11-x86.bin -p /oraz1/sol10z1 -a 192.168.2.44 -i net0 -z uasol10z1

       This is an Oracle VM Template for Oracle Solaris Zones.
 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

 This software and related documentation are provided under a license
 agreement  containing  restrictions  on use  and  disclosure and are
 protected  by  intellectual  property  laws.   Except  as  expressly
 permitted in  your license agreement  or allowed by law, you may not
 use,  copy,   reproduce,   translate,  broadcast,  modify,  license,
 transmit,  distribute,  exhibit,  perform,  publish,  or display any
 part,   in  any  form,   or  by  any  means.   Reverse  engineering,
 disassembly,  or decompilation of this software,  unless required by
 law for interoperability, is prohibited.

  Not enough free swap-space on this system.
  A minimum of 1GB is required while only 936MB are free.
  Swap-space can be added with the command 'swap -a'.

root@UAAIS:/var/tmp#

Hope this article is informative to you.

Share it ! comment it !! Be sociable !!!

Exit mobile version