Chinaunix

标题: 求一份Solaris 8 Containers for Solaris 10的文档! [打印本页]

作者: 充满光的瞳孔    时间: 2012-11-13 17:50
标题: 求一份Solaris 8 Containers for Solaris 10的文档!
现在T5220上安装了s10 u10系统,创建了三个zone,打算做三个container分别是s10、s9、s8三个系统,s10最容易做zonecfg -z s10-zone , chmod 700 /zone/s10-zone ,  zoneadm -z s10-zone install , zoneadm –z s10-zone boot , zlogin –C s10-zone ,启来就OK了。但是s8和s9的container需要镜像安装,肯定有步骤没做对,zonecfg -z s8-zone里面verify总报错 。

求高手指点 或者详细文档
作者: 充满光的瞳孔    时间: 2012-11-13 18:00
好像是需要先安装s8和s9的container
作者: wait空白    时间: 2012-11-14 11:20
没安装过,表示关注。
作者: 充满光的瞳孔    时间: 2012-11-29 11:05
bash-3.2# ls
1                        SUNWrtvc                 ocm
10_Recommended           V24150-01.zip            solarislegacycontainers
SUNWits                  V24151-01.zip
SUNWmlib                 V24152-01.zip
bash-3.2# rm 1
bash-3.2# cd solarislegacycontainers/
bash-3.2# ls
1.0     1.0.1   README
bash-3.2# cd 1.0.1
bash-3.2# ls
Legal    Product
bash-3.2# cd Product/
bash-3.2# ls
SUNWs8brandk  SUNWs9brandk
bash-3.2# pkgadd -d . *

Processing package instance <SUNWs8brandk> from </opt/solarislegacycontainers/1.0.1/Product>
## Installing package <SUNWs8brandk> in global zone

Solaris 8 Containers: solaris8 brand support RTU(sparc) 11.10.0,REV=2008.09.20.18.50
Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
   8 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.

The following files are already installed on the system and are being
used by another package:
  /usr/share/man/man5/solaris8.5

Do you want to install these conflicting files [y,n,?,q] y
## Checking for setuid/setgid programs.

Installing Solaris 8 Containers: solaris8 brand support RTU as <SUNWs8brandk>

## Installing part 1 of 1.
/usr/lib/brand/solaris8/files/patches/109147-44.zip
/usr/lib/brand/solaris8/files/patches/109221-01.zip
/usr/lib/brand/solaris8/files/patches/111023-03.zip
/usr/lib/brand/solaris8/files/patches/111431-01.zip
/usr/lib/brand/solaris8/files/patches/112050-04.zip
/usr/lib/brand/solaris8/files/patches/112605-04.zip
/usr/lib/brand/solaris8/files/patches/order
/usr/share/man/man5/solaris8.5
[ verifying class <none> ]

Installation of <SUNWs8brandk> was successful.

Processing package instance <SUNWs9brandk> from </opt/solarislegacycontainers/1.0.1/Product>
## Installing package <SUNWs9brandk> in global zone

Solaris 9 Containers: solaris9 brand support RTU(sparc) 11.10.0,REV=2008.09.20.18.50
Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
   8 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

Installing Solaris 9 Containers: solaris9 brand support RTU as <SUNWs9brandk>

## Installing part 1 of 1.
/usr/lib/brand/solaris9/files/patches/112963-32.zip
/usr/lib/brand/solaris9/files/patches/115986-03.zip
/usr/lib/brand/solaris9/files/patches/order
/usr/share/man/man5/solaris9.5
[ verifying class <none> ]

Installation of <SUNWs9brandk> was successful
bash-3.2#
bash-3.2#
bash-3.2# zongcfg -z s8-zone
bash: zongcfg: command not found
bash-3.2# zonecfg -z s8-zone
s8-zone: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:s8-zone> Nov 14 09:05:13 T5220 login: ROOT LOGIN /dev/pts/1 FROM 172.20.10.106

zonecfg:s8-zone> create -t SUNWsolaris8
zonecfg:s8-zone> set zonepath=/zone/s8-zone
zonecfg:s8-zone> set autoboot=true
zonecfg:s8-zone> add net
zonecfg:s8-zone:net> set address=172.20.10.150
zonecfg:s8-zone:net> set physical=e1000g0
zonecfg:s8-zone:net> info
net:
        address: 172.20.10.150
        physical: e1000g0
        defrouter not specified
zonecfg:s8-zone:net> end
zonecfg:s8-zone> verify
zonecfg:s8-zone> commit
zonecfg:s8-zone> exit
bash-3.2# zoneadm list -vc
  ID NAME             STATUS     PATH                           BRAND    IP   
   0 global           running    /                              native   shared
   1 zone1            running    /zone/zone1                    native   shared
   - s8-zone          configured /zone/s8-zone                  solaris8 shared
bash-3.2# cd /opt                           
bash-3.2# ls
10_Recommended           SUNWrtvc                 V24152-01.zip
SUNWits                  V24150-01.zip            ocm
SUNWmlib                 V24151-01.zip            solarislegacycontainers
bash-3.2# unzip V24151-01.zip > 1
Nov 14 09:08:49 T5220 login: ROOT LOGIN /dev/pts/2 FROM 172.20.10.106
bash-3.2#
bash-3.2#
bash-3.2# ls
1                        SUNWrtvc                 ocm
10_Recommended           V24150-01.zip            solaris8-image.flar
SUNWits                  V24151-01.zip            solarislegacycontainers
SUNWmlib                 V24152-01.zip
bash-3.2# rm 1
bash-3.2# cd /                       
bash-3.2# zoneadm -z s8-zone install -u -a /opt/solaris8-image.flar
/zone/s8-zone must not be group readable.
/zone/s8-zone must not be group executable.
/zone/s8-zone must not be world readable.
/zone/s8-zone must not be world executable.
could not verify zonepath /zone/s8-zone because of the above errors.
zoneadm: zone s8-zone failed to verify
bash-3.2# chmod 700 /zone/s8-zone
bash-3.2# zoneadm -z s8-zone install -u -a /opt/solaris8-image.flar
      Log File: /var/tmp/s8-zone.install.1972.log
        Source: /opt/solaris8-image.flar
    Installing: This may take several minutes...
Nov 14 09:13:37 T5220 login: ROOT LOGIN /dev/pts/1 FROM 172.20.10.106
Postprocessing: This may take several minutes...

        Result: Installation completed successfully.
      Log File: /zone/s8-zone/root/var/log/s8-zone.install.1972.log
bash-3.2# zoneadm -z s8-zone boot
bash-3.2# zlogin -C s8-zone
[Connected to zone 's8-zone' console]
Nov 14 09:17:54 T5220 login: ROOT LOGIN /dev/pts/2 FROM 172.20.10.106


You did not enter a selection.
What type of terminal are you using?
1) ANSI Standard CRT
2) DEC VT52
3) DEC VT100
4) Heathkit 19
5) Lear Siegler ADM31
6) PC Console
7) Sun Command Tool
Sun Workstation
9) Televideo 910
10) Televideo 925
11) Wyse Model 50
12) X Terminal Emulator (xterms)
13) Other
Type the number of your choice and press Return:
作者: 充满光的瞳孔    时间: 2012-11-29 11:13
solarislegacycontainers为container软件包,其他为系统镜像,我的5220本身是S10的系统,如果在ZONE里安装S10以外的系统就需要实现安装其他系统的container,有了container之后再创建zone时指定该zone安装S8系统/*zonecfg:s8-zone> create -t SUNWsolaris8,接下来就如上面一样逐步进行即可。
作者: 充满光的瞳孔    时间: 2012-11-29 11:24
Solaris Container是一个完整的应用程序运行时环境。Solaris 10资源管理器和Solaris Zones软件分区技术是该容器的两个组成部分。这两个组件分别代表该容器能够实现的两种不同的功能,两者协同工作可以创建完整的容器环境。容器的 zone部分提供从应用程序到平台资源的虚拟映射。利用zone可以使应用程序组件彼此隔离,即使这些zone共享Solaris 操作系统的单个实例也是如此。利用资源管理功能,您可以对工作负荷收到的资源数量进行分配。


其中有许多概念还不是太清楚,简单接触了下solaris zone,实现了solaris系统级别的虚机功能。

等待大牛解析container、zone优劣和功能介绍,同为菜鸟的可以了解下S10中安装S8 container。
作者: lloydm    时间: 2012-12-03 09:40
提示: 作者被禁止或删除 内容自动屏蔽
作者: 充满光的瞳孔    时间: 2012-12-10 11:16
这回复太深奥了...看不懂啊- -回复 7# lloydm


   




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2