I scripted the creation of snapshots and it works fine. Now I'd like to run the 
script as non-root.

virsh snapshot-create-as --domain hq-live-v01 \
     --name snappy \
     --diskspec 
vda,file=/var/lib/libvirt/images/hq-live-v01.snappy,snapshot=external \
     --diskspec 
vdb,file=/var/lib/libvirt/images/hq-live-storage.snappy,snapshot=external \
     --disk-only --quiesce --atomic

This fragment creates the snapshots, but get created with mode 0600:
-rw-------  1 qemu qemu     393216 Mar 19 17:08 hq-live-storage.snappy
-rw-------  1 qemu qemu    1048576 Mar 19 17:08 hq-live-v01.snappy

The user account is in the libvirt group and has permissions to do everything 
except delete the files created by the snapshot, all I need is to get the 
snapshots created with 0660 mode.

This is on a Centos 7.6 installation.  What knobs do I need to turn to control 
the umask?

Thanks,
-Mike


_______________________________________________
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users

Reply via email to