Creating a virtual machine image is slow. What should I do?
Cause
The Data Storage uses Ceph while the Image Storage uses a Standalone Image Storage type.
When using Ceph-type Data Storage, add an Image Storage that also uses Ceph.
Solution
-
Log in to the mon node and run the following command to manually export the image from Ceph Image Storage:
[root@localhost ~]# rbd export pool-uuid/uuid /root/ZStack.iamge -
Run the following command to convert the exported raw image to qcow2 format:
[root@localhost ~]# qemu-img convert -f raw /root/ZStack.iamge -O qcow2 /root/ZStack.qcow2 -
Upload the exported qcow2 image to the Standalone Image Storage.