Open claudioivp opened 2 years ago
Using network_type with type="nat"
I got a similar error.
Error: [ERROR] can't convert vbox network to terraform data: No match with get guestproperty output
My VM also starts correctly.
I'm running: Windows 10 Virtualbox 6.1.32 r149290 Terraform v1.1.6
Can confirm with type="bridged", I can't get Virtualbox to report back the IP.
Hi there! What could to be this error? I'm running vbox v6.1 When I start the vm created manually, it starts normally.
`terraform { required_providers { virtualbox = { source = "terra-farm/virtualbox" version = "0.2.2-alpha.1" } } }
resource "virtualbox_vm" "node" { count = 1 name = format("node-%02d", count.index + 1) image = "https://app.vagrantup.com/ubuntu/boxes/bionic64/versions/20210916.0.0/providers/virtualbox.box" cpus = 2 memory = "1024 mib"
user_data = file("user_data")
network_adapter { type = "hostonly" host_interface = "VirtualBox Host-Only Ethernet Adapter" } }
output "IPAddr" { value = element(virtualbox_vm.node.*.network_adapter.0.ipv4_address, 1) }
output "IPAddr_2" { value = element(virtualbox_vm.node.*.network_adapter.0.ipv4_address, 2) }`
│ Error: [ERROR] Wait VM until ready: waiting for VM (node-01) to become ready: [ERROR] can't convert vbox network to terraform data: No match with get guestproperty output │ │ with virtualbox_vm.node[0], │ on main.tf line 10, in resource "virtualbox_vm" "node": │ 10: resource "virtualbox_vm" "node" {