Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions of the Vm volume file #28

Closed
Cocoking77 opened this issue Mar 31, 2019 · 0 comments · Fixed by #29
Closed

Permissions of the Vm volume file #28

Cocoking77 opened this issue Mar 31, 2019 · 0 comments · Fixed by #29

Comments

@Cocoking77
Copy link

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 :

  • name: Permissions VM

    file:
    path: /PATH_TO_THE_VM/{{ volumes | selectattr('name', 'defined') | map(attribute='name') | list | join('\n') }}
    owner: libvirt-qemu
    group: libvirt-qemu
    mode: 0644

Regards,

jovial added a commit that referenced this issue Aug 23, 2019
Change ownership of VM volumes on Debian to libvirt-qemu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant