NOTE: I'm using the latest "terraform-provider-libvirt-0.6.3" binary for Ubuntu 20.04.
The "terraform apply" fails with:
Error: Error creating libvirt domain: virError(Code=1, Domain=10, Message='internal error: process exited while connecting to monitor: 2020-11-17T01:55:34.375538Z qemu-system-x86_64: -blockdev {"driver":"file","filename":"/var/lib/libvirt/images/simple-os_image","node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}: Could not open '/var/lib/libvirt/images/simple-os_image': Permission denied')
The generated XML looks just like the one from comment #39!
As you guys can see, the path is "normal". The file permissions are accessible to Libvirt users/groups. The QEMU host is working normally with virt-manager.
Hey guys,
I'm trying to play with Terraform and it's failing too! Ubuntu 20.04.1.
Guide:
https:/ /fabianlee. org/2020/ 02/22/kvm- terraform- and-cloud- init-to- create- local-kvm- resources/
NOTE: I'm using the latest "terraform- provider- libvirt- 0.6.3" binary for Ubuntu 20.04.
The "terraform apply" fails with:
Error: Error creating libvirt domain: virError(Code=1, Domain=10, Message='internal error: process exited while connecting to monitor: 2020-11- 17T01:55: 34.375538Z qemu-system-x86_64: -blockdev {"driver" :"file" ,"filename" :"/var/ lib/libvirt/ images/ simple- os_image" ,"node- name":" libvirt- 2-storage" ,"auto- read-only" :true," discard" :"unmap" }: Could not open '/var/lib/ libvirt/ images/ simple- os_image' : Permission denied')
The generated XML looks just like the one from comment #39!
As you guys can see, the path is "normal". The file permissions are accessible to Libvirt users/groups. The QEMU host is working normally with virt-manager.
Any quick fix!?