From 5bf4005e5f7c241b51c5516f7a27cac67c904f26 Mon Sep 17 00:00:00 2001 From: Guy Lowe Date: Sun, 17 Dec 2023 09:58:26 +1300 Subject: [PATCH 1/2] add note about qemu_agent for bridge networks --- libvirt/resource_libvirt_domain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt/resource_libvirt_domain.go b/libvirt/resource_libvirt_domain.go index 9cc7b5849..aa6da73b1 100644 --- a/libvirt/resource_libvirt_domain.go +++ b/libvirt/resource_libvirt_domain.go @@ -617,7 +617,7 @@ func resourceLibvirtDomainCreate(d *schema.ResourceData, meta interface{}) error "2) has the network interface an IP address? \n" + "3) Networking issues on your libvirt setup? \n " + "4) is DHCP enabled on this Domain's network? \n" + - "5) if you use bridge network, the domain should have the pkg qemu-agent installed \n" + + "5) if you use bridge network, the domain should have the pkg qemu-agent installed and `qemu_agent = true` set\n" + "IMPORTANT: This error is not a terraform libvirt-provider error, but an error caused by your KVM/libvirt infrastructure configuration/setup" return fmt.Errorf("couldn't retrieve IP address of domain id: %s. %s \n %s", d.Id(), ipNotFoundMsg, err) } From f41ae30984b51c713b600f8ec7897e16f60f28d7 Mon Sep 17 00:00:00 2001 From: Guy Lowe Date: Sun, 17 Dec 2023 10:09:16 +1300 Subject: [PATCH 2/2] trailing space --- libvirt/resource_libvirt_domain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt/resource_libvirt_domain.go b/libvirt/resource_libvirt_domain.go index aa6da73b1..ff7d925d8 100644 --- a/libvirt/resource_libvirt_domain.go +++ b/libvirt/resource_libvirt_domain.go @@ -617,7 +617,7 @@ func resourceLibvirtDomainCreate(d *schema.ResourceData, meta interface{}) error "2) has the network interface an IP address? \n" + "3) Networking issues on your libvirt setup? \n " + "4) is DHCP enabled on this Domain's network? \n" + - "5) if you use bridge network, the domain should have the pkg qemu-agent installed and `qemu_agent = true` set\n" + + "5) if you use bridge network, the domain should have the pkg qemu-agent installed and `qemu_agent = true` set \n" + "IMPORTANT: This error is not a terraform libvirt-provider error, but an error caused by your KVM/libvirt infrastructure configuration/setup" return fmt.Errorf("couldn't retrieve IP address of domain id: %s. %s \n %s", d.Id(), ipNotFoundMsg, err) }