¤È¤ê¤¢¤¨¤º¡¢test-zone¤È¤¤¤¦Ì¾Á°¤Ç¥¾¡¼¥ó¤òºî¤Ã¤Æ¤ß¤ë¡£
SF15K domain-a# zonecfg -z test-zone
test-zone: ¤½¤Î¤è¤¦¤Ê¹½À®ºÑ¤ß¥¾¡¼¥ó¤Ï¤¢¤ê¤Þ¤»¤ó
'create' ¤ò»ÈÍѤ·¤Æ¡¢¿·¤·¤¤¥¾¡¼¥ó¤Î¹½À®¤ò³«»Ï¤·¤Þ¤¹¡£
zonecfg:test-zone> create
zonecfg:test-zone> set zonepath=/export/test-zone
zonecfg:test-zone> set autoboot=true
zonecfg:test-zone> add net
zonecfg:test-zone:net> set physical=qfe0
zonecfg:test-zone:net> set address=192.168.110.104
zonecfg:test-zone:net> end
zonecfg:test-zone> info
zonepath: /export/test-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.110.104
physical: qfe0
zonecfg:test-zone> exit
SF15K domain-a#
¾åµÀßÄê¤Ï/etc/zones/zonename.xml¤ËXML·Á¼°¤ÇÊݸ¤µ¤ì¤ë¡£
SF15K domain-a# more /etc/zones/test-zone.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE zone PUBLIC "-//Sun Microsystems Inc//DTD Zones//EN"
"file:///usr/share/lib/xml/dtd/zonecfg.dtd.1">
<!--
DO NOT EDIT THIS FILE. Use zonecfg(1M) instead.
-->
<zone name="test-zone" zonepath="/export/test-zone"
autoboot="true">
<inherited-pkg-dir directory="/lib"/>
<inherited-pkg-dir directory="/platform"/>
<inherited-pkg-dir directory="/sbin"/>
<inherited-pkg-dir directory="/usr"/>
<network address="192.168.110.104" physical="qfe0"/>
</zone>
¤Á¤Ê¤ß¤ËÀßÄê¤Î°ÕÌ£¤Ï
/export/test-zone¥Ç¥£¥ì¥¯¥È¥ê°Ê²¼¤Ëtest-zone¤ÎÁ´¤Æ¤Î¥Ç¡¼¥¿¤¬Æþ¤ê¡¢
192.168.110.104¤È¤¤¤¦¥¢¥É¥ì¥¹¤òtest-zone¤Ë³ä¤êÅö¤Æ¤Æ¤¤¤ë¡£
¤Þ¤¿¥Ç¥Õ¥©¥ë¥È¤Çinherit-pkg-dir¤È¤¤¤¦¹àÌܤˤè¤êlofs¤ÇRead-Only¤Ç/lib, /platform, /usr, /sbin ¤¬test-zone¤Ë¥Þ¥¦¥ó¥È¤µ¤ì¤ë¤è¤¦¤ËÀßÄꤵ¤ì¤Æ¤¤¤ë¡£
¤³¤ì¤ÏÊѹ¹¤¹¤ë¤³¤È¤â¤Ç¤¤ë¤¬¡¢/usr¤Ê¤É¤Ï¤«¤Ê¤ê¤ÎÍÆÎ̤ʤΤǤ³¤Î¤Þ¤Þ¤ÎÊý¤¬¸úΨŪ¡£
¡ÊɬÍפʲսê¤À¤±Read-Write¤Ç¥Þ¥¦¥ó¥È¤Ç¤¤ë¤è¤¦¤Ë¤¹¤ë¤³¤È¤â²Äǽ¤Ê¤Î¤Ç¼ÂÍѾå¤ÏÌäÂê¤Ê¤·¡Ë
zoneadm¥³¥Þ¥ó¥É¤Ç¥¾¡¼¥ó¤Î¾õÂÖ¤ò³Îǧ¤Ç¤¤ë¡£
test-zone¤Ï¤Þ¤À¹½À®¤·¤¿¤À¤±¤Ê¤Î¤Çconfigured¤È¤¤¤¦¥¹¥Æ¡¼¥¿¥¹¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
SF15K domain-a# zoneadm list -vc
ID NAME STATUS PATH
0 global running /
- test-zone configured /export/test-zone
°Ê²¼¤Î¥³¥Þ¥ó¥É¤Çtest-zone¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤ò¤·¡¢²Ôư¤Ç¤¤ë¤è¤¦¤Ë¤¹¤ë¡£
SF15K domain-a# zoneadm -z test-zone install
Preparing to install zone
Creating list of files to copy from the global zone.
Copying <2616> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <1023> packages on the zone.
Initializing package <316> of <1023>: percent complete: 30%
...
¾Êά
¥¤¥ó¥¹¥È¡¼¥ë¤¬½ªÎ»¤·¤¿¤é¤â¤¦°ìÅÙ¥¹¥Æ¡¼¥¿¥¹¤ò³Îǧ¤·¡¢test-zone¤òµ¯Æ°¤¹¤ë¡£
SF15K domain-a# zoneadm list -vc
ID NAME STATUS PATH
0 global running /
- test-zone installed /export/test-zone
SF15K domain-a# zoneadm -z test-zone boot
¥×¥í¥ó¥×¥È¤¬µ¢¤Ã¤Æ¤¤¿¤é°Ê²¼¤Î¥³¥Þ¥ó¥É¤Çtest-zone¤ËÀܳ¤¹¤ë¡£
-C¤ò¤Ä¤±¤ë¤³¤È¤Ç¥³¥ó¥½¡¼¥ëÀܳ¤¬²Äǽ¤Ë¤Ê¤ë¡£
(¥¤¥ó¥¹¥È¡¼¥ëľ¸å¤Ï¥·¥¹¥Æ¥à¤Î½é´üÀßÄ꤬¤¢¤ë¤Î¤Ç-C¤ò¤Ä¤±¤ë)
SF15K domain-a# zlogin -C test-zone
21/100 ¡ã--- ¥¤¥ó¥¹¥È¡¼¥ëľ¸å¤Ï¥µ¡¼¥Ó¥¹¤ÎÅÐÏ¿¤Ë»þ´Ö¤¬¤«¤«¤ë¤Î¤Ç¤·¤Ð¤é¤¯ÂԤġ£
¤¢¤È¤Ï²èÌ̤λؼ¨¤Ë½¾¤Ã¤Æ¡¢¥Û¥¹¥È̾¡¢¥Í¡¼¥à¥µ¡¼¥Ó¥¹¡¢test-zone¤Îroot¥Ñ¥¹¥ï¡¼¥É¤Ê¤É¤òÀßÄꤹ¤ë¡£
¤³¤ì¤Ç½ª¤ï¤ê¡£
¡Ö~.¡×¤Ç¥³¥ó¥½¡¼¥ëÀܳ¤òÀڤꡢglobal¥¾¡¼¥ó¤«¤é¤â¤¦°ìÅÙ¥¹¥Æ¡¼¥¿¥¹¤ò³Îǧ¤·¤Æ¤ß¤ë¡£
SF15K domain-a# zoneadm list -vc
ID NAME STATUS PATH
0 global running /
1 test-zone running /export/test-zone
¤¢¤È¤Ï zlogin test-zone ¤Ê¤É¤Ç¥í¥°¥¤¥ó¤·¤Æ¡¢Ä̾ï¤Î¥·¥¹¥Æ¥à¤Î¤è¤¦¤ËÁàºî¤Ç¤¤ë¡£
¡Ú¥¢¥ó¥±¡¼¥È¡Û
¤³¤Îµ»ö¤Ï¤¿¤á¤Ë¤Ê¤ê¤Þ¤·¤¿¤«¡©
¡¡¡¡¡¡¤Ï¤¤¡¡¡¡/¡¡¡¡¤¤¤¤¤¨