Skip to content

Instantly share code, notes, and snippets.

@citrus-it
Last active April 23, 2020 21:37
Show Gist options
  • Save citrus-it/95114600c0553ee0733de521d72b2b27 to your computer and use it in GitHub Desktop.
Save citrus-it/95114600c0553ee0733de521d72b2b27 to your computer and use it in GitHub Desktop.
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 ~]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment