Skip to content
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

[ERROR] can't convert vbox network to terraform data: No match with get guestproperty output #134

Open
claudioivp opened this issue Feb 7, 2022 · 2 comments
Labels

Comments

@claudioivp
Copy link

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" {

@rneto12
Copy link

rneto12 commented Feb 21, 2022

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

@broco2002
Copy link

Can confirm with type="bridged", I can't get Virtualbox to report back the IP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants