L2 Cache

Behold the power of |!

User Tools

Site Tools


snipets:solaris:build-zone

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

snipets:solaris:build-zone [2014/09/30 19:35]
sjorge [packages]
snipets:solaris:build-zone [2014/10/09 22:02]
Line 1: Line 1:
-====== Build Zone for illumos-omnios ====== 
-Here are some quick and dirty notes to setup a build zone for illumos-omnios and illumos-gate. At the time of writing I was workin on OmniOS r151012. 
- 
-:!: You will need to tweak some things along the way. 
- 
-===== zonecfg ===== 
-<code bash> 
-zonecfg -z leonov 
-# past zonecfg below 
-dladm create-vnic -l trunk0 -v 300 zleonov0 
-zfs create -o quota=80G core/​vms/​zones/​leonov ; chmod 0700 /​vms/​zones/​leonov ; zoneadm -z leonov install 
-</​code>​ 
- 
-I put some cpu capping in place, feel free to leave this out. If you do decide to use this make sure to install service/​resource-cap! 12000 = 12 cores, 1000 = 1 core. 
- 
-<code bash> 
-pkg install service/​resource-cap 
-svcadm enable svc:/​system/​rcap:​default 
-</​code>​ 
- 
-<code plain zonecfg> 
-create -b 
-set zonepath=/​vms/​zones/​leonov 
-set brand=ipkg 
-set autoboot=false 
-set limitpriv=default 
-set ip-type=exclusive 
-add net 
-set physical=zleonov0 
-end 
-add rctl 
-set name=zone.cpu-cap 
-add value (priv=privileged,​limit=1200,​action=deny) 
-end 
-</​code>​ 
- 
-Now configure the zone's network and create a user account. ​ 
- 
-===== packages ===== 
-Pull in all the required packages (thanks danmcd) 
- 
-<code bash> 
-pkg install -v --no-backup-be archiver/​gnu-tar developer/​astdev ​ developer/​build/​autoconf ​ developer/​build/​automake developer/​build/​onbld developer/​gcc44 developer/​gcc44/​libgmp-gcc44 developer/​gcc44/​libmpc-gcc44 developer/​gcc44/​libmpfr-gcc44 developer/​gnu-binutils developer/​lexer/​flex developer/​library/​lint developer/​macro/​cpp developer/​object-file developer/​parser/​bison developer/​sunstudio12.1 developer/​versioning/​git developer/​versioning/​mercurial library/​nspr/​header-nspr library/​perl-5/​xml-parser library/​python-2/​lxml-26 omniti/​developer/​versioning/​subversion omniti/​library/​apr omniti/​library/​apr-util omniti/​library/​uuid omniti/​library/​serf package/​pkg/​zones-proxy print/​lp/​print-client-commands runtime/​perl-64 service/​network/​smtp/​sendmail system/​header system/​install system/​library/​boot-management system/​library/​dbus system/​library/​install system/​library/​math/​header-math system/​library/​mozilla-nss/​header-nss 
-</​code>​ 
- 
-Add a symlink for SUNWspro 
-<code bash> 
-ln -sf /​opt/​sunstudio12.1 /​opt/​SUNWspro 
-</​code>​ 
- 
  
snipets/solaris/build-zone.txt · Last modified: 2014/10/09 22:02 (external edit)