Set-up public key ssh auth for root user (and disable password auth)
put the public key(s) in
add the following lines to
/usbkey/ssh/sshd_config. making sure that the following items are set:
# Disallow password authentication
# Permit root login (which should be already set)
reboot the server
Migrating a VM from one SmartOS server to another
This is pretty easy, and documented on the SmartOS wiki (although it's marked as "experimental" and is not documented in the man pages).
One gotcha – if you've already disabled password login as per the previous section, you'll need to create a new key pair on the source SmartOS node and copy the public key into /root/.ssh/authorized_keys on the target SmartOS node.
Assuming you can ssh from the source node to the target node, VM Migration is as easy as running the following command on the source node:
vmadm send $VM_GUID | ssh $target vmadm receive
This command stops the VM on the source node, and sends it to the target node. You will then need to start the machine on the target node and destroy it on the source node (once you're happy it's working in its new home).