Version 3.1-en Solaris 10 Container Guide - 3.1 Effective: 30/11/2009
4.5. Management and monitoring............................................................................................................55
4.5.1. Using boot arguments in zones............................................................................................55
4.5.2. Consolidating log information of zones.................................................................................56
4.5.3. Monitoring zone workload.....................................................................................................56
4.5.4. Extended accounting with zones..........................................................................................56
4.5.5. Auditing operations in the zone............................................................................................56
4.5.6. DTrace of processes within a zone................................................................................. .....57
4.6. Resource management....................................................................................................................58
4.6.1. Types of resource management...........................................................................................58
4.6.2. CPU resources.....................................................................................................................58
4.6.2.1. Capping of CPU time for a zone...................................................................................................................58
4.6.2.2. General resource pools................................................................................................................................58
4.6.2.3. Fair share scheduler (FSS)...........................................................................................................................59
4.6.2.4. Fair share scheduler in a zone......................................................................................................................59
4.6.2.5. Dynamic resource pools...............................................................................................................................59
4.6.2.6. Lightweight processes (LWP).......................................................................................................................59
4.6.3. Limiting memory resources................................................................................................ ..60
4.6.3.1. Assessing memory requirements for global and local zones........................................................................60
4.6.3.2. Limiting virtual memory.................................................................................................................................60
4.6.3.3. Limiting a zone's physical memory requirement............................................................................................60
4.6.3.4. Limiting locked memory................................................................................................................................61
4.6.4. Network limitation (IPQoS)...................................................................................................61
4.6.5. IPC limits (Semaphore, shared memory, message queues)............................................. ...61
4.6.6. Privileges and resource management..................................................................................61
4.7. Solaris container navigator...............................................................................................................62
5. Cookbooks...............................................................................................................................................65
5.1. Installation and configuration............................................................................................................65
5.1.1. Configuration files.................................................................................................................65
5.1.2. Special commands for zones............................................................................................ ...66
5.1.3. Root disk layout....................................................................................................................68
5.1.4. Configuring a sparse root zone: required Actions.................................................................69
5.1.5. Configuring a whole root zone: required Actions..................................................................70
5.1.6. Zone installation...................................................................................................................71
5.1.7. Zone initialization with sysidcfg....................................................................................... .....71
5.1.8. Uninstalling a zone...............................................................................................................72
5.1.9. Configuration and installation of a Linux branded zone with CentOS...................................72
5.1.10. Configuration and installation of a Solaris 8/Solaris 9 container.........................................73
5.1.11. Optional settings.................................................................................................................73
5.1.11.1. Starting zones automatically.......................................................................................................................73
5.1.11.2. Changing the set of privileges of a zone.....................................................................................................73
5.1.12. Storage within a zone.........................................................................................................74
5.1.12.1. Using a device in a local zone....................................................................................................................74
5.1.12.2. The global zone supplies a file system per lofs to the local zone................................................................74
5.1.12.3. The global zone mounts a file system when the local zone is booted.........................................................75
5.1.12.4. The local zone mounts a UFS file system from a device............................................................................75
5.1.12.5. User level NFS server in a local zone.........................................................................................................76
5.1.12.6. Using a DVD drive in the local zone............................................................................................................76
5.1.12.7. Dynamic configuration of devices...............................................................................................................76
5.1.12.8. Several zones share a file system..............................................................................................................78
5.1.12.9. ZFS in a zone.............................................................................................................................................78
5.1.12.10. User attributes for ZFS within a zone........................................................................................................78
5.1.13. Configuring a zone by command file or template........................................................... ....79
5.1.14. Automatic quick installation of zones..................................................................................79
5.1.15. Accelerated automatic creation of zones on a ZFS file system..........................................80
5.1.16. Zones hardening.................................................................................................................80
IV