Ceph snapshot VM "unsupported configuration : internal snapshot for disk vda unsupported for storage type raw"

I run 3 hosts with Ceph currently in a testing environment.
I’d like to take a snapshot of a VM, but when I do so it fails with the following error in the logs:

Fri Oct 20 19:44:52 2017 [Z0][VMM][D]: Message received: LOG I 76 Command execution fail: ‘if [ -x “/var/tmp/one/vmm/kvm/snapshot_create” ]; then /var/tmp/one/vmm/kvm/snapshot_create one-76 0 76 kvm-02; else exit 42; fi’

Fri Oct 20 19:44:52 2017 [Z0][VMM][D]: Message received: LOG I 76 error: unsupported configuration: internal snapshot for disk vda unsupported for storage type raw

Fri Oct 20 19:44:52 2017 [Z0][VMM][D]: Message received: LOG E 76 Could not create snapshot for domain one-76.

Fri Oct 20 19:44:52 2017 [Z0][VMM][D]: Message received: LOG I 76 ExitCode: 255

Fri Oct 20 19:44:52 2017 [Z0][VMM][D]: Message received: SNAPSHOTCREATE FAILURE 76 Could not create snapshot for domain one-76.

Fri Oct 20 19:44:53 2017 [Z0][InM][D]: Host kvm-03 (3) successfully monitored.

==

This is on a CentOS 7 VM built with the App from opennebula.
I confirmed and it’s Qcow2 as well…

Am I doing something wrong?


Versions of the related components and OS (frontend, hypervisors, VMs):

CentOS 7 latest, 5.4.1 across all HV’s.

Steps to reproduce:

Make snapshot of VM.

Current results:

See above for error log.

Expected results:

1 Like

If I remember right you can only do that with raw images, there are issues with Ceph and qcow2 images. Try the same using a raw image

Hi,

AFAIK on KVM it works with qcow2 files. This line is returned by libvirt:

unsupported configuration: internal snapshot for disk vda unsupported for storage type raw

Best Regards,
Anton Todorov

So in combination with Ceph it doesn’t work?

AFAIK currently it doesn’t work with any storage that is using raw disks.