-
Notifications
You must be signed in to change notification settings - Fork 460
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
No interfaces obtained via qemu-agent #891
Comments
Hi, i think i have the same problem. I try to deploy a debian vm with this plugin but it runs into a timeout while trying to get the ip of the vm. On my dhcp server i can see that the vm successfully obtained an address but terraform isnt recognizing it. my tf file:
while terraform tries to obtain the ip of the vm, i can already find it via virsh:
in my cloud init file i also install, start and enable the qemu-guest-agent.service.
and here is the output from the terraform apply command:
I found this issue here: #710 its closed because there was already a fix for a problem with channel bindings. |
qemu agent is not supported in latest version: #879 0.6.3 : works - https://github.com/dmacvicar/terraform-provider-libvirt/blob/v0.6.3/libvirt/domain.go#L157 |
Oh thanks for the info remoe, i somehow missed that. Sorry! |
@mxkle , but this version would not work with terraform 1.x |
Is there a version that supports the qemu-agent and works with terraform 1.0.x? |
@everflux, no wait for https://github.com/dmacvicar/terraform-provider-libvirt/pull/ 873 is reviewed and merged in. |
The PR is reviewed but it looks like it will not be merged, it is 1,5h years old and conflicts with the current main. |
System Information
Linux distribution
Ubuntu 20.04
Terraform version
1.0.6
Provider and libvirt versions
0.6.2
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
Terraform:
cloudedge.txt
Cloudinit:
network_config_static.txt
cloud_init.txt
Steps to Reproduce Issue
I want to create VMs and expose them to the local network via a network bridge br0. However, using Terraform the VMs are stuck on the following (from
TF_LOG=DEBUG terraform apply
)Resulting in
The VMs have
qemu-guest-agent
running on them, which gives back this list of network interfaces available on the VM, but this list is missing something / incorrect according to Terraform. The VM ends up having no IP (usingvirsh console
to login to the VM, followed by `hostname -i```.Additional information:
I have tried many permutations of the given terraform and cloudinit file, including other terraform-provider-libvirt versions, other operating systems for the VM, using static IPs and / or dynamic IPs via DHCP. At this point I am out of ideas and would like some help in figuring out what goes wrong.
I am able to create VMs with static IPs and a network bridge using the Qemu CLI (without Terraform).
The text was updated successfully, but these errors were encountered: