Ask Your Question
0

Discovering existing KVM instances to OpenStack

asked 2014-07-24 01:18:45 -0500

Praveenkumar.2608 gravatar image

Hi Folks,

I have converted LVM based KVM instance in to QCOW2 format image and imported to openstack and it is running fine. Is there any possibility to directly discover the KVM instances in openstack without having converting to QCOW2 format.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-07-24 11:17:39 -0500

mpetason gravatar image

updated 2014-07-24 11:18:28 -0500

The question is somewhat open ended. If you are trying to see what type of image you have for uploading to glance then you could use:

qemu-img info {image}

This will output something along the lines of:

$ qemu-img info test.vmdk
(VMDK) image open: flags=0x2 filename=test.vmdk
image: test.vmdk
file format: vmdk
virtual size: 20M (20971520 bytes)
disk size: 17M

You can then take the file format and use it as a guideline for which type to pick when uploading an image. In the case of the above image you would select VMDK as the type. Most of the time you'll see qcow2 or raw, depending on where you pulled the image from.

edit flag offensive delete link more
0

answered 2014-07-24 22:11:27 -0500

Praveenkumar.2608 gravatar image

Thank you for your answer. I did what exactly you have mentioned. Converting the running KVM to QCOW2 and importing that to Glance.

I have around 50 different KVM instance running. Converting all this to QCOW2 and importing to glance is a big process. Instead of converting them, I need to know is there any way to discover the 50 KVM using some API or some method.

edit flag offensive delete link more

Comments

Convert this to a comment on the previous answer. You'll either want to convert or stand up new instances in OpenStack and SCP configurations and all over. While you could probably populate the database with instance data and link it to the virsh ID for the KVM instances, I wouldn't recommend it.

mpetason gravatar imagempetason ( 2014-07-25 10:33:18 -0500 )edit

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

2 followers

Stats

Asked: 2014-07-24 01:18:45 -0500

Seen: 592 times

Last updated: Jul 24 '14