stackhpc / ansible-role-libvirt-vm

This role configures and creates VMs on a KVM hypervisor.
128 stars 67 forks source link

Permissions of the Vm volume file #28

Closed Cocoking77 closed 5 years ago

Cocoking77 commented 5 years ago

Hi,

When I tried to create a VM from a qcow image with directive "image:", in the step "Ensure the VM is running and started at boot", I had this error :

2019-03-31T09:39:26.332744Z qemu-system-x86_64: -drive file=/way_of_the_qcow/Test,format=qcow2,if=none,id=drive-virtio-disk0: Could not open '/way_of_the_qcow/Test': Permission denied

I solved it with adding this section in the task file vm.yml :

Regards,