You can convert the following objects into Qcow2

  • A VM image from the RAW storage;
  • The whole RAW storage.

Conversion is performed only from the console of the cluster master node. Stop virtual machines before you start.

Conversion is supported for the following types of storages:

  • File storages
  • LVM
  • NFS

Converting a storage


The RAW virtual disk is converted into the Qcow2 storage. 

Before you start, suspend the virtual machines to which the disk is mounted.  

Execute the command: 

cd /usr/local/mgr5/
sbin/mgrctl -m vmmgr volume.convert old_pool=<old_pool> new_pool=<new_pool> volume=<volume>
BASH

<old_pool> — the storage you need to convert;

<new_pool> — the target storage in the Qcow2 format;

<volume> — virtual disk name.

Converting a disk


All the  RAW virtual disks will be imported into the Qcow2 storage.

Before you start, suspend the virtual machines to which the disk is mounted.  

Execute the command: 

cd /usr/local/mgr5/
sbin/mgrctl -m vmmgr pool.convert old_pool=<old_pool> new_pool=<new_pool>
BASH

<old_pool>the storage you need to convert;

<new_pool>the target stoarge in the Qcow2 format;