一个建立ZONE的简单步骤刚刚在自己机器上测试通过:
# zonecfg
usage: zonecfg help
zonecfg -z <zone> (interactive)
zonecfg -z <zone> <command>
zonecfg -z <zone> -f <command-file>
Commands:
add <resource-type>
(global scope)
add <property-name> <property-value>
(resource scope)
cancel
clear <property-name>
commit
create [-F] [ -a <path> | -b | -t <template> ]
delete [-F]
end
exit [-F]
export [-f output-file]
help [commands] [syntax] [usage] [<command-name>]
info [<resource-type> [property-name=property-value]*]
remove [-F] <resource-type> [ <property-name>=<property-value> ]*
(global scope)
remove <property-name> <property-value>
(resource scope)
revert [-F]
select <resource-type> { <property-name>=<property-value> }
set <property-name>=<property-value>
verify
# zonecfg -z test-zone
test-zone: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:test-zone> create
zonecfg:test-zone> set zonepath=/export/home/test-zone
zonecfg:test-zone> set pool=pool_default
zonecfg:test-zone> add inherit-pkg-dir
zonecfg:test-zone:inherit-pkg-dir> ?
The 'inherit-pkg-dir' resource scope is used to configure a directory
inherited from the global zone into a non-global zone in read-only mode.
Valid commands:
set dir=<path>
And from any resource scope, you can:
end (to conclude this operation)
cancel (to cancel this operation)
exit (to exit the zonecfg utility)
zonecfg:test-zone:inherit-pkg-dir> set dir=/opt
zonecfg:test-zone:inherit-pkg-dir> end
zonecfg:test-zone> add net
zonecfg:test-zone:net> ?
The 'net' resource scope is used to configure a network interface.
Valid commands:
set address=<IP-address>
set physical=<interface>
See ifconfig(1M) for details of the <interface> string.
set defrouter=<IP-address>
set address and set defrouter are valid if the ip-type property is set to shared, otherwise they must not be set.
And from any resource scope, you can:
end (to conclude this operation)
cancel (to cancel this operation)
exit (to exit the zonecfg utility)
zonecfg:test-zone:net> set physical=pcn0
zonecfg:test-zone:net> set address=192.168.0.221
zonecfg:test-zone:net> end
zonecfg:test-zone> verify
zonecfg:test-zone> commit
zonecfg:test-zone> exit
# zonecfg -z test-zone info
zonename: test-zone
zonepath: /export/home/test-zone
brand: native
autoboot: false
bootargs:
pool: pool_default
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
inherit-pkg-dir:
dir: /opt
net:
address: 192.168.0.221
physical: pcn0
defrouter not specified
# zoneadm -z test-zone install
zoneadm: zone 'test-zone': WARNING: pools facility not active; zone will not be bound to pool 'pool_default'.
Preparing to install zone <test-zone>.
Creating list of files to copy from the global zone.
Copying <2894> 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 <test-zone> is initialized.
The file </export/home/test-zone/root/var/sadm/system/logs/install_log> contains a log of the zone installation.
#
# zoneadm list -vc
ID NAME STATUS PATH BRAND IP
0 global running / native shared
- test-zone installed /export/home/test-zone native shared
# zoneadm -z test-zone boot
zoneadm: zone 'test-zone': WARNING: pools facility not active; zone will not be bound to pool 'pool_default'.
zoneadm: zone 'test-zone': WARNING: Pools facility not active; zone will not be bound to pool
# zoneadm list -v
ID NAME STATUS PATH BRAND IP
0 global running / native shared
1 test-zone running /export/home/test-zone native shared
# zoneadm list -vc
ID NAME STATUS PATH BRAND IP
0 global running / native shared
1 test-zone running /export/home/test-zone native shared
# zlogin test-zone
[Connected to zone 'test-zone' pts/6]
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
# ifconfig -a
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
# df -h
Filesystem size used avail capacity Mounted on
/ 44G 7.1G 37G 17% /
/dev 44G 7.1G 37G 17% /dev
/lib 5.6G 4.9G 655M 89% /lib
/opt 5.6G 4.9G 655M 89% /opt
/platform 5.6G 4.9G 655M 89% /platform
/sbin 5.6G 4.9G 655M 89% /sbin
/usr 5.6G 4.9G 655M 89% /usr
proc 0K 0K 0K 0% /proc
ctfs 0K 0K 0K 0% /system/contract
mnttab 0K 0K 0K 0% /etc/mnttab
objfs 0K 0K 0K 0% /system/object
swap 2.1G 272K 2.1G 1% /etc/svc/volatile
/usr/lib/libc/libc_hwcap1.so.1
5.6G 4.9G 655M 89% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 2.1G 4K 2.1G 1% /tmp
swap 2.1G 0K 2.1G 0% /var/run
# id
uid=0(root) gid=0(root)
# hostname
test-zone
分享到:
相关推荐
Solaris8,Solaris9,Solaris10,Solaris 11 iso镜像下载
二、Solaris 8安装前准备 1. 硬件兼容性检查:确保你的硬件设备与Solaris 8兼容,包括CPU、内存、硬盘和网络适配器等。 2. 安装媒介获取:可以使用CD-ROM或通过网络ISO镜像进行安装。 3. 系统分区:规划硬盘空间,为...
2013年最新版的强悍Unix版本Solaris 11.1系统文件,功能十分强大,不愧是真正血统的Unix系统! Oracle Announces Availability of Oracle Solaris 11.1 and Oracle Solaris Cluster 4.1 Delivers Oracle Database ...
本篇文章详细介绍了在 VMware 7.1.4 虚拟机中安装 Solaris 10 操作系统的过程,包括安装前的准备工作、安装过程中的网络配置、时区设置、安全设置等信息的设置。通过本篇文章,读者可以轻松地安装 Solaris 10 操作...
1. **VMware Workstation 5环境的准备** - 打开VMware软件,选择新建虚拟机。 - 使用向导选择“自定义”配置,确保与Solaris 10兼容。 - 在虚拟机格式中,选择“新的—Workstation 5 (W)”。 2. **选择客户机...
在深入探讨Solaris系统下如何修改用户密码之前,我们先简要回顾一下Solaris系统的基本概念。Solaris是由Sun Microsystems开发的一款基于Unix的操作系统,它以其高性能、稳定性和安全性著称,在服务器领域有着广泛的...
### Solaris系统管理指南知识点详解 #### 一、Solaris系统管理工具概述 - **工具新增功能**:Solaris系统管理工具不断更新迭代,引入了一系列新功能以满足日益增长的系统管理需求。例如,增强的安全特性、改进的...
Solaris8,Solaris9,Solaris10,Solaris 11 iso镜像下载 这里提供资源地址:https://pan.baidu.com/s/1fa2Ga3BN9oh08wUOLK3PnQ 可以先登陆地址试试,在地址有效状态下,再使用积分提取密码
"Solaris 操作系统课件——与 Windows 的对比" 在计算机科学与技术系中,Solaris 操作系统是一个非常重要的课题。本课件旨在为学习 Solaris 操作系统的同学提供一个全面的学习资源,从计算机系统概念到操作系统目标...
### 知识点详解:硬盘安装Solaris 10 #### 一、Solaris 10简介 Solaris是Sun Microsystems公司(现为Oracle公司的一部分)开发的一种基于UNIX的操作系统,以其高性能、高稳定性和安全性著称,在企业级服务器市场...
在深入探讨Solaris之前,让我们先了解一下它的历史背景。 Solaris的发展始于1980年代,当时Sun Microsystems推出SunOS,这是一个基于BSD(Berkeley Software Distribution)的UNIX系统。随着技术的进步和市场的需求...
jdk6 for solaris jdk6 for solaris jdk6 for solaris
在 Solaris 操作系统中,资源监控是管理员日常运维的重要环节,它可以帮助我们了解系统的运行状态,及时发现和解决问题。本文将深入探讨 Solaris 资源监控命令,包括 CPU 使用率、内存占用情况以及其他的系统监控...
Solaris 10 安装指南:Solaris Flash 归档文件(创建和安装).pdf Java Desktop System Configuration Manager 发行版 1.1 发行说明.pdf Java Desktop System Configuration Manager 发行版 1.1 安装指南.pdf Java ...
SOLARIS新手必看,SOLARIS新手必看,SOLARIS新手必看,SOLARIS新手必看,SOLARIS新手必看。
2. **依赖库准备**:在编译GCC之前,需要先安装一些依赖库,如GNU Autoconf、Automake、Libtool等。这些工具帮助构建和配置GCC。另外,还需要GMP(GNU Multiple Precision Arithmetic Library)、MPFR(Multiple ...
标题中的"expect安装包(solaris x86)"指的是在Solaris操作系统x86架构上使用的Expect工具的安装程序。Expect是一个自动化脚本工具,它允许用户编写脚本来控制交互式应用程序,如telnet、ftp、passwd等,使得自动化...
### Solaris C++ 编译器用户手册知识点详解 #### 一、概述 Solaris C++ 编译器用户手册是Sun Microsystems为开发者提供的一份详尽的技术文档,旨在指导用户如何有效地使用Solaris环境下的C++编译器进行软件开发。...
solaris.x64_11gR2_client.zip solaris.x64_11gR2_grid.zip solaris.x86_11gR2_client.zip solaris.x64_11gR2_database_1of2.zip solaris.x64_11gR2_database_2of2.zip 适用于solaris 64位系统,文件分割成 5个 ...