S.K.
S.K.

Reputation: 77

Creating clone of a VM in OpenStack

I need a copy of cinder volume, so that only hostname is changed with the same contents of as of the existing cinder volume?

Upvotes: 2

Views: 8050

Answers (3)

Mandrappa
Mandrappa

Reputation: 31

You can take a snapshot of your original VM and create a second instance booting up from that snapshot. The hostname can be changed using cloud-init (or manually after the first boot).

Upvotes: 0

kay
kay

Reputation: 753

You can try to use this tool to replicate VMs. It works with both local or bootable volumes: https://github.com/sapcc/cyclone

Upvotes: 0

Yip Wai Peng
Yip Wai Peng

Reputation: 86

I assume that you have an instance that's boot from volume? You can create an image using Cinder backup, and from that image create another volume, and boot your instance from that volume.

Upvotes: 0

Related Questions