Skip to content

Instantly share code, notes, and snippets.

@mattconnolly
Created July 28, 2013 03:58
Show Gist options
  • Save mattconnolly/6097313 to your computer and use it in GitHub Desktop.
Save mattconnolly/6097313 to your computer and use it in GitHub Desktop.
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment