← Back to team overview

openstack team mailing list archive

Re: manage personal instance from openstack


Hi Jay,

Many thanks for your prompt reply. I don't want to go via image registry
way as it has overhead of two copies (copy to swift and then openstack
copies image to host for launch). Rather I was thinking to launch an
instance (using any image with same resources as my image), and then when I
want to transfer my image, just replace image of instance on host. I know
it may break couple of things, network being one. BUt I am trying to figure
out what all can go wrong and fix it before (or after) I ave copied my

Please let me know your thoughts on this route to tranfer instance.



From:	Jay Pipes <jaypipes@xxxxxxxxx>
To:	openstack@xxxxxxxxxxxxxxxxxxx,
Date:	07/26/2013 10:30 PM
Subject:	Re: [Openstack] manage personal instance from openstack
Sent by:	"Openstack" <openstack-bounces

On 07/26/2013 05:10 AM, Deepak Jeswani1 wrote:
> Hi everyone,
> I have an instance running various applications in my environment and I
> want to  transfer it to Openstack. One way is to take image of my
> register it with Openstack image library and then create an instance out
> it. I am wondering whether there can be a direct way to register it with
> Openstack.
> Please suggest me a good way to transfer my instance to Openstack.

If you have a Swift installation, it's quite easy.

1) Snapshot your instance in your VMWare or Virtualbox environment
2) Convert the snapshot to a format that the hypervisor used in your
OpenStack environment supports (ISO or QCOW2 is easiest for KVM)
3) Upload your converted image into Swift
4) Issue a call to Glance to register your image from Swift:

glance image-create --disk-format=<FORMAT> --container-format=<FORMAT>

The image will then appear in your tenant's list of images in Horizon or
glance image-list, and you may use it to launch an instance.

All the best,

p.s. You don't necessarily need to use Swift, either... you could always
just place your converted image on a web server somewhere and replace
<SWIFT_URI> with the URI of your image.

Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp

Follow ups