- July 29, 2008 3:14 PM
zone作成のログ
前回は/export/home以外に作成してしまったので、再度イメージを作成
ついでのautoboot=falseに変更した
-----
[root@Solaris1 ~]# zoneadm list -vc
ID NAME STATUS PATH BRAND IP
0 global running / native shared
[root@Solaris1 ~]# zonecfg -z zone1
zone1: そのような構成済みゾーンはありません
'create' を使用して、新しいゾーンの構成を開始してください。
zonecfg:zone1> create
zonecfg:zone1> set zonepath=/export/home/zones/zone1
zonecfg:zone1> set autoboot=false
zonecfg:zone1> add net
zonecfg:zone1:net> set address=xxxxx/21
zonecfg:zone1:net> set physical=e1000g0
zonecfg:zone1:net> end
zonecfg:zone1> info
zonename: zone1
zonepath: /export/home/zones/zone1
brand: native
autoboot: false
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
net:
address: xxxxx/21
physical: e1000g0
zonecfg:zone1> export
create -b
set zonepath=/export/home/zones/zone1
set autoboot=false
set ip-type=shared
add inherit-pkg-dir
set dir=/lib
end
add inherit-pkg-dir
set dir=/platform
end
add inherit-pkg-dir
set dir=/sbin
end
add inherit-pkg-dir
set dir=/usr
end
add net
set address=xxxxx/21
set physical=e1000g0
end
zonecfg:zone1> verify
zonecfg:zone1> commit
zonecfg:zone1> exit
[root@Solaris1 ~]# zoneadm list -vc
ID NAME STATUS PATH BRAND IP
0 global running / native shared
- zone1 configured /export/home/zones/zone1 native shared
[root@Solaris1 ~]# zoneadm -z zone1 install
Preparing to install zone
Creating list of files to copy from the global zone.
Copying <7614> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <1245> packages on the zone.
Initialized <1245> packages on zone.
Zone
The file contains a log of the zone installation.
[root@Solaris1 ~]#