免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2228 | 回复: 0
打印 上一主题 下一主题

SUN virutalization coming with Solaris 10 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-06-10 10:21 |只看该作者 |倒序浏览
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  files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize  packages on the zone.
Initialized  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
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/1604/showart_1960588.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP