How to import Virtualbox/VMWare VMs to OpenStack
Hi, I had some VMs in both VirtualBox and VMWare then I decided to use OpenStack and run the VMs there. VirtualBox export VMs to OVA
file and VMWare exports to the OVF
file in addition to a vmdk
file. I tried to create image with all OVF
, OVA
and vmdk
files and it's OK, but when I want to lunch an instance with them, I got the error:
Error: Failed to perform requested operation on instance "dfb", the instance has an error status: Please try again later [Error: Build of instance 311caab2-fdb1-44f1-9918-36000d64196c aborted: Volume 6c376113-bc29-4328-b3c6-68103842d148 did not finish being created even after we waited 9 seconds or 4 attempts. And its status is error.].
I just could import the ISO
file and create an instance using it. So I want to know is it possible to import VirtualBox/VMWare exported VMs to OpenStack and if the answer is yes, then how?
UPDATE Here is the cinder-volume logs:
2018-09-25 11:28:56.503 3223 WARNING cinder.volume.manager [req-929f7fdf-c080-455e-89c9-270f2298c352 d8dcf63bf5b149129584be9813179627 33d195b5c1b54c6bb5d749ccb0409874 - default default] Task 'cinder.volume.flows.manager.create_volume.CreateVolumeFromSpecTask;volume:create' (8b03974c-a0a6-42b2-a234-23f4740129a6) transitioned into state 'FAILURE' from state 'RUNNING'
5 predecessors (most recent first):
Atom 'cinder.volume.flows.manager.create_volume.NotifyVolumeActionTask;volume:create, create.start' {'intention': 'EXECUTE', 'state': 'SUCCESS'
|__Atom 'cinder.volume.flows.manager.create_volume.ExtractVolumeSpecTask;volume:create' {'intention': 'EXECUTE', 'state': 'SUCCESS',
|__Atom 'cinder.volume.flows.manager.create_volume.OnFailureRescheduleTask;volume:create' {'intention': 'EXECUTE', 'state': 'SUCCESS'
|__Atom 'cinder.volume.flows.manager.create_volume.ExtractVolumeRefTask;volume:create' {'intention': 'EXECUTE', 'state': 'SUCCESS'
|__Flow 'volume_create_manager': ImageCopyFailure: Failed to copy image to volume: qemu-img: error while writing sector 38287488: Input/output error
The error message indicates that Cinder could not create a volume. Is this volume provisioned from one of those images?
I would expect to find more details in the Cinder logs; search for the volume and image IDs. Perhaps also in the Glance logs.
I convert the VMDK to QCOW2, but I still got an error. I added the cinder error logs in the post.
Could it be that your volume service doesn't have enough capacity?
I don't know what a "sector" is, but it should be 512 bytes as a minimum. That would mean 19GB.
You could try
openstack volume create --image VIRTUALBOX_IMAGE
to see what happens.