How to export a snapshot to another cloud?

Asked by Michael Hempel

Hi,
I've created a snapshot of a configured CentOS6 imageon my test-install and want to move it to another cloud.
Then I located the image file on the disk and copied it over.
I added it to glance with:

glance add -A ******* name="haproxy-centos6" is_public=true container_format=ami disk_format=ami kernel_id=3 ramdisk_id=4< haproxy-centos6.img

using the same initram and kernel from the clean centos. When I spin it up, it switches to active, but I can't connect to it.
The standard centos starts up without problems.
Should I add it as raw-image?
Regards,
Michael

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Everett Toews
Solved:
Last query:
Last reply:
Revision history for this message
Best Everett Toews (everett-toews) said :
#1

We wrote a script that does this. Have a look at

https://github.com/canarie/dair/blob/master/OpenStack/glance/glance-transfer-images.py

Note that this was written against the Cactus version of Glance.

Everett

On Fri, Dec 2, 2011 at 9:25 AM, Michael Hempel <
<email address hidden>> wrote:

> New question #180737 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/180737
>
> Hi,
> I've created a snapshot of a configured CentOS6 imageon my test-install
> and want to move it to another cloud.
> Then I located the image file on the disk and copied it over.
> I added it to glance with:
>
> glance add -A ******* name="haproxy-centos6" is_public=true
> container_format=ami disk_format=ami kernel_id=3 ramdisk_id=4<
> haproxy-centos6.img
>
> using the same initram and kernel from the clean centos. When I spin it
> up, it switches to active, but I can't connect to it.
> The standard centos starts up without problems.
> Should I add it as raw-image?
> Regards,
> Michael
>
> --
> You received this question notification because you are an answer
> contact for OpenStack Compute (nova).
>

Revision history for this message
Michael Hempel (otaku) said :
#2

Thanks Everett Toews, that solved my question.