ZONE virtualization is the tech that ships with solaris 10.
What is a Zone?Virtual instance of Solaris
Software partition for the OS
Small-Zone: shares applications with host server
This demonstrates creating a simple
zone that uses the default settings which share most of the operating system with the global
zone. The final layout will be like the following
Attachment:
small-zone2.png [ 15.01 KB | Viewed 55 times ]
To create such a
zone
involves letting the system pick default settings, which includes the
loopback filesystem (lofs) read only mounts that share most of the OS.
The following commands were used
Quote:
# zonecfg -z small-zone
small-zone: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:small-zone> create
zonecfg:small-zone> set autoboot=true
zonecfg:small-zone> set zonepath=/export/small-zone
zonecfg:small-zone> add net
zonecfg:small-zone:net> set address=192.168.2.101
zonecfg:small-zone:net> set physical=hme0
zonecfg:small-zone:net> end
zonecfg:small-zone> info
zonepath: /export/small-zone
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.2.101
physical: hme0
zonecfg:small-zone> verify
zonecfg:small-zone> commit
zonecfg:small-zone> exit
#
# zoneadm list -cv
ID NAME STATUS PATH
0 global running /
- small-zone configured /export/small-zone
Then we can install the
ZONE.
Quote:
# mkdir /export/small-zone
# chmod 700 /export/small-zone
#
# zoneadm -z small-zone verify
#
# zoneadm -z small-zone install
Preparing to install zone zone>.
Creating list of files to copy from the global zone.
Copying <2574> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <987> packages on the zone.
Initialized <987> packages on zone.
Zone zone> is initialized.
Installation of these packages generated warnings:
The file zone/root/var/sadm/system/logs/install_log> contains a log of the zone installation.
#
# zoneadm list -cv
ID NAME STATUS PATH
0 global running /
- small-zone installed /export/small-zone
#
# zoneadm -z small-zone boot
#
# zoneadm list -cv
ID NAME STATUS PATH
0 global running /
1 small-zone running /export/small-zone
# zlogin -C small-zone
[Connected to zone 'small-zone' console]
100/100
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
8 ) Sun Workstation
9) Televideo 910
10) Televideo 925
11) Wyse Model 50
12) X Terminal Emulator (xterms)
13) CDE Terminal Emulator (dtterm)
14) Other
Type the number of your choice and press Return: 13
...standard questions...
After finish the
zone
installation, all applications available is also available for the
vitual server. Just note that by default, application license files is
not copied to the virtual server
阅读(916) | 评论(0) | 转发(0) |