Ask Your Question
0

How to export a snapshot to another cloud?

asked 2011-12-02 16:25:25 -0500

otaku gravatar image

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

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2011-12-08 09:20:17 -0500

otaku gravatar image

Thanks Everett Toews, that solved my question.

edit flag offensive delete link more
0

answered 2011-12-05 17:28:13 -0500

everett-toews gravatar image

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

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

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

Everett

On Fri, Dec 2, 2011 at 9:25 AM, Michael Hempel < question180737@answers.launchpad.net > wrote:

New question #180737 on OpenStack Compute (nova): https://answers.launchpad.net/nova/+question/180737 (https://answers.launchpad.net/nova/+q...)

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).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-12-02 16:25:25 -0500

Seen: 170 times

Last updated: Dec 08 '11