Automated CloudStack VM cloning and copying/attaching of existing data disks. CloudstackCloner uses cloudstack_client for CloudStack API communication.
Install the Gem:
$ gem install cloudstack_cloner
A cloudstack-cli style configuration file is used for setting up URL, keys and secrets of your CloudStack API connection.
- The machine to be cloned has to be in "Stopped" state.
- The data disks to be copied have to be in state "Ready".
$ cloudstack_cloner clone --virtual_machine test01 --clone-name test-clone --project Playground --data-volumes test-volume --offering 2cpu_2gb
- 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