Re: [Openstack] manage personal instance from openstack
it looks like you have an old environment and want to transfer all the instance to your openstack environment. I used to do this for KVM instance by writing some scripts in nova-network environment. On Sun, Jul 28, 2013 at 12:03 PM, Deepak Jeswani1 wrote: > 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 > image. > > Please let me know your thoughts on this route to tranfer instance. > > Thanks > > Regards > Deepak > > > > > From: Jay Pipes > To: openstack@lists.launchpad.net, > Date: 07/26/2013 10:30 PM > Subject:Re: [Openstack] manage personal instance from openstack > Sent by:"Openstack" +dejeswan=in.ibm@lists.launchpad.net> > > > > 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 > instance, > > register it with Openstack image library and then create an instance out > of > > 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= --container-format= > --location= > > 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, > -jay > > 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 > with the URI of your image. > > > ___ > Mailing list: https://launchpad.net/~openstack > Post to : openstack@lists.launchpad.net > Unsubscribe : https://launchpad.net/~openstack > More help : https://help.launchpad.net/ListHelp > > > > > ___ > Mailing list: https://launchpad.net/~openstack > Post to : openstack@lists.launchpad.net > Unsubscribe : https://launchpad.net/~openstack > More help : https://help.launchpad.net/ListHelp > ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] 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 image. Please let me know your thoughts on this route to tranfer instance. Thanks Regards Deepak From: Jay Pipes To: openstack@lists.launchpad.net, Date: 07/26/2013 10:30 PM Subject:Re: [Openstack] manage personal instance from openstack Sent by:"Openstack" 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 instance, > register it with Openstack image library and then create an instance out of > 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= --container-format= --location= 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, -jay 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 with the URI of your image. ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] manage personal instance from openstack
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 instance, register it with Openstack image library and then create an instance out of 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= --container-format= --location= 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, -jay 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 with the URI of your image. ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] manage personal instance from openstack
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 instance, register it with Openstack image library and then create an instance out of 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. Thanks Regards Deepak Deepak Jeswani Software Engineer, IBM Research, India. ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp