Sunday Aug 17, 2008

When creating zones in OpenSolaris 05.08, setting capped-memory seem to prevent the zone from booting.

-bash-3.2# zoneadm -z sparse-zone boot
zoneadm: zone 'sparse-zone': enabling system/rcap service failed: entity not
found
zoneadm: zone 'sparse-zone': call to zoneadmd failed
-bash-3.2# zonecfg -z sparse-zone info
zonename: sparse-zone
zonepath: /export/sparse-zone
brand: ipkg
autoboot: false
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
net:
        address: xxxxxx
        physical: e1000g0
        defrouter not specified
capped-memory:
        physical: 1G
        [swap: 4G]
rctl:
        name: zone.max-swap
        value: (priv=privileged,limit=4294967296,action=deny)
-bash-3.2# zonecfg -z sparse-zone verify
-bash-3.2# 

After a few futile attempts, I found that this setting requires SUNWrcap pkg which isn't available in the default installation and had to manually install the pkg from the repository. Then import and enable the manifest for it to work.

 -bash-3.2# svccfg import rcap.xml
-bash-3.2# svcs -a|grep rcap
disabled       10:23:59 svc:/system/rcap:default
-bash-3.2# svcadm enable svc:/system/rcap:default
-bash-3.2# svcs -a|grep rcap
online         10:24:28 svc:/system/rcap:default
-bash-3.2# !zo
zoneadm -z sparse-zone boot
zoneadm: zone 'sparse-zone': Unable to set route for interface lo0 to êþùþã
zoneadm: zone 'sparse-zone':
-bash-3.2#

Voila`!

This blog copyright 2009 by maddy