CloudstackCloner
Automated CloudStack VM cloning and copying/attaching of existing data disks. CloudstackCloner uses cloudstack_client for CloudStack API communication.
Installation
Install the Gem:
$ gem install cloudstack_cloner
Configuration
A cloudstack-cli style configuration file is used for setting up URL, keys and secrets of your CloudStack API connection.
Usage
Preconditions
- The machine to be cloned has to be in "Stopped" state.
- The data disks to be copied have to be in state "Ready".
Example
$ cloudstack_cloner clone --virtual_machine test01 --clone-name test-clone --project Playground --data-volumes test-volume --offering 2cpu_2gb
Contributing
- Fork it ( https://github.com/[my-github-username]/cloudstack_cloner/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request