Virtualization in Solaris. A zone is a virtual machine inside solaris box We have two types of Zones. 1) Sparse Zone 2) whole / Big Zone Check Below images would be self-explanatory.
Global Zone 0 is the physical Solaris Host. Creating Sparse/small Zones. #zonecfg -z TestSparse-zone Promt will change as #zonecfg:TestSparse-zone>create #zonecfg:TestSparse-zone>set autoboot=true #zonecfg:TestSparse-zone>set zonepath=/export/home/TestSparse-zone #zonecfg:TestSparse-zone>add net #zonecfg:TestSparse-zone:net>set address=192.168.1.3 #zonecfg:TestSparse-zone:net>set physical=e0010g #zonecfg:TestSparse-zone:net>end zonecfg:TestSparse-zone> info zonepath: /export/TestSparse-zone autoboot: true pool: inherit-pkg-dir: dir: /lib inherit-pkg-dir: dir: /platform inherit-pkg-dir: dir: /sbin inherit-pkg-dir: dir: /usr net: address: 192.168.2.101 physical: hme0 zonecfg:TestSparse-zone> verify zonecfg:TestSparse-zone> commit zonecfg:TestSparse-zone> exit # # zoneadm list -cv ID NAME STATUS PATH 0 global running / - TestSparse-zone configured /export/home/TestSparse-zone Now we have completed the configuration of the Zone. Now we have to install Check the necessary permission on zonepath #chmod 700 /export/home/Testsparse-zone #zoneadm -z Testsparse-zone install Preparing to install zone <TestSparse-zone>. Creating list of files to copy from the global zone. Copying <2574> files to the zone. Initializing zone product registry. Determining zone package initialization order. Preparing to initialize <987> packages on the zone. Initialized <987> packages on zone. Zone <TestSparse-zone> is initialized. Installation of these packages generated warnings: <SUNWcsr SUNWdtdte> The file </export/home/TestSparse-zone/root/var/sadm/system/logs/install_log> contains a log of the zone installation. # zoneadm list -cv ID NAME STATUS PATH 0 global running / - TestSparse-zone installed /export/home/TestSparse-zone # zoneadm -z TestSparse-zone boot # zoneadm list -cv ID NAME STATUS PATH 0 global running / 1 TestSparse-zone running /export/TestSparse-zone |