Skip to content

Instantly share code, notes, and snippets.

@madsmith
madsmith / gist:0bae9551c506457043020b0842f29069
Created April 14, 2016 18:25 — forked from mattconnolly/gist:6097313
Adding a zfs dataset to a SmartOS zone. Seems there's no vmadm api for this, but you can do it with zonecfg:
# vmadm halt <uuid>
# zonecfg -z <uuid>
zonecfg:uuid> add dataset
zonecfg:uuid:dataset> set name=<zfs/path>
zonecfg:uuid:dataset> end
zonecfg:uuid> commit
zonecfg:uuid> exit
# zfs set mountpoint=legacy <zfs/path>
# vmadm boot <uuid>