<div dir="ltr"><div>it looks like you have an old environment and want to transfer all the instance to your openstack environment. <br></div>I used to do this for KVM instance by writing some scripts in nova-network environment. <br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 28, 2013 at 12:03 PM, Deepak Jeswani1 <span dir="ltr"><<a href="mailto:dejeswan@in.ibm.com" target="_blank">dejeswan@in.ibm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jay,<br>
<br>
Many thanks for your prompt reply. I don't want to go via image registry<br>
way as it has overhead of two copies (copy to swift and then openstack<br>
copies image to host for launch). Rather I was thinking to launch an<br>
instance (using any image with same resources as my image), and then when I<br>
want to transfer my image, just replace image of instance on host. I know<br>
it may break couple of things, network being one. BUt I am trying to figure<br>
out what all can go wrong and fix it before (or after) I ave copied my<br>
image.<br>
<br>
Please let me know your thoughts on this route to tranfer instance.<br>
<br>
Thanks<br>
<br>
Regards<br>
Deepak<br>
<br>
<br>
<br>
<br>
From:   Jay Pipes <<a href="mailto:jaypipes@gmail.com">jaypipes@gmail.com</a>><br>
To:     <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>,<br>
Date:   07/26/2013 10:30 PM<br>
Subject:        Re: [Openstack] manage personal instance from openstack<br>
Sent by:        "Openstack" <openstack-bounces<br>
            +dejeswan=<a href="mailto:in.ibm.com@lists.launchpad.net">in.ibm.com@lists.launchpad.net</a>><br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On 07/26/2013 05:10 AM, Deepak Jeswani1 wrote:<br>
><br>
> Hi everyone,<br>
><br>
> I have an instance running various applications in my environment and I<br>
> want to  transfer it to Openstack. One way is to take image of my<br>
instance,<br>
> register it with Openstack image library and then create an instance out<br>
of<br>
> it. I am wondering whether there can be a direct way to register it with<br>
> Openstack.<br>
><br>
> Please suggest me a good way to transfer my instance to Openstack.<br>
<br>
If you have a Swift installation, it's quite easy.<br>
<br>
1) Snapshot your instance in your VMWare or Virtualbox environment<br>
2) Convert the snapshot to a format that the hypervisor used in your<br>
OpenStack environment supports (ISO or QCOW2 is easiest for KVM)<br>
3) Upload your converted image into Swift<br>
4) Issue a call to Glance to register your image from Swift:<br>
<br>
glance image-create --disk-format=<FORMAT> --container-format=<FORMAT><br>
--location=<SWIFT_URI><br>
<br>
The image will then appear in your tenant's list of images in Horizon or<br>
glance image-list, and you may use it to launch an instance.<br>
<br>
All the best,<br>
-jay<br>
<br>
p.s. You don't necessarily need to use Swift, either... you could always<br>
just place your converted image on a web server somewhere and replace<br>
<SWIFT_URI> with the URI of your image.<br>
<br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</div></div></blockquote></div><br></div>