Non-Global Zones in Solaris 11.1 (Part – 4)

Continuing from Previous post (https://ervikrant06.wordpress.com/2014/06/15/non-global-zones-in-solaris-11-1-part-3/). Flexible configuration is more like the sparse non-global zone in Solaris 10.

Step 1 : Checked the status of zone.

root@solaris11:~# zoneadm list -p
0:global:running:/::solaris:shared:-:none
10:testzone1:running:/zones/testzone1:69260524-71af-4ca8-e2e1-eb22949f3f10:solaris:excl:-:none

Step 2 : Set file-mac-profile property to flexible-configuration and performed the reboot of zone.

root@solaris11:~# zonecfg -z testzone1 set file-mac-profile=flexible-configuration

root@solaris11:~# zoneadm -z testzone1 reboot

Step 3 : Compare the below output with Step 1.

root@solaris11:~# zoneadm list -p
0:global:running:/::solaris:shared:-:none
11:testzone1:running:/zones/testzone1:69260524-71af-4ca8-e2e1-eb22949f3f10:solaris:excl:R:flexible-configuration

Step 4 : Verification time. We are able to touch files in /etc/ and /root file systems but /export and /opt are still in read only mode.

root@testzone1:~# touch /export/file1
touch: cannot create /export/file1: Read-only file system

root@testzone1:~# touch /etc/file1
root@testzone1:~# touch /var/file1

Service status persist across the reboots in non-global zone now compared to strict and fixed-configuration.

root@testzone1:~# svcs -a | grep -i ssh
online 16:35:58 svc:/network/ssh:default
root@testzone1:~# svcadm disable ssh
root@testzone1:~# logout

[Connection to zone ‘testzone1’ pts/2 closed]
root@solaris11:~# zoneadm -z testzone1 reboot

root@solaris11:~# zlogin testzone1
[Connected to zone ‘testzone1’ pts/2]
Oracle Corporation SunOS 5.11 11.1 September 2012

root@testzone1:~# svcs -a | grep -i ssh
disabled 16:39:21 svc:/network/ssh:default

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s