Closed ghost closed 3 years ago
hi @gwfisher thx for issue! can you format better and provide more output on the issue?
E.g would be helpfull to have the console output. tia! :tulip:
We also released a 0.6.3 version of provider, seeing you are using the 0.6.2
So I compiled this straight from github.
This is what it says when I try and provision the virtual machine with terraform.
libvirt_cloudinit_disk.commoninit: Creating... libvirt_volume.rhel8-qcow2: Creating... libvirt_volume.rhel8-qcow2: Creation complete after 2s [id=/var/lib/libvirt/images/rhel8-qcow2] libvirt_cloudinit_disk.commoninit: Creation complete after 3s [id=/var/lib/libvirt/images/commoninit.iso;aa844a0a-5cd0-43a9-8801-c5d9b589dc61] libvirt_domain.domain-rhel8: Creating...
Error: Invalid index: The given key does not identify an element in this collection value.
I found a fix for it from another issue. you have to add
network_interface { network_name = "default" wait_for_lease = true }
to make sure the virtual machine gets an IP address before running a provisioner.
System Information
Linux distribution
Fedora 33
Terraform version
Provider and libvirt versions