Tuesday, June 24, 2008

Solaris Zone Config File

Solaris Zone config file; then execute “zonecfg -z zoneA -f /var/tmp/zoneA_config” to configure the non-global zone.

To get the config from existing zone;
# zoneadm -z zoneB halt
# zonecfg -z zoneB export > /var/tmp/zoneB_config
# zoneadm -z zoneB boot

Zone Config file
# cat zoneA_config
create -b
set zonepath=/export/home/zones/zoneA
set autoboot=true
set pool=cwp1-pool
set ip-type=shared
add inherit-pkg-dir
set dir=/lib
end
add inherit-pkg-dir
set dir=/platform
end
add inherit-pkg-dir
set dir=/sbin
end
add inherit-pkg-dir
set dir=/usr
end
add inherit-pkg-dir
set dir=/opt/zoneshare
end
add fs
set dir=/opt/precom
set special=/opt/cwpqv04
set type=lofs
add options rw
add options nodevices
end
add net
set address=147.243.251.57
set physical=e1000g0
end
add net
set address=10.188.149.57
set physical=e1000g1
end
add net
set address=10.190.149.57
set physical=e1000g3
end
add attr
set name=comment
set type=string
set value="my server"
end

No comments: