zonecfg:vboxzone:net> set address=192.168.7.247
zonecfg:vboxzone:net> end
zonecfg:vboxzone> commit
zonecfg:vboxzone> export
create -b
set zonepath=/u01/vboxzone
set autoboot=true
set ip-type=shared
add inherit-pkg-dir
set dir=/lib
end
add inherit-pkg-dir
set dir=/platform
end
add inherit-pkg-dir
set dir=/sbin
end
add inherit-pkg-dir
set dir=/usr
end
add net
set address=192.168.7.247
set physical=vmxnet0
end
zonecfg:vboxzone> exit
安装和启动zone—— vboxzone:
# zoneadm -z vboxzone install
Preparing to install zone <vboxzone>.
Creating list of files to copy from the global zone.
Copying <2994> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <1165> packages on the zone.
Initializing package <244> of <1165>: percent complete: 20%
//等待Initializing package完成
Initialized <1165> packages on zone.
Zone <vboxzone> is initialized.
Installation of these packages generated warnings: <SUNWvbox>
The file </u01/vboxzone/root/var/sadm/system/logs/install_log> contains a log of the zone installation.
install zone完成后:
# zoneadm -z vboxzone ready
# zoneadm -z vboxzone boot
3.检查vboxzone是否运行
QHOVMS10# zoneadm list -cv
ID NAME STATUS PATH
0 global running /
1 vboxzone running /u01/vboxzone
4.登录vboxzone,再象装系统一样安装vboxzone,直到装完重新启动:
# zlogin -C vboxzone
Select a Language
0. English
1. SimplifIEd Chinese
Please make a choice (0 - 1), or press h or ? for help: 1
...
System identification is completed.
...
rebooting system due to change(s) in /etc/default/init
[NOTICE: Zone rebooting]
SunOS Release 5.10 Version s10_74 64-bit
Copyright 1983-2004 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Hostname: vboxzone
vboxzone console login: root
PassWord:
Dec 16 19:48:19 vboxzonej login: ROOT LOGIN /dev/console
Sun Microsystems Inc. SunOS 5.10 s10_74 December 2004
标签: