How to import .vmx(or .ovf) to a image on glance

Asked by qianlu

Hi.

I need to migrate a CentOS VM from vmware to Openstack.

I got all the .vmdk and .vmx.
But only .vmdk could be assigned when image was created on glance,
so all the HW config in .vmx was lost after the instance was launched.

I tried to convert the .vmx to libvirt.xml, then overwrite the default libvirt.xml of the instance.
However, after the instance was rebooted, libvirt.xml was restored to default.

So how can I import .vmx(or .ovf) to a image on glance?
Or can I merge .vmdk and .vmx(or .ovf) into a single qcow file?

Thanks!

Question information

Language:
English Edit question
Status:
Expired
For:
Glance Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Giridhar Jayavelu (gjayavelu) said :
#2

When you import a vmdk as glance image, the vmx configuration is not stored.
Any required virtual hardware configuration is specified using flavor or image properties when booting an instance.
Here are some image properties https://wiki.openstack.org/wiki/VirtDriverImageProperties#VMWare

What part of the HW config from .vmx you would like to be used?

Revision history for this message
Nikhil Komawar (nikhil-komawar) said :
#3

As asked in the above comment.

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.