You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create VM with volume and network, but following getting error:
libvirt_domain.domain: Error creating libvirt domain: [Code-1] [Domain-10] internal error: process exited while connecting to monitor: 2017-02-14T00:37:50.691878Z qemu-system-x86_64: -drive file=/var/lib/libvirt/images/rs-vol-0,format=qcow2,if=none,id=drive-virtio-disk0: Could not open '/var/lib/libvirt/images/rs-vol-0': Permission denied
Libvirt for some reason didn't mention disk files in apparmor configuraion for this VM (Same happens with qemu-monitor device also). Other VMs (not managed by Terraform) work fine and have appropriate permissions in Apparmor. Checked on multiple hosts w/ 16.04.
# DO NOT EDIT THIS FILE DIRECTLY. IT IS MANAGED BY LIBVIRT.
"/var/log/libvirt/**/rs-0.log" w,
"/var/lib/libvirt/qemu/domain-rs-0/monitor.sock" rw,
"/var/run/libvirt/**/rs-0.pid" rwk,
"/run/libvirt/**/rs-0.pid" rwk,
"/var/run/libvirt/**/*.tunnelmigrate.dest.rs-0" rw,
"/run/libvirt/**/*.tunnelmigrate.dest.rs-0" rw,
# for qemu guest agent channel
owner "/var/lib/libvirt/qemu/channel/target/domain-rs-0/**" rw,
Hello, thanks for your work.
I'm trying to create VM with volume and network, but following getting error:
Root cause was in Apparmor:
Libvirt for some reason didn't mention disk files in apparmor configuraion for this VM (Same happens with qemu-monitor device also). Other VMs (not managed by Terraform) work fine and have appropriate permissions in Apparmor. Checked on multiple hosts w/ 16.04.
Template is following:
Version:
The text was updated successfully, but these errors were encountered: