You are on page 1of 3

Branded Zones:

Branded zones are available beginning with the Solaris 10 8/07 release. The Branded zone (BrandZ) provides the framework to create non-global branded zones that contain non-native operating environments used for running applications. Every zone is configured with an associated zone. The default is the native brand, Solaris. A branded zone will support exactly one brand of non-native binary, which means that a branded zone provides a single operating environment.

Note : 1. Cannot run Solaris applications inside an lx zone. However, the lx zone enables us to use the Solaris system to develop[, test, and deploy Linux applications. For eg, we can place a Linux application in an lz zone and analyze it using Solaris tools run from the global zone. 2. We can change the brand of a zone in the configured state. Once a branded zone has been installed, that brand cannot be changed or moved. 3. The system must be either x64 or x86 based. 4. The lx (Linux) brand supports only the whole root model, so each installed zone will have its own copy of every file. 5. There are no limits on how much disk space can be consumed by a zone. The global administrator is responsible for space restriction. 6. Currently lx brand installer supports only Red Hat Enterprise Linux 3.x and the equivalent CentOS distributions. http://hub.opensolaris.org/bin/view/Community+Group+brandz/downloads we can download the CentOS tarball from the above link.

7. Regarding, assigning the name to be branded zone, rules is similar to a non-global zone. Output: 1. To display the arch of the system, where brandz zones are implemented. bash-3.00# arch i86pc

2. To display the release of the Solaris Operating System bash-3.00# cat /etc/release Solaris 10 10/09 s10x_u8wos_08a X86 Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 16 September 2009

3. Configuring BrandZ zone: bash-3.00# mkdir -m 700 /export/home/linux_brandz bash-3.00# zonecfg -z linux_brandz linux_brandz: No such zone configured Use 'create' to begin configuring a new zone. zonecfg:linux_brandz> create -t SUNWlx zonecfg:linux_brandz> set zonepath=/export/home/linux_brandz zonecfg:linux_brandz> add net zonecfg:linux_brandz:net> set physical=e1000g0 zonecfg:linux_brandz:net> set address=100.0.0.123 zonecfg:linux_brandz:net> end zonecfg:linux_brandz> commit zonecfg:linux_brandz> exit bash-3.00# zoneadm -z linux_brandz install -d /Desktop/centos_fs_image.tar.bz2 where -d = specifies the path of the non-native OS tarball/image. Installing zone 'linux_brandz' at root directory '/export/home/linux_brandz' from archive '/Desktop/centos_fs_image.tar.bz2' This process may take several minutes. Setting up the initial lx brand environment. System configuration modifications complete. Setting up the initial lx brand environment. System configuration modifications complete.

Installation of zone 'linux_brandz' completed successfully. Details saved to log file: "/export/home/linux_brandz/root/var/log/linux_brandz.install.1982.log" bash-3.00# zoneadm list -iv ID NAME STATUS PATH BRAND IP 0 global running / native shared - linux_brandz installed /export/home/linux_brandz lx shared bash-3.00# zoneadm -z linux_brandz boot bash-3.00# zoneadm list -iv ID NAME STATUS PATH BRAND IP 0 global running / native shared 1 linux_brandz running /export/home/linux_brandz lx shared bash-3.00# zlogin linux_brandz [Connected to zone 'linux_brandz' pts/4] Welcome to your shiny new Linux zone. - The root password is 'root'. Please change it immediately. - To enable networking goodness, see /etc/sysconfig/network.example. - This message is in /etc/motd. Feel free to change it. For anything more complicated, see: http://opensolaris.org/os/community/brandz/ You have mail. -bash-2.05b# uname -a Linux linux_brandz 2.4.21 BrandZ fake linux i686 i686 i386 GNU/Linux -bash-2.05b# hostname linux_brandz

You might also like