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
Is your issue/contribution related with enabling some setting/option exposed by libvirt that the plugin does not yet support, or requires changing/extending the provider terraform schema?
Make sure you explain why this option is important to you, why it should be important to everyone. Describe your use-case with detail and provide examples where possible.
If it is a very special case, consider using the XSLT support in the provider to tweak the definition instead of opening an issue
Maintainers do not have expertise in every libvirt setting, so please, describe the feature and how it is used. Link to the appropriate documentation
Is it a bug or something that does not work as expected? Please make sure you fill the version information below:
Description of Issue/Question
Setup
I use alias to connect remote KVM server and use non-root ubuntu(with sudo no passwd all) user:
provider "libvirt" {
uri = "qemu:///system"
}
provider "libvirt" {
alias = "core"
uri = "qemu+ssh://ubuntu@10.81.156.101/system?keyfile=/root/.ssh/ubuntu&known_hosts_verify=ignore"
}
Steps to Reproduce Issue
connect to remote KVM is good, but when TF creates libvirt domain i have error:
error on localhost:
Error: error creating libvirt domain: Cannot access storage file '/data/vms/admintestvm/admintestvm-root' (as uid:64055, gid:108): Permission denied
│
│ with module.vm.libvirt_domain.vm[0],
│ on .terraform/modules/vm/main.tf line 47, in resource "libvirt_domain" "vm":
│ 47: resource "libvirt_domain" "vm" {
root@core:/data/vms# cat /etc/libvirt/qemu.conf | grep -i security_driver
# security_driver = [ "selinux", "apparmor" ]
# value of security_driver cannot contain "dac". The value "none" is
# a special value; security_driver can be set to that value in
security_driver = "none"
And restart systemctl restart libvirtd
Have you tried to reproduce the issue without them enabled?
yes
The text was updated successfully, but these errors were encountered:
Same issue here. Issue persists even when using a root user on the qemu ssh connection string. The disk file on disk has the correct permissions and ownership, same as all of the others on the pool (pre-existing default pool at /var/lib/libvirt/images).
System Information
Linux distribution
Ubuntu 22.04 amd64
Terraform version
Provider and libvirt versions
Checklist
Is your issue/contribution related with enabling some setting/option exposed by libvirt that the plugin does not yet support, or requires changing/extending the provider terraform schema?
Is it a bug or something that does not work as expected? Please make sure you fill the version information below:
Description of Issue/Question
Setup
I use alias to connect remote KVM server and use non-root ubuntu(with sudo no passwd all) user:
Steps to Reproduce Issue
connect to remote KVM is good, but when TF creates libvirt domain i have error:
error on localhost:
tf debug on localhost:
after i get error, i checked dir based storage pool permissions on remote KVM:
so, i seen, TF creates VMs dir by root (but i connect to remove KVM with ubuntu user) and write permissions only root user, why?
p.s. when i use root user on connection string - i haven't problems.
Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Some special configuration?
First of all, i read README.md and:
/etc/libvirt/libvirtd.conf
/etc/libvirt/libvirtd.conf
systemctl restart libvirtd
Have you tried to reproduce the issue without them enabled?
yes
The text was updated successfully, but these errors were encountered: