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

[BUG] <Title> [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF" #162

Open
aamaltf1 opened this issue Feb 7, 2023 · 0 comments
Assignees
Labels

Comments

@aamaltf1
Copy link

aamaltf1 commented Feb 7, 2023

Terraform Version

v1.3.7

Virtualbox Provider version

v0.2.2-alpha.1

Virtualbox Version

7.0.2 r154219

Operating System

Windows 11 Pro

Describe the bug

│ Error: [ERROR] Create virtualbox VM node-01: machine already exists


│ with virtualbox_vm.node[0],
│ on main.tf line 62, in resource "virtualbox_vm" "node":
│ 62: resource "virtualbox_vm" "node" {



│ Error: [ERROR] Create virtualbox VM node-02: machine already exists


│ with virtualbox_vm.node[1],
│ on main.tf line 62, in resource "virtualbox_vm" "node":
│ 62: resource "virtualbox_vm" "node" {


2023-02-07T18:29:33.604+0100 [TRACE] statemgr.Filesystem: removing lock metadata file .terraform.tfstate.lock.info
2023-02-07T18:29:33.607+0100 [TRACE] statemgr.Filesystem: unlocked by closing terraform.tfstate
2023-02-07T18:29:33.611+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-02-07T18:29:33.637+0100 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/terra-farm/virtualbox/0.2.2-alpha.1/windows_amd64/terraform-provider-virtualbox_v0.2.2-alpha.1.exe pid=30528
2023-02-07T18:29:33.638+0100 [DEBUG] provider: plugin exited

To Reproduce

Steps to reproduce the behavior:

  1. install Oracle virtualbox
  2. install terraform
  3. apply the terraform script

Expected Behaviour

create ubtuntu in a virtualbox

Configuration

terraform {
  required_providers {
    virtualbox = {
      source = "terra-farm/virtualbox"
      version = "0.2.2-alpha.1"
    }
  }
}

# There are currently no configuration options for the provider itself.

resource "virtualbox_vm" "node" {
  count     = 2
  name      = format("node-%02d", count.index + 1)
  image     = "https://app.vagrantup.com/ubuntu/boxes/bionic64/versions/20180903.0.0/providers/virtualbox.box"
  cpus      = 2
  memory    = "512 mib"
  # user_data = file("${path.module}/user_data")

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

2 participants