[BUG] <Title> [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
aamaltf1 opened this issue · 0 comments
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:
- install Oracle virtualbox
- install terraform
- 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)
}