I was kindly directed to here, Serverfault from Stackoverflow to pose my question.
I'm running the following command on a RHEL7 hypervisor to create a live backup (disc image) of a running kvm, which is running a production docker service in the kvm I want a live snapshot.
Many docs I have read lead me to this command to get a live snapshot of a running KVM:
# virsh snapshot-create-as \
--domain undercloud-vm undercloud-vm-snapshot \
--diskspec vda,file=/backup/images/undercloud-vm.qcow2 \
--quiesce \
--disk-only \
--atomic
error: internal error: unable to execute QEMU agent command 'guest-fsfreeze-freeze': failed to open /var/lib/docker/overlay2: Permission denied
Not wanting to mess with the KVM's /var/lib/docker/overlay2 directory permissions, I have resorted to asking this question here. And if anyone has come across this issue of trying to make a live snapshot of a KVM that happens to be running docker inside. The main thing here is that the KVM is production, and it can not simply be paused or frozen to create the snapshot, it must continue to run and process data.
Any pointers to get me a live backup would be greatly appreciated.
INFO............
In the KVM: (running: /usr/libexec/qemu-kvm ...)
- OS: Red Hat Enterprise Linux Server release 7.5 (Maipo)
- Channel: org.qemu.guest_agent.0 has been added as virtual H/W
- YUM: yum install qemu-guest-agent
- S/W: Docker version 1.13.1, build 6e3bb8e/1.13.1
Hypervisor:
- HW: PowerEdge FC630, Dell FX2s 36 CPUs, 128GB RAM
- OS: Red Hat Enterprise Linux Server release 7.6 (Maipo)
- SW: qemu-img-rhev = 10:2.10.0-21.el7_5.4
- qemu-kvm-(common-)rhev = 10:2.10.0-21.el7_5.4