terraform-provider-virtualbox: 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

Terraform Version

<MISSING>

Virtualbox Provider version

<MISSING>

Operating System

<MISSING>

Describe the Bug

<MISSING>

To Reproduce

Steps to reproduce the behavior:

  1. <MISSING>

Expected Behaviour

<MISSING>

Configuration

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      = 1
  memory    = "1024 mib"
  user_data = file("${path.module}/user_data.sh")
  
  network_adapter {
    type           = "nat"
  }
  network_adapter {
    type           = "bridged"
    host_interface = "eno1"
  }

  network_adapter {
    type           = "hostonly"
    host_interface = "vboxnet1"
  }
}

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)
}

Log Output

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

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 15 (9 by maintainers)

Most upvoted comments

Today I got this error. In my case, the problem was that the vm doesn’t have enough memory to start Ubuntu.

Hey @nikstuckenbrock, now that your change is merged, do you want to create another PR to this repository to bump the go-virtualbox dependency version?

Thanks

On Tue, 25 Oct 2022, 07:25 Nik Stuckenbrock, @.***> wrote:

I think I found the bug in the terra-form/go-virtualbox repository and have created a pull request https://github.com/terra-farm/go-virtualbox/pull/43 for it.

— Reply to this email directly, view it on GitHub https://github.com/terra-farm/terraform-provider-virtualbox/issues/149#issuecomment-1290045036, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALUP4V2AZXBCHFJCQTBAYL3WE54NNANCNFSM576YC3WA . You are receiving this because you were mentioned.Message ID: @.*** com>

Hi @mohang6770, thank you for submitting this issue. I took some liberty in applying the latest issue template to this bug report, I hope you don’t mind. Can you please provide some of the missing fields? Thank you.