(For a sparse zone omit the "remove inherit-pkg-dir" lines);
[root] deckard:/root # zonecfg -z zone1
zone1: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:zone1> create
zonecfg:zone1> set zonepath=/tank/zones/zone1
zonecfg:zone1> set ip-type=exclusive
zonecfg:zone1> add net
zonecfg:zone1:net> set physical=vnic1
zonecfg:zone1:net> end
zonecfg:zone1> remove inherit-pkg-dir dir=/lib
zonecfg:zone1> remove inherit-pkg-dir dir=/platform
zonecfg:zone1> remove inherit-pkg-dir dir=/sbin
zonecfg:zone1> remove inherit-pkg-dir dir=/usr
zonecfg:zone1> add fs
zonecfg:zone1:fs> set dir=/data/tmp
zonecfg:zone1:fs> set type=lofs
zonecfg:zone1:fs> set special=/data/tmp
zonecfg:zone1:fs> end
zonecfg:zone1> add fs
zonecfg:zone1:fs> set dir=/export/home
zonecfg:zone1:fs> set type=lofs
zonecfg:zone1:fs> set special=/export/home
zonecfg:zone1:fs> end
zonecfg:zone1> info
zonename: zone1
zonepath: /tank/zones/zone1
brand: native
autoboot: false
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: exclusive
fs:
dir: /export/home
special: /export/home
raw not specified
type: lofs
options: []
fs:
dir: /data/tmp
special: /data/tmp
raw not specified
type: lofs
options: []
net:
address not specified
physical: vnic1
defrouter not specified
zonecfg:zone1> commit
[root] deckard:/root # zoneadm list -cip
0:global:running:/::native:shared
-:zone1:configured:/tank/zones/zone1::native:shared
[root] deckard:/root # zfs create tank/zones/zone1
[root] deckard:/root # chmod 700 /tank/zones/zone1
[root] deckard:/root # zoneadm -z zone1 verify
[root] deckard:/root # zoneadm -z zone1 install
cannot create ZFS dataset tank/zones/zone1: dataset already exists
Preparing to install zone
Creating list of files to copy from the global zone.
Copying <275019> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <1732> packages on the zone.
Initialized <1732> packages on zone.
Zone
Installation of these packages generated errors:
Installation of <3> packages was skipped.
Installation of these packages generated warnings:
The file
[root] deckard:/root # zoneadm -z zone1 ready
[root] deckard:/root # zoneadm -z zone1 boot
[root] deckard:/root # zlogin -C zone1
No comments:
Post a Comment