Skip to content

Instantly share code, notes, and snippets.

@drscream
Created November 28, 2018 10:16
Show Gist options
  • Save drscream/3d7d66705eaff02be9c5d74b356c0031 to your computer and use it in GitHub Desktop.
Save drscream/3d7d66705eaff02be9c5d74b356c0031 to your computer and use it in GitHub Desktop.
SmartOS vmadm send with delegate dataset workaround

Find UUID of your zone

UUID=

Send zone to remote server

Notice this will fail!

vmadm send ${UUID} | ssh REMOTE vmadm receive

Send delegate dataset

Because it can't send the delegate dataset this need to be done manually:

zfs snapshot -r zones/${UUID}/data@sending
zfs send -R zones/${UUID}/data@sending | ssh REMOTE zfs receive -F zones/${UUID}/data

Install zone on remote

vmadn install ${UUID}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment