In this step by step tutorial I will show you how to create a template that will be used to create all the others zones. The idea is to customize the template and inheritate all the customization in the new zones based on cloning.
- Creating a ZFS filesystem hosting the zones -MANDATORY-
- Configuration of the zone
Remark : I did the creation of a zone for Identity Manager. I needed to install Tomcat, MySQL and IDM in /opt. It is maybe not a good idea to inherit /opt because in this case, the filesystem is read only and you cannot add any sofware ! I think it is more interesting in the case of /usr...
- Installation of the zone
Next Steps: Boot the zone, then log into the zone console
(zlogin -C) to complete the configuration process
- Customization of the zone
open a console(zlogin -C sparse)
type 1x enter
If you play with sysidcfg you don't have to enter these informations.
This is the output from zlogin -C sparse :
exit and halt the zone
- Creation(cloning) of a zone based on sparse
modify identity-manager-80 and change the path to the zone and the ip address
clone the zone
The messages are only warnings and can be discarded !
The creation of the new zone is almost immediate.
- Starting the new cloned zone
open a console
same as before
To zone is ready to be used and / share contains the software that is needed. If you didn't notice /share does not reserve disk space in the local zone. The disk allocation was made into the global zone.
- ZFS filesystems