Creating a virtual machine image is slow. What should I do?

ZSvirt was open-sourced from the ZStack ZSphere commercial project and has since developed independently. Some code, configuration, and documentation still retain historical ZStack/ZSphere names (such as environment variables, configuration items, dependencies, paths, and commands). These names are for compatibility only and do not affect the normal use of ZSvirt.

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

  1. 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
  2. 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
  3. Upload the exported qcow2 image to the Standalone Image Storage.

On this page