The templates mentiond are in /opt/site installed at server build pkg is zone-stuff
1. Get SAN disk ref
2. copy template zonecfg & edit, change the storage ref and the vlan id:
create -b
set brand=solaris
add rootzpool
add storage dev:dsk/xxxx
end
set zonepath=/zones/%{zonename}
set autoboot=true
add fs
set dir=/etc/globalname
set special=/etc/globalname
set type=lofs
add options ro
end
set ip-type=exclusive
add anet
set configure-allowed-address=true
set linkname=net0
set lower-link=aggr0
set vlan-id=xxx
end
*Note can't enable compression or dedup on the zfs here, do it in the manifest.
3.Copy the template sc profile and edit
Default password is the usual temporary initial password.
Check that the network settings are correct
The name of the profile should be zonename-sc-profile.xml so that the backup script finds it.
4. Copy the template manifest and edit
Add /remove packages as needed, the default is the minimum.
Checkout the repo on ports 8082 and 81, if it's a webdev box tomcat/apache & build user stuff will be required:
These should always be there:
<name>pkg://firstboot/after-install-scripts</name>
<name>pkg://firstboot/zone-first-boot-script</name>
<name>pkg://firstboot/teamunix-stuff</name>
Other examples:
<name>pkg://firstboot/build-stuff</name>
<name>pkg://sw/web-app-depend</name>
<name>pkg://sw/tomcat8</name>
<name>pkg://sw/tomcat7</name>
<name>pkg://sw/apache-64bit-event-dependancies-no-ssl</name>
The name of the manifest should be zonename-manifest.xml so that the backup script finds it.
5. zonecfg -z zonename -f zonename.cfg
6. zoneadm -z zonename install -m zonename-manifest.xml -c zonename-sc_profile.xml
zoneadm -z zonename boot
zlogin -C zonename
svcadm enable ipfilter
change the passwords
7. Check everything is OK with the zone.
8. Double check globalzone mounts a directory from the thumpers and start backing up the zone using cron:
Examples:
45 21 * * * /opt/site/backup-zone.sh rpool/zones turk-log z
45 22 * * * /opt/site/backup-zone.sh rpool/zones aiserver z
45 23 * * * /opt/site/backup-zone.sh datapool/zones/aiserver/datapool aiserver p
Backup script takes a snapshot of the zone and copies the profile, the cfg and the snapshot to the thumper. For a pool it just backs up the pool.