KVM:
On the Source SmartOS Node:
1 2 3 4 5 |
zfs snapshot zones/d8944236-9d33-40ce-a112-5445cc40c412@migration zfs snapshot zones/d8944236-9d33-40ce-a112-5445cc40c412-disk0@migration zfs send zones/d8944236-9d33-40ce-a112-5445cc40c412@migration | ssh [email protected] zfs recv zones/d8944236-9d33-40ce-a112-5445cc40c412 zfs send zones/d8944236-9d33-40ce-a112-5445cc40c412-disk0@migration | ssh [email protected] zfs recv zones/d8944236-9d33-40ce-a112-5445cc40c412-disk0 scp /etc/zones/d8944236-9d33-40ce-a112-5445cc40c412.xml [email protected]:/etc/zones/ |
On the Target SmartOS Node:
1 2 |
echo ‘d8944236-9d33-40ce-a112-5445cc40c412:installed:/zones/d8944236-9d33-40ce-a112-5445cc40c412:d8944236-9d33-40ce-a112-5445cc40c412’ >> /etc/zones/index vmadm boot d8944236-9d33-40ce-a112-5445cc40c412 |
Non-Global Zone:
It’s simple:
1 2 3 4 |
[[email protected]]# vmadm send 1a666e33-f4ca-4c4e-a4c6-a47dd3d78096 | ssh 10.0.0.3 vmadm receive Successfully sent VM 1a666e33-f4ca-4c4e-a4c6-a47dd3d78096 Successfully received VM 1a666e33-f4ca-4c4e-a4c6-a47dd3d78096 |