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: [ERROR] Cloning *.iso and *.dmg to VM folder. #132

Open
zeusequinox opened this issue Jan 24, 2022 · 1 comment
Open

Error: [ERROR] Cloning *.iso and *.dmg to VM folder. #132

zeusequinox opened this issue Jan 24, 2022 · 1 comment
Labels

Comments

@zeusequinox
Copy link

zeusequinox commented Jan 24, 2022

Terraform Version

<MISSING>

Virtualbox Provider version

v0.2.2-alpha.1

Virtualbox Version

v6.1.26

Operating System

Windows 10

Describe the bug

I am getting this error while providing path to add guestadditions.

Without Adding The .iso I can't get the IPV4 address of provisioned virtual machine, as the network config is not in the
"vboxmanage.exe guestproperty enumerate" cmd. So, in order to get ipv4 address we need to add guestadditions along with the provisioned vm.
Can it somehow be changed to use copy or xcopy for windows os?

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)
  #name   = "Centos-7"
  #image = "D:/VDI's/64bit/Ubuntu 21.04 (64bit).vdi"
  #image     = "/drives/d/VDI's/64bitUbuntu 21.04 (64bit).vdi"
  #image  = "https://app.vagrantup.com/centos/boxes/7/versions/2004.01/providers/virtualbox.box"
  image  = "./centos/CentOS-8-Vagrant-8.2.2004-20200611.2.x86_64.vagrant-virtualbox.box"
  cpus   = 1
  memory = "1024 mib"
  status = "running"
  network_adapter {
    type   = "bridged"
    device = "IntelPro1000MTDesktop"
    host_interface = "Hyper-V Virtual Ethernet Adapter"
    # host_interface = "eth0"
  }
  optical_disks = ["./centos/VBoxGuestAdditions_6.1.26.iso"]

}


output "IPAddr" {
  value = element(virtualbox_vm.node.*.network_adapter.0.ipv4_address, 1)
}
# output "IPAddr" {
#   value = element(virtualbox_vm.node.*.network_adapter.0.ipv4_address, 1)
# }

Log Output

image

@VoyTechnology
Copy link
Member

Hi @zeusequinox, 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.

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