In this article I am going to explain how to create branded zone in Solaris 11. Sometimes our applications are specific to run on particular version of OS in those cases branded zones come into picture.
In case of Solaris 11 only Solaris 10 can be implemented as branded zone. Below is the procedure to implement the Solaris 10 as branded zone in Solaris 11.
Step 1 : First we need to check that package which support the branded zone feature is installed on server.
root@Solaris11:~# pkg list /system/zones/brand/brand-solaris10
NAME (PUBLISHER) VERSION IFO
system/zones/brand/brand-solaris10 0.5.11-0.175.1.0.0.24.2 i—
Step 2: After that we need to create one zfs file system which can act as zonepath for zone. Here I have created new pool and then zfs file system named as s10zone1.
root@Solaris11:/pool1/zfs1# zpool create pool2 c8t2d0
root@Solaris11:/pool1/zfs1# zfs create pool2/s10zone1
Step 3: After the creation of pool we need to download the Solaris 10 template from Oracle site. This is binary file we can run this as script by giving the parameters shown below.
Link to download the Solaris 10 template http://www.oracle.com/technetwork/server-storage/solaris11/vmtemplates-zones-1949718.html
root@Solaris11:/pool1/zfs1# chmod 777 solaris-10u11-x86.bin
root@Solaris11:/pool1/zfs1# ./solaris-10u11-x86.bin -p /pool2/s10zone1 -a 192.168.120.156 -i net0 -z s10-zone1
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.
Info: could not find a defaultrouter
Zone won’t have any defaultrouter configured
IP ADDR: 192.168.120.156
Checking disk-space for extraction
Extracting in /pool1/zfs1/bootimage.OvaGCd …
Checking data integrity
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
Installing in /pool2/s10zone1/s10-zone1 …
waiting for boot to complete
local file systems mounted
Zone s10-zone1 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
Once logged in, change the root password with the command ‘passwd’.
Step 4 : We have to wait for approx 20-25 minutes for the completion of above script. Then we can issue the below commands to check the status of newly created zone.
root@Solaris11:/pool1/zfs1# zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / solaris shared
3 s10-zone1 running /pool2/s10zone1/s10-zone1 solaris10 excl
root@Solaris11:/pool1/zfs1# zlogin s10-zone1
[Connected to zone ‘s10-zone1’ pts/2]
Oracle Corporation SunOS 5.10 Generic Patch January 2005
# uname -a
SunOS s10-zone1 5.10 Generic_Virtual i86pc i386 i86pc
# more /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
# pkgcond -n is_what