{"id":202,"date":"2010-08-12T16:24:26","date_gmt":"2010-08-12T14:24:26","guid":{"rendered":""},"modified":"2010-08-17T11:08:30","modified_gmt":"2010-08-17T09:08:30","slug":"0401-installation-container-st1","status":"publish","type":"post","link":"https:\/\/drfugazi.eu.org\/en\/0401-installation-container-st1\/","title":{"rendered":"04.01 Installation of container st1"},"content":{"rendered":"<p>Creation of container named <b>st1<\/b>, without resource control, with inherited standard directories and additionally inherited <code>\/usr\/local<\/code> dir (read only mode). Configured two network Quad Fast Ethernet cards: <b>qfe4<\/b> and <b>qfe5<\/b> in shared mode. Added ZFS pool (zpool) named <b>studmail<\/b>.<\/p>\n<pre>\r\nroot@feniks:\/home\/soft\/SKEL\/cfg# cat st1.cfg\r\ncreate -b\r\nset zonepath=\/zones\/st1\r\nset brand=native\r\nset autoboot=true\r\nset ip-type=shared\r\nadd inherit-pkg-dir\r\nset dir=\/lib\r\nend\r\nadd inherit-pkg-dir\r\nset dir=\/platform\r\nend\r\nadd inherit-pkg-dir\r\nset dir=\/sbin\r\nend\r\nadd inherit-pkg-dir\r\nset dir=\/usr\r\nend\r\nadd inherit-pkg-dir\r\nset dir=\/usr\/local\r\nend\r\nadd net\r\nset address=155.158.XX.XX\r\nset physical=qfe4\r\nend\r\nadd net\r\nset address=192.168.XX.XX\r\nset physical=qfe5\r\nend\r\nadd dataset\r\nset name=studmail\r\nend\r\n<\/pre>\n<p>Setting up zone configuration with file<\/p>\n<pre>\r\nroot@feniks:\/home\/soft\/SKEL\/cfg# zonecfg -z st1 -f st1.cfg\r\n<\/pre>\n<p>Installation of container <b>st1<\/b><\/p>\n<pre>\r\nroot@feniks:\/home\/soft\/SKEL\/cfg# zoneadm -z st1 install\r\nPreparing to install zone <st1>.\r\nCreating list of files to copy from the global zone.\r\nCopying <3507> files to the zone.\r\nInitializing zone product registry.\r\nDetermining zone package initialization order.\r\nPreparing to initialize <374> packages on the zone.\r\nInitialized <374> packages on zone.                                \r\nZone <st1> is initialized.\r\nInstallation of <3> packages was skipped.\r\nThe file <\/zones\/st1\/root\/var\/sadm\/system\/logs\/install_log> contains a log of the zone installation.\r\n<\/pre>\n<p>Initial run of zone and entering zone console<\/p>\n<pre>\r\nroot@feniks:\/home\/soft\/SKEL\/cfg# cd\r\nroot@feniks:~# zoneadm -z st1 boot                  \r\nroot@feniks:~# zlogin -C -e+ st1\r\n[Connected to zone 'st1' console]\r\n<\/pre>\n<p>I intentionally redefined <code>escape character<\/code> (-e+), because default is <code>~.<\/code>, which caused either disconnect from my Linux terminal which I use to connect to server. The construction <code>+.<\/code> will disconnect zone console without breaking my terminal connection. You can omit the initial setup of zone, when you create <code>\/etc\/sysidcfg<\/code>file with all needed data and put it in the zone before first boot. More about <code>sysidcfg<\/code> you will find in documentation. To get benefits of <code>\/etc\/sysidcfg<\/code> file you need to set up zone to ready state, copy file to proper location and then boot zone.<\/p>\n<pre>\r\nroot@feniks:~# zoneadm -z st1 ready\r\nroot@feniks:~# cp sysidcfg \/zones\/st1\/root\/etc\r\nroot@feniks:~# zoneadm -z st1 boot                  \r\nroot@feniks:~# zlogin -C -e+ st1\r\n<\/pre>\n<p>When you finish system identification with use of file or by hand, you will see message like this:<\/p>\n<pre>\r\nSystem identification is completed.\r\n\r\nrebooting system due to change(s) in \/etc\/default\/init\r\n\r\n[NOTICE: Zone rebooting]\r\n\r\nSunOS Release 5.10 Version Generic_141444-09 64-bit\r\nCopyright 1983-2009 Sun Microsystems, Inc.  All rights reserved.\r\nUse is subject to license terms.\r\nHostname: st1\r\nReading ZFS config: done.\r\nMounting ZFS filesystems: (4\/4)\r\n<\/pre>\n<p>You can now finish console session<\/p>\n<pre>\r\nst1 console login: +.\r\n[Connection to zone 'st1' console closed]\r\n<\/pre>\n<p>And next login to zone with <code>zlogin<\/code> command.<\/p>\n<pre>\r\nroot@feniks:~# zlogin st1\r\n[Connected to zone 'st1' pts\/4]\r\nSun Microsystems Inc.\tSunOS 5.10\tGeneric\tJanuary 2005\r\n# \r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Creation of container named <b>st1<\/b>, without resource control, with inherited standard directories and additionally inherited <code>\/usr\/local<\/code> dir (read only mode). Configured two network Quad Fast Ethernet cards: <b>qfe4<\/b> and <b>qfe5<\/b> in shared mode. Added ZFS pool (zpool) named <b>studmail<\/b>.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[],"tags":[10,28,27],"jetpack_publicize_connections":[],"acf":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7M9Tz-3g","jetpack-related-posts":[{"id":200,"url":"https:\/\/drfugazi.eu.org\/en\/0401-instalacja-kontenera-st1\/","url_meta":{"origin":202,"position":0},"title":"04.01 Instalacja kontenera st1","author":"drfugazi","date":"Thursday August 12th, 2010","format":false,"excerpt":"Tworzenie kontenera o nazwie st1, bez kontroli zasob\u00f3w, z dziedziczonymi katalogami standardowymi i dodatkowo z dziedziczonym \/usr\/local (w trybie tylko do odczytu). Skonfigurowane dwie karty sieciowe: qfe4 i qfe5 w trybie wsp\u00f3\u0142dzielonym oraz dodana pula ZFS (zpool) o nazwie studmail.","rel":"","context":"In \"Kontenery\"","block_context":{"text":"Kontenery","link":"https:\/\/drfugazi.eu.org\/en\/tag\/kontenery\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":282,"url":"https:\/\/drfugazi.eu.org\/en\/przygotowanie-kontenera\/","url_meta":{"origin":202,"position":1},"title":"(Polski) Przygotowanie kontenera dla OpenDJ","author":"drfugazi","date":"Friday July  8th, 2011","format":false,"excerpt":"Przygotowanie kontenera (Solaris zone) dla serwera us\u0142ug katalogowych OpenDJ Uruchamiam format aby system wykry\u0142 dyski i pokaza\u0142 ich WWN: # format Searching for disks...done c4t600A0B80002ACF5A000015954E16BDE3d0: configured with capacity of 15.00GB c4t600A0B80002ACF5A000015974E16BE5Fd0: configured with capacity of 15.00GB c4t600A0B80002ACF5A000015994E16BEDBd0: configured with capacity of 15.00GB Tworz\u0119 zpool\u0119 raidz o nazwie zldapdj1, na kt\u00f3rej\u2026","rel":"","context":"In &quot;LDAP&quot;","block_context":{"text":"LDAP","link":"https:\/\/drfugazi.eu.org\/en\/category\/ldap\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":212,"url":"https:\/\/drfugazi.eu.org\/en\/how-remove-dataset-solaris-zone-and-mount-it-lofs\/","url_meta":{"origin":202,"position":2},"title":"How to remove dataset from Solaris zone and mount it as lofs","author":"drfugazi","date":"Tuesday August 17th, 2010","format":false,"excerpt":"Because of building mail system I need to export ZFS filesystem via NFS to other node, where postfix with deliver will save messages to mail boxes. As you can see in this installation transcript I configured whole zpool \"studmail\" as ZFS dataset for zone st1. Unfortunatelly, you can not simply\u2026","rel":"","context":"In \"Solaris\"","block_context":{"text":"Solaris","link":"https:\/\/drfugazi.eu.org\/en\/tag\/solaris\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":213,"url":"https:\/\/drfugazi.eu.org\/en\/jak-zamienic-w-kontenerze-dataset-na-lofs\/","url_meta":{"origin":202,"position":3},"title":"Jak zamieni\u0107 w kontenerze dataset na lofs","author":"drfugazi","date":"Tuesday August 17th, 2010","format":false,"excerpt":"Poniewa\u017c konfiguruj\u0119 system pocztowy, potrzebuj\u0119 wyeksportowa\u0107 filesystem ZFS przez NFS do innego noda, gdzie postfix poprzez delivera b\u0119dzie zapisywa\u0142 wiadomo\u015bci do skrzynek. Jak wida\u0107 w tym zapisie sesji, skonfigurowa\u0142em ca\u0142\u0105 zpoole \"studmail\" jako dataset ZFS dla kontenera st1. Niestety w prosty spos\u00f3b nie da si\u0119 wsp\u00f3\u0142dzieli\u0107 systemu plik\u00f3w ZFS przez\u2026","rel":"","context":"In \"Kontenery\"","block_context":{"text":"Kontenery","link":"https:\/\/drfugazi.eu.org\/en\/tag\/kontenery\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":203,"url":"https:\/\/drfugazi.eu.org\/en\/0402-configuration-container-st1\/","url_meta":{"origin":202,"position":4},"title":"04.02 Configuration of container st1","author":"drfugazi","date":"Thursday August 12th, 2010","format":false,"excerpt":"After installation and initial configuration of st1 container you need to look on working services and disable those, which are not necessary. But at first I will set up more comfortable environment to work. I will change default shell to zsh and home directory of root user. I will use\u2026","rel":"","context":"In \"Solaris\"","block_context":{"text":"Solaris","link":"https:\/\/drfugazi.eu.org\/en\/tag\/solaris\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":249,"url":"https:\/\/drfugazi.eu.org\/en\/","url_meta":{"origin":202,"position":5},"title":"openssl-1.0.0d","author":"drfugazi","date":"Wednesday May 18th, 2011","format":false,"excerpt":"Troch\u0119 o OpenSSL i opis kompilacji wersji 0.9.8 opisywa\u0142em ju\u017c wcze\u015bniej, nie b\u0119d\u0119 wi\u0119c tego powiela\u0142. Tutaj jest opis konfiguracji i kompilacji wersji 1.0.0d, przy u\u017cyciu skryptu, kt\u00f3ry znajduje si\u0119 w za\u0142\u0105czeniu. Nale\u017cy u\u017cy\u0107 GNU Make (gmake), bo pr\u00f3ba kompilacji dmake w tych nowszych wersjach mo\u017ce sko\u0144czy\u0107 si\u0119 b\u0142\u0119dem.","rel":"","context":"In \"Compilation\"","block_context":{"text":"Compilation","link":"https:\/\/drfugazi.eu.org\/en\/tag\/kompilacja\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/posts\/202"}],"collection":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/comments?post=202"}],"version-history":[{"count":0,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/posts\/202\/revisions"}],"wp:attachment":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/media?parent=202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/categories?post=202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/tags?post=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}