Closed tmwalaszek closed 5 years ago
The only thing that looks off is the image
, the ..
in terraform/../packer
. Can you just try simplifying the path? It should work, but it might just confirm that you are resolving the correct path.
I guess we can add a path.Clean
to tidy up, and os.LStat
/os.Stat
the file before sending it to Vbox so its a bit clearer.
Please ensure the path is correct, if it looks good I will investigate further.
Thanks for fast response :). The path is fixed now but I got the same error.
resource "virtualbox_vm" "node" {
count = 2
name = format("node-%02d", count.index + 1)
image = "/Users/tmw/Infra/nomad_consul/packer/packer_vbox_virtualbox.box"
cpus = 2
memory = "512 mib"
network_adapter {
type = "bridged"
host_interface = "enp0s3"
}
}
Looks like a typo in the command name. It tries to execute
VBoxManageinternalcommands sethduuid
But it should
VBoxManage internalcommands sethduuid
It looks like this line might be the issue: https://github.com/terra-farm/terraform-provider-virtualbox/blob/bf3e588a715c6fd965f6ccafadb05838d41f2caa/virtualbox/resource_vm.go#L243
I have created #61, which hopefully will resolve the issue. After it is merged, please let me know if the issue has been resolved.
It works! :) Thank you very much!
Welcome! I'll close the issue now.
For me this solution (https://github.com/terra-farm/terraform-provider-virtualbox/issues/101) could fix the problem.
Hi, I'm trying to create VirtualBox VM using terraform-provider-virtualbox plugin but I'm facing the following issue.
It looks like there is no space between VBoxManage internalcommands. It tries to find VBoxManageinternalcommands which does not exist.
Here is my environment
I build VirtualBox plugin myself using bf3e588a715c6fd965f6ccafadb05838d41f2caa revision. Is this a bug or I am doing something wrong?