bash-3.00# zoneadm list -cv
ID NAME  STATUS PATH BRAND IP
0 global  running / native  shared

bash-3.00# zonecfg -z test
Désolé, Je ne connais pas votre terminal « linux ».


bash-3.00# echo $TERM
linux
bash-3.00# export TERM=vt100

bash-3.00# zonecfg -z zone1
zone1: Aucune zone de cette sorte configurée
Utilisez ‘create’ pour commencer à  configurer une nouvelle zone.
zonecfg:zone1> create -b
zonecfg:zone1> info
zonename: zone1
zonepath:
brand: native
autoboot: false
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
zonecfg:zone1> set zonepath=/zones
zonecfg:zone1> set autoboot=true
zonecfg:zone1> add net
zonecfg:zone1:net> set address=192.168.0.72/24
zonecfg:zone1:net> set physical=e1000g0
zonecfg:zone1:net> end
zonecfg:zone1> info
zonename: zone1
zonepath: /zones
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
net:
address: 192.168.0.72/24
physical: e1000g0

zonecfg:zone1> verify

zonecfg:zone1> commit

zonecfg:zone1> exit

bash-3.00# cat /etc/zones/zone1.xml
<?xml version= »1.0″ encoding= »UTF-8″?>
<!DOCTYPE zone PUBLIC « -//Sun Microsystems Inc//DTD Zones//EN » « file:///usr/share/lib/xml/dtd/zonecfg.dtd.1″>
<!–
DO NOT EDIT THIS FILE.  Use zonecfg(1M) instead.
–>
<zone name= »zone1″ zonepath= »/zones » autoboot= »true »>
<network address= »192.168.0.72/24″ physical= »e1000g0″/>
</zone>

bash-3.00# zoneadm list -vc
ID NAME  STATUS  PATH  BRAND  IP
0 global  running native  shared
–  zone1  configured /zones  native  shared

bash-3.00# cat /etc/zones/index
# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident    « @(#)zones-index    1.2    04/04/01 SMI »
#
# DO NOT EDIT: this file is automatically generated by zoneadm(1M)
# and zonecfg(1M).  Any manual changes will be lost.
#
global:installed:/
zone1:configured:/zones:

bash-3.00# zoneadm -z zone1 verify
/zones ne doit pas etre lisible par le groupe.
/zones ne doit pas etre executable par le groupe.
/zones ne doit pas etre lisible par tous.
/zones ne doit pas etre executable par tous.
impossible de verifier le chemin de zone /zones en raison des erreurs ci-dessus.
zoneadm: impossible de verifier la zone zone1

bash-3.00# chmod -R 700 /zones/

bash-3.00# zoneadm -z zone1 verify

bash-3.00# zoneadm -z zone1 install
Preparing to install zone <zone1>.
Creating list of files to copy from the global zone.
Copying <138980> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <1084> packages on the zone.
Initialized <1084> packages on zone.
Zone <zone1> is initialized.
Le fichier </zones/root/var/sadm/system/logs/install_log> contient un journal de l’installation de la zone.

bash-3.00# zoneadm -z zone1 boot

bash-3.00# zoneadm list -cv
ID NAME  STATUS  PATH BRAND  IP
0 global  running  native  shared
1 zone1  running  /zones  native  shared

bash-3.00#zlogin -C zone1

Laisser un commentaire

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur la façon dont les données de vos commentaires sont traitées.