Search code examples
ubuntuubuntu-14.04openstack

Create volume/instance from image error


Trying to launch an instance from the Ubuntu 14.04 server cloud image (https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img) by following different tips I find online and in here but have no success.

Uploaded image as qcow2 and when trying to launch instance receive error "Build of instance ... aborted: Block Device Mapping is Invalid." and when creating volume from image receive no error message other than the state being "Error".

Is there a problem with the image?


Solution

  • Managed to fix this. Because the size of the QCOW2 image being compressed <1GB when launching the instance OpenStack defaults to give the image a 1GB volume. Manually increasing the volume size to 3GB solved this because the extracted image was ~2.5GB.