SOLARIS 10 CONTAINERS
--- ZONES ---
1) création de la soft partition/slice
# metainit d300 -p d0 10g
d300: Soft Partition is setup
# newfs /dev/md/rdsk/d300
# mkdir -p /zones/sgc
# zonecfg -z sgc
sgc: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:sgc> create
zonecfg:sgc> set zonepath=/zones/sgc
zonecfg:sgc> set autoboot=true
zonecfg:sgc> add net
zonecfg:sgc:net> set address=172.20.32.22
zonecfg:sgc:net> set physical=ce0
zonecfg:sgc:net> end
zonecfg:sgc> verify
zonecfg:sgc> commit
zonecfg:sgc> exit
zonecfg:sgc> info
zonepath: /zones/sgc
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: 172.20.32.22
physical: ce0
zonecfg:sgc> remove inherit-pkg-dir dir=/lib
zonecfg:sgc> remove inherit-pkg-dir dir=/platform
zonecfg:sgc> remove inherit-pkg-dir dir=/sbin
zonecfg:sgc> remove inherit-pkg-dir dir=/usr
zonecfg:sgc> info
zonepath: /zones/sgc
autoboot: true
pool:
net:
address: 172.20.32.22
physical: ce0
zonecfg:sgc> verify
zonecfg:sgc> commit
zonecfg:sgc> exit
# zoneadm -z sgc install
/zones/sgc must not be group readable.
/zones/sgc must not be group executable.
/zones/sgc must not be world readable.
/zones/sgc must not be world executable.
could not verify zonepath /zones/sgc because of the above errors.
zoneadm: zone sgc failed to verify
...
cd /zones
# ls -l
total 6
drwxr-xr-x 3 root root 512 May 19 14:38 blcdirect
drwx------ 5 root root 512 May 19 10:11 sednove
drwxr-xr-x 3 root root 512 May 19 14:37 sgc
# chmod 700 sgc blcdirect
Preparing to install zone
Creating list of files to copy from the global zone.
Copying <2449> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
# zoneadm -z blcdirect boot
# zlogin -C blcdirect
=> pour revenir à la zone "global" ~. (escape car)
...
# zoneadm list -cv
ID NAME STATUS PATH
0 global running /
4 sednove %2
0 commentaires:
Post a Comment