{"id":1947,"date":"2011-11-22T17:39:33","date_gmt":"2011-11-22T15:39:33","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=1947"},"modified":"2014-03-18T11:55:49","modified_gmt":"2014-03-18T09:55:49","slug":"%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%ba%d0%b0-%d0%b7%d0%be%d0%bd%d1%8b","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=1947","title":{"rendered":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u043e\u043d\u044b"},"content":{"rendered":"<p>\u0415\u0441\u043b\u0438 \u043a\u0440\u0430\u0442\u043a\u043e &#8211; \u0442\u043e \u0437\u043e\u043d\u044b, \u044d\u0442\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u0433\u043e\u0441\u0442\u0435\u0432\u043e\u0439 \u041e\u0421. \u0411\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043e\u043d\u0438 \u043f\u043e\u0445\u043e\u0436\u0438 \u043d\u0430 <strong>jail<\/strong> \u0438\u0437 <strong>FreeBSD<\/strong>, \u043d\u043e \u043f\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0443 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043b\u0443\u0447\u0448\u0435. \u041c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u0441 <strong>Xen<\/strong>, \u043d\u043e \u0432 \u0437\u043e\u043d\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u041e\u0421 <strong>Solaris<\/strong> \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u043a\u0430\u043a\u043e\u0439 \u0433\u043e\u0441\u0442\u0435\u0432\u0430\u044f.<\/p>\n<p><em><strong><span style=\"color: #008000;\">\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434<\/span><\/strong><\/em>: <strong>Solaris 10<\/strong><\/p>\n<p><!--more--><\/p>\n<p><strong><span style=\"color: #ff0000;\">1) \u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435<\/span><\/strong><\/p>\n<p>\u041f\u0430\u0440\u0443 \u0441\u043b\u043e\u0432 \u0441\u043a\u0430\u0436\u0443 \u043e \u0437\u043e\u043d\u0430\u0445, \u0438\u0445 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0438. \u0412\u0441\u0435\u0433\u0434\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0434\u043d\u0430 \u0437\u043e\u043d\u0430 &#8211; <strong>global<\/strong> \u0441 <strong>ID=0<\/strong>. \u042d\u0442\u0430 \u0437\u043e\u043d\u0430 &#8211; \u0441\u0430\u043c\u0430 \u041e\u0421. \u0412\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u043e\u043d\u044b, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043d\u0435\u0439, \u0431\u0443\u0434\u0443\u0442 \u043d\u043e\u0441\u0438\u0442\u044c \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440 \u043d\u0435\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445. \u0412\u0441\u0435 \u043d\u0435\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u043e\u043d\u044b \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430 \u0438 \u043c\u043e\u0433\u0443\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0441\u0442\u0435\u043a. \u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f \u0437\u043e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u043b\u044e\u0431\u044b\u043c\u0438 \u0437\u043e\u043d\u0430\u043c\u0438 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e. \u0412\u0441\u0435 \u0437\u043e\u043d\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u044f\u0434\u0440\u043e<\/p>\n<p>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0437\u043e\u043d\u0430\u043c\u0438 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u044b <strong>zonename, zoneadm, zonecfg<\/strong>.<\/p>\n<p><em><strong><span style=\"color: #ff6600;\">zonename<\/span><\/strong><\/em> &#8211; \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0442\u043e\u0433\u043e, \u0432 \u043a\u0430\u043a\u043e\u0439 \u0437\u043e\u043d\u0435 \u0432\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0435\u0441\u044c \u0441\u0435\u0439\u0447\u0430\u0441.<br \/>\n<em><strong><span style=\"color: #ff6600;\">zonecfg<\/span><\/strong><\/em> &#8211; \u0441\u043b\u0443\u0436\u0438\u0442 \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0437\u043e\u043d\u044b,<br \/>\n<em><strong><span style=\"color: #ff6600;\">zoneadm<\/span><\/strong><\/em> &#8211; \u0434\u043b\u044f \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u043e\u043d\u044b (\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435, \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f, \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, &#8230;)<\/p>\n<p><strong><span style=\"color: #ff0000;\">2) \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u041f\u041e \u0434\u043b\u044f \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0437\u043e\u043d\u044b<\/span><\/strong><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0432\u044b\u0431\u0438\u0440\u0430\u043b\u0438 \u0442\u0438\u043f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 core, \u0442\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0437\u043e\u043d \u0443 \u0432\u0430\u0441 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430. \u0414\u043b\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u044b \u0442\u0430\u043a\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b:\u00a0<strong>SUNWluzone,\u00a0SUNWzoner,\u00a0SUNWzoneu,\u00a0SUNWpool,\u00a0SUNWpoolr,\u00a0SUNWlur, SUNWluu<\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">3) \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u043e\u043d\u044b.<\/span><\/strong><\/p>\n<p>\u0414\u043b\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e &#8220;\u0441\u0430\u0436\u0430\u0442\u044c&#8221; \u0437\u043e\u043d\u0443 \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0444\u0441. \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043e\u043d\u0443\u044e:<\/p>\n<p><code># zfs create rpool\/test<br \/>\n# zfs list<br \/>\nNAME USED AVAIL REFER MOUNTPOINT<br \/>\nrpool 2,26G 13,4G 42,5K \/rpool<br \/>\nrpool\/ROOT 704M 13,4G 31K legacy<br \/>\nrpool\/ROOT\/s10 704M 13,4G 704M \/<br \/>\nrpool\/dump 1,00G 13,4G 1,00G -<br \/>\nrpool\/export 63K 13,4G 32K \/export<br \/>\nrpool\/export\/home 31K 13,4G 31K \/export\/home<br \/>\nrpool\/swap 583M 13,9G 168K -<br \/>\nrpool\/test 31K 13,4G 31K \/rpool\/test<br \/>\n# zfs set mountpoint=\/test rpool\/test<br \/>\n# zfs list<br \/>\nNAME USED AVAIL REFER MOUNTPOINT<br \/>\nrpool 2,26G 13,4G 43,5K \/rpool<br \/>\nrpool\/ROOT 704M 13,4G 31K legacy<br \/>\nrpool\/ROOT\/s10 704M 13,4G 704M \/<br \/>\nrpool\/dump 1,00G 13,4G 1,00G -<br \/>\nrpool\/export 63K 13,4G 32K \/export<br \/>\nrpool\/export\/home 31K 13,4G 31K \/export\/home<br \/>\nrpool\/swap 583M 13,9G 168K -<br \/>\nrpool\/test 31K 13,4G 31K \/test<\/code><\/p>\n<p>\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0435\u0449\u0451 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u043f\u0430\u043f\u043a\u0443 \u0441 \u0437\u043e\u043d\u043e\u0439 0700:<\/p>\n<p><code>#chmor 0700 \/test<\/code><\/p>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0437\u043e\u043d\u044b. \u0427\u0442\u043e \u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0437\u043e\u043d\u0443 (\u0432 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0438\u043c\u044f \u0437\u043e\u043d\u044b \u0431\u0443\u0434\u0435\u0442 <strong>test<\/strong>), \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0442\u0430\u043a\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<p><code># zonecfg -z test<br \/>\ntest: No such zone configured<br \/>\nUse 'create' to begin configuring a new zone.<\/code><\/p>\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 2 \u0442\u0438\u043f\u0430 \u0437\u043e\u043d\u044b: <strong>Sparse Root Zones<\/strong> \u0438 <strong>Whole Root Zones<\/strong>. \u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0437\u043e\u043d\u0443, \u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 (<strong>\/lib, \/platform, \/sbin, \/usr<\/strong>) \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u0437\u043e\u043d\u044b, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0432 \u0441\u0430\u043c\u043e\u0439 \u0437\u043e\u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f. \u041a\u0430\u043a\u0430\u044f \u0432\u044b\u0433\u043e\u0434\u0430 &#8211; \u0437\u043e\u043d\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u043c\u0435\u0441\u0442\u0430. \u041a\u0430\u043a\u0438\u0435 \u043c\u0438\u043d\u0443\u0441\u044b &#8211; \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432 \u0437\u043e\u043d\u0435 \u0441\u043e\u0444\u0442 (\u0438\u0431\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 <strong>\/usr<\/strong>) \u043d\u0443 \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438. \u0412\u0442\u043e\u0440\u043e\u0439 \u0436\u0435 \u0442\u0438\u043f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0435\u0434\u0438\u043d\u0438\u0446\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u0441\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0441\u0432\u043e\u0438.<\/p>\n<p><em><strong><span style=\"color: #ff6600;\">\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/span><\/strong><\/em><\/p>\n<p>\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 &#8211; \u043d\u0435\u043b\u044c\u0437\u044f.<\/p>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0437\u043e\u043d\u044b <strong>spare<\/strong>. \u0427\u0442\u043e \u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c <strong>whole root<\/strong> \u0437\u043e\u043d\u0443, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u043b\u044e\u0447 <strong>-b<\/strong>:<\/p>\n<p><code>zonecfg:test&gt; create -b<\/code><\/p>\n<p>\u0427\u0442\u043e \u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c \u043a\u0430\u043a\u043e\u0439 \u0442\u0438\u043f \u0437\u043e\u043d\u044b, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0437\u043e\u043d\u0435:<\/p>\n<p><code>zonecfg:test&gt; info<br \/>\nzonename: test<br \/>\nzonepath:<br \/>\nbrand: native<br \/>\nautoboot: false<br \/>\nbootargs:<br \/>\npool:<br \/>\nlimitpriv:<br \/>\nscheduling-class:<br \/>\nip-type: shared<br \/>\nhostid:<br \/>\ninherit-pkg-dir:<br \/>\ndir: \/lib<br \/>\ninherit-pkg-dir:<br \/>\ndir: \/platform<br \/>\ninherit-pkg-dir:<br \/>\ndir: \/sbin<br \/>\ninherit-pkg-dir:<br \/>\ndir: \/usr<\/code><\/p>\n<p>\u042d\u0442\u043e <strong>spare<\/strong> \u0437\u043e\u043d\u0430, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 <strong>inherit-pkg-dir<\/strong>.<\/p>\n<p><em><strong><span style=\"color: #ff6600;\">\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/span><\/strong><\/em><\/p>\n<p>\u041f\u0440\u0438\u044f\u0442\u043d\u043e\u0439 \u043d\u043e\u0432\u043e\u0441\u0442\u044c\u044e \u0431\u0443\u0434\u0435\u0442 \u0443\u0437\u043d\u0430\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u0432 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434.<\/p>\n<p>\u0427\u0442\u043e \u0431\u044b \u0437\u043e\u043d\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b\u0430\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<\/p>\n<p><code>zonecfg:test&gt; set autoboot=true<\/code><\/p>\n<p>\u041f\u0443\u0442\u044c \u043a \u043a\u043e\u0440\u043d\u044e \u0437\u043e\u043d\u044b<\/p>\n<p><code>zonecfg:test&gt; set zonepath=\/test<\/code><\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u0435\u0442\u044c:<\/p>\n<p><code>zonecfg:test&gt; add net<br \/>\nzonecfg:test:net&gt;<br \/>\nzonecfg:test:net&gt; set physical=e1000g0<br \/>\nzonecfg:test:net&gt; set address=10.5.5.134\/24<br \/>\nzonecfg:test:net&gt; end<\/code><\/p>\n<p><em><strong><span style=\"color: #ff6600;\">\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/span><\/strong><\/em><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u043e\u043d, \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <strong>ip-type: shared<\/strong> (\u0432 <strong>Solaris 10<\/strong> &#8211; \u044d\u0442\u043e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0430 \u0432\u043e\u0442 \u0432 <strong>Solaris 11 Express<\/strong> &#8211; \u0441\u0442\u043e\u0438\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <strong>ip-type: exclusive<\/strong>, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0434\u043d\u0443 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043e\u0434\u043d\u043e\u0439 \u0437\u043e\u043d\u0435) :<\/p>\n<p><code>zonecfg:test&gt;set ip-type=shared<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u043d\u0430\u0448\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f:<\/p>\n<p><code>zonecfg:test&gt; verify<br \/>\nzonecfg:test&gt; commit<br \/>\nzonecfg:test&gt; exit<\/code><\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0430\u0448\u0438\u0445 \u0437\u043e\u043d<\/p>\n<p><code># zoneadm list -cv<br \/>\nID NAME STATUS PATH BRAND IP<br \/>\n0 global running \/ native shared<br \/>\n- test configured \/test native shared<\/code><\/p>\n<p>\u041d\u0430\u0448\u0430 \u0437\u043e\u043d\u0430 \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0430, \u043d\u043e \u043d\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430. \u0422\u0430\u043a \u0436\u0435 \u0435\u0439 \u043d\u0435 \u043f\u0440\u0438\u0441\u0432\u043e\u0435\u043d \u043d\u0438\u043a\u0430\u043a\u043e\u0439 <strong>ID<\/strong>.<\/p>\n<p><strong><em><span style=\"color: #ff6600;\">\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0437\u043e\u043d\u044b \u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u0438.<\/span><\/em><\/strong><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u0432\u043d\u0435\u0441\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433 \u0437\u043e\u043d\u044b, \u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440: \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u0437\u043e\u043d\u0443 \u043d\u043e\u0432\u044b\u0439 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0430\u0434\u0430\u043f\u0442\u0435\u0440.<\/p>\n<p><code># zonecfg -z myzone \"add net; set physical=myvnic; set address=192.168.1.1; end\"<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">4) \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/span><\/strong><\/p>\n<p>\u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0437\u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u043b\u0443\u0436\u0431\u0430 <strong>zones<\/strong>. \u0422\u0430\u043a \u0443\u0436 \u0441\u043b\u043e\u0436\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0441\u043b\u0443\u0436\u0431\u0430 <strong>zones<\/strong> &#8211; \u043d\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430. \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u043c \u044d\u0442\u0443 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e:<\/p>\n<p><code># svcs -a | grep zone<br \/>\ndisabled 17:18:16 svc:\/system\/zones:default<br \/>\n# svcadm enable zones<br \/>\n# svcs -a | grep zone<br \/>\nonline 10:47:08 svc:\/system\/zones:default<\/code><\/p>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0437\u043e\u043d\u044b:<\/p>\n<p><code># zoneadm -z test install<br \/>\nPreparing to install zone .<br \/>\nCreating list of files to copy from the global zone.<br \/>\nCopying files to the zone.<br \/>\nInitializing zone product registry.<br \/>\nDetermining zone package initialization order.<br \/>\nPreparing to initialize packages on the zone.<br \/>\nInitialized packages on zone.<br \/>\nZone is initialized.<br \/>\nThe file contains a log of the zone installation.<br \/>\n<\/code><br \/>\n\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438:<\/p>\n<p><strong><span style=\"color: #ff0000;\">I)<\/span><\/strong><br \/>\n<code>ERROR: zones not available on this system<\/code><\/p>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435: \u043f\u0435\u0440\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0437\u0430\u043d\u043e\u0432\u043e \u043f\u0430\u043a\u0435\u0442 <strong>SUNWluzone<\/strong> \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0437\u0430\u043d\u043e\u0432\u043e \u043f\u0440\u043e\u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0442\u044c \u0437\u043e\u043d\u0443:<\/p>\n<p><code># pkgadd -d .\/ SUNWluzone<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">II)<\/span><\/strong><br \/>\n<code>zoneadm: zone 'test': zone is incomplete; uninstall required.<\/code><\/p>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435: \u0443\u0434\u0430\u043b\u0438\u0442\u0435 \u0437\u043e\u043d\u0443 \u0438 \u0437\u0430\u043d\u043e\u0432\u043e \u043f\u0440\u043e\u0438\u043d\u0441\u0442\u0430\u043b\u044c\u0442\u0435:<\/p>\n<p><code># zoneadm -z test uninstall<br \/>\nAre you sure you want to uninstall zone test (y\/[n])? y<br \/>\n# zoneadm -z test install<br \/>\nPreparing to install zone &lt;test&gt;.<br \/>\nCreating list of files to copy from the global zone.<br \/>\n...<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0437\u043e\u043d\u0443:<\/p>\n<p><code>#zoneadm -z test boot<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">5) \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f.<\/span><\/strong><\/p>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0437\u043e\u043d\u0430 &#8211; \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0435\u0434\u0438\u043d\u0438\u0446\u0430, \u0442\u043e \u0435\u0451 \u043d\u0443\u0436\u043d\u043e \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a \u0436\u0435 \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043a\u0430\u043a \u0438 \u041e\u0421 \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435: \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u044f\u0437\u044b\u043a, \u0440\u0430\u0441\u043a\u043b\u0430\u0434\u043a\u0443, \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u0440\u0443\u0442\u0430,&#8230; \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043b\u043e\u0433\u0438\u043d\u0438\u043c\u0441\u044f \u0432 \u0437\u043e\u043d\u0443 &#8220;\u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e&#8221;. \u0412 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0437\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u044b\u0439\u0442\u0438 \u0438\u0437 &#8220;\u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430&#8221; \u0441\u043b\u0435\u0433\u043a\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u043e (\u043f\u0440\u0438 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u044f \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u044b\u043b\u0435\u0442\u0430\u043b \u0438\u0437 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430). \u0418 \u0442\u0430\u043a:<\/p>\n<p><code># zlogin -C test<br \/>\n[Connected to zone 'test' console]<\/code><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u043c \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u0441\u043b\u0435\u0434\u0443\u044f \u0437\u0430 \u043c\u0430\u0441\u0442\u0435\u0440\u043e\u043c. \u041f\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044e \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0439\u0442\u0438 \u043f\u043e\u0434 root&#8217;\u043e\u043c \u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u044e\u0437\u0435\u0440\u0430, \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0432 \u0435\u043c\u0443 \u043f\u0430\u0440\u043e\u043b\u044c, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.<br \/>\n\u0414\u043b\u044f \u0432\u044b\u0445\u043e\u0434\u0430 \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044e: \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u0442\u0435 <strong><span style=\"color: #ff0000;\">Enter<\/span><\/strong> \u043d\u0430 \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0443, \u043f\u043e\u0442\u043e\u043c \u0432\u0432\u043e\u0434\u0438\u0442\u0435 \u0442\u0438\u043b\u044c\u0434\u0443 <strong><span style=\"color: #ff0000;\">~<\/span><\/strong> \u0438 \u0437\u0430 \u043d\u0435\u0439 \u0442\u043e\u0447\u043a\u0443<strong><span style=\"color: #ff0000;\"> .<\/span><\/strong><br \/>\n\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0437\u043e\u043d\u043e\u0439, \u043a\u0430\u043a \u0441 \u043e\u0431\u044b\u0447\u043d\u043e \u041e\u0421: \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u041f\u041e, \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0442.\u0434.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0415\u0441\u043b\u0438 \u043a\u0440\u0430\u0442\u043a\u043e &#8211; \u0442\u043e \u0437\u043e\u043d\u044b, \u044d\u0442\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u0433\u043e\u0441\u0442\u0435\u0432\u043e\u0439 \u041e\u0421. \u0411\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043e\u043d\u0438 \u043f\u043e\u0445\u043e\u0436\u0438 \u043d\u0430 jail \u0438\u0437 FreeBSD, \u043d\u043e \u043f\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0443 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043b\u0443\u0447\u0448\u0435. \u041c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u0441 Xen, \u043d\u043e \u0432 \u0437\u043e\u043d\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u041e\u0421 Solaris \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u043a\u0430\u043a\u043e\u0439 \u0433\u043e\u0441\u0442\u0435\u0432\u0430\u044f. \u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434: Solaris 10<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-1947","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/1947","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1947"}],"version-history":[{"count":14,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/1947\/revisions"}],"predecessor-version":[{"id":4151,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/1947\/revisions\/4151"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}