zonename: tt
zonepath: /data/zone/tt
brand: illumos
autoboot: false
bootargs:
pool:
limitpriv: default
scheduling-class:
ip-type: exclusive
hostid:
fs-allowed:
fs:
dir: /usr
special: /usr
type: lofs
options: [ro]
fs:
dir: /sbin
special: /sbin
type: lofs
options: [ro]
fs:
dir: /lib
special: /lib
type: lofs
options: [ro]
net:
global-nic: switch10
physical: tt0
# zonecfg -z tt export
create -b
set zonepath=/data/zone/tt
set brand=illumos
set autoboot=false
set limitpriv=default
set ip-type=exclusive
add fs
set dir="/usr"
set special="/usr"
set type="lofs"
add options ro
end
add fs
set dir="/sbin"
set special="/sbin"
set type="lofs"
add options ro
end
add fs
set dir="/lib"
set special="/lib"
set type="lofs"
add options ro
end
add net
set physical="tt0"
set global-nic="switch10"
end
# zoneadm -z tt install -s /data/iso/pkgsrc.zss.gz
A ZFS file system has been created for this zone.
Installing zone from ZFS stream /data/iso/pkgsrc.zss.gz
reaper# cd /data/zone/tt/root
reaper# rm -rf ccs config cores dev local site lastbooted
reaper# mv root l
reaper# mv l/* .
reaper# rm -rf l
reaper# chmod 755 .
reaper#
reaper# zoneadm -z tt boot
reaper# zlogin tt
[Connected to zone 'tt' pts/12]
__ . .
_| |_ | .-. . . .-. :--. |-
|_ _| ;| || |(.-' | | |
|__| `--' `-' `;-| `-' ' ' `-'
/ ; Instance (pkgbuild 19.4.0)
`-' https://docs.joyent.com/images/smartos/pkgbuild
[root@tt ~]#