How to copy an instance between two Openstack environments

  • Turn off the instance, and then using the nova image-create command, create a snapshot of the nova instance.

openstack server list
openstack server image create server2 --name server2-snapshot

  • After the snapshot is created, it will be visible at a glance.
  • Confirm snapshot in a glance with;

openstack image list

  • Download snapshot image

openstack image save --file server2-snapshot-image2.qcow2 jkhuyt67-y6ry-jjhj-t65f-mmmjngy78657

  • Copy snapshot image to the new environment using SCP.
  • Upload the image

openstack image create server2-snapshot-image2-glanceimage2 --container-format bare --disk-format qcow2 --file server2-snapshot-image2.qcow2

Leave a Reply