# Migrate from RAW to QCOW2

**URL:** <https://forum.opennebula.io/t/migrate-from-raw-to-qcow2/11863>\
**Category:** Operations\
**Created:** [February 15, 2024, 4:45pm UTC](https://forum.opennebula.io/t/migrate-from-raw-to-qcow2/11863 "2024-02-15T16:45:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rdziwinski](https://avatars.discourse-cdn.com/v4/letter/r/a4c791/32.png) [@rdziwinski](https://forum.opennebula.io/u/rdziwinski)\
**Post date:** [February 15, 2024, 4:45pm UTC](https://forum.opennebula.io/t/migrate-from-raw-to-qcow2/11863/1 "2024-02-15T16:45:00Z")

</div>

Hello everyone,  
I use a Ceph datastore as an image repository. The system datastore is localhost and by using TM\_MAD as ssh everything is working great. I want to change VM image format from RAW to qcow2 due to the use of incremental backup. In VM template I add DRIVER=qcow2 but it’s still create RAW format (I checked by qemu-img info).

```auto
DISK = [
  DEV_PREFIX = "vd",
  DRIVER = "qcow2",
  IMAGE = "Debian 11",]

```

What should I change more? RBD uses RAW disk, maybe it’s impossible to convert it to qcow2?

---

<div class="post-metadata">

**Author:** ![brunorro](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/brunorro/32/7590_2.png) [@brunorro](https://forum.opennebula.io/u/brunorro)\
**Post date:** [February 21, 2024, 2:56pm UTC](https://forum.opennebula.io/t/migrate-from-raw-to-qcow2/11863/2 "2024-02-21T14:56:54Z")

</div>

Hello,

Actually yes, RBD uses RAW disk format, when the VM is deployed it is automatically converted.  
The snapshots made in RBD images (for incremental backups) are Ceph-based.

Did you have any problem defining a incremental backup job with a ceph based image?

[https://docs.opennebula.io/6.8/management\_and\_operations/backups/backup\_jobs.html](https://docs.opennebula.io/6.8/management_and_operations/backups/backup_jobs.html)

---

<div class="post-metadata">

**Author:** ![Rafal\_Dziwinski](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/rafal_dziwinski/32/7341_2.png) [@Rafal\_Dziwinski](https://forum.opennebula.io/u/Rafal_Dziwinski)\
**Post date:** [February 27, 2024, 1:25pm UTC](https://forum.opennebula.io/t/migrate-from-raw-to-qcow2/11863/3 "2024-02-27T13:25:43Z")

</div>

Hello Bruno  
Thank you for your answer. I resolved this problem by creating a new Datastore with qcow2 OS images.  
Anyway live incremental backup is not working. When I turned off VM, backup was done. I get the below error:

> Error: Error executing ‘virsh --connect qemu:///system backup-begin --reuse-external --backupxml /var/lib/one//datastores/167/814/tmp/backup.xml --checkpointxml /var/lib/one//datastores/167/814/tmp/checkpoint.xml 48b71aba-6b4c-45f4-ba1f-443361995077’: error: Operation not supported: creating checkpoint for incremental backup is not supported yet

libvirtd 8.0.0  
qemu 5.2.0  
opennebula 6.8.0
