how do i import an ova with 3 disks into glance?

asked 2015-03-12 11:05:39 -0600

marafa gravatar image

i have an ova with 3 disks. i want to import this "image" into glance. i understand i will need to make those 3 disks into 1. how do i do that?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-03-12 12:23:44 -0600

fgorbat gravatar image

updated 2015-03-12 12:46:41 -0600

Step by step

Let's say disk1 is OS root file system and disk2 and disk3 is additional volumes.

Probable there is an option without conversion, I prefer to go with native QCOW2 format ;-)

Convert the VMDK files to QCOW2 (more info)

qemu-img convert -f vmdk -O qcow2 disk1.vmdk disk1.qcow2

Repeat the same for disk2 and disk3, on the end you will have 3 files disk1.qcow2, disk2.qcow2 and disk3.qcow2

Load all 3 files using glance image-create ... (more info)

After completion of the loading, create volumes (go to images, under more you will see create volume) from the disk2 and disk3, size has to be similar to VMware size.

Launch instance from disk1.

Go to volumes, select disk2 and choose edit attachments, attach to the new instance (disk1), repeat the same with disk3.

Good luck!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2015-03-12 11:05:39 -0600

Seen: 1,358 times

Last updated: Mar 12 '15