Problem
Image is copied under the Glance image library path but is not discovered in OpenStack.
Environment
- Platform9 Managed OpenStack - All Versions
- Glance
Cause
The image is in a format that is not recognized by the qemu-img info
command.
Resolution
- Run
qemu-img info
command on the image# qemu-img info WinServer.2016.Gold.qcow2
image: WinServer.2016.Gold.qcow2
file format: raw
virtual size: 10.0G (10685723648 bytes)
disk size: 10.0G - Backup the original image (optional)
# cp WinServer.2016.Gold.qcow2 WinServer.2016.Gold.qcow2.bak
- Rename the image file to have one of the following extensions:
.raw, .img, .dat, .bin
# mv WinServer.2016.Gold.qcow2 WinServer.2016.Gold.img