CU上 elk 和 alfee 兄弟 关于solaris 10 zone的配置的帖子存在一些问题, 这种方法因为共享了原始系统的/lib, /platform, /sbin, 和 /usr ,做出来的zone ,硬盘占用比较小,大约在1.5G 左右,但实际上不是一个完整的系统, 如果要跑应用就会突现出缺陷。因为这些目录或文件系统在zone中以只读的loopback 文件系统使用,在安装软件及应用时,难免会出现文件系统只读的问题。在硬盘空间足够的的情况下,建议配置一个完整的zone用来跑测试。有点懒,在elk帖子的基础上,增加的建立完整系统所必须的配置命令。
对elk 的方法增加的部分,
请参看elf的原始帖子
zonecfg:zone1> info
zonepath: /zone/zone1
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.0.101
physical: eri0
-----------增加的步骤------
zonecfg:zone1> remove inherit-pkg-dir dir=/lib
zonecfg:zone1> remove inherit-pkg-dir dir=/platform
zonecfg:zone1> remove inherit-pkg-dir dir=/sbin
zonecfg:zone1> remove inherit-pkg-dir dir=/usr
zonecfg:zone1> info
zonepath: /zone/zone1
autoboot: true
pool:
net:
address: 192.168.0.101
physical: eri0
------增加部分完毕---------
zonecfg:zone1> verify
zonecfg:zone1> commit
zonecfg:zone1> ^D
root@b1000:/#