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

executable file not found in %PATH% #101

Open
nazmang opened this issue May 13, 2021 · 5 comments
Open

executable file not found in %PATH% #101

nazmang opened this issue May 13, 2021 · 5 comments
Labels
bug os/windows Affecting the Windows version

Comments

@nazmang
Copy link

nazmang commented May 13, 2021

hi,

got error below when using on Windows 10 and VirtualBox 6.1.18. Lines from Example used.

virtualbox_vm.node[0]: Still creating... [20s elapsed]

Error: [ERROR] Create virtualbox VM node-01: exec: "false": executable file not found in %PATH%


  on cluster.tf line 1, in resource "virtualbox_vm" "node":
   1: resource "virtualbox_vm" "node" {



Error: [ERROR] Create virtualbox VM node-02: exec: "false": executable file not found in %PATH%


  on cluster.tf line 1, in resource "virtualbox_vm" "node":
   1: resource "virtualbox_vm" "node" {

VirualBox directory added to PATH, so which 'executable file' it requires?

@VoyTechnology
Copy link
Member

VoyTechnology commented Jun 10, 2021

Windows is not currently supported, see #83. But this error to me sounds like somewhere in the code we are calling false command (https://linux.die.net/man/1/false), which possibly comes from

https://github.com/terra-farm/go-virtualbox/blob/698b4798c5b6842af6e9e3630cd94e2c5e6fdb43/vbmgt.go#L34-L41

So my first guess is see if there is VBoxControl.exe in VBOX_INSTALL_PATH path.

@VoyTechnology VoyTechnology added the os/windows Affecting the Windows version label Jun 23, 2021
@VoyTechnology
Copy link
Member

I tested on Windows and I got the same issue. However I saw some progress. My guess is a custom implementation of the code used in go-virtualbox to get the VBoxManage path is somehow bad. I am working on adding a Run command to the go-virtualbox package so that we can use the configured instance to get the data, rather than relying on the custom code.

@rneto12
Copy link

rneto12 commented Feb 21, 2022

I only got over this error after adding the path directly to Windows and restarting it.

image

@BlackS52
Copy link

BlackS52 commented Jun 8, 2022

rneto12's advise works for me too. But need to reboot Windows to apply these changes.

@IliaDimchev
Copy link

Been going through the same issue for the last week, here's the resolution.

Apparently, when VirtualBox is installed in a different than the default folder, we get the PATH saved improperly in our system. It'll look like this:
VBOX_MSI_INSTALL_PATH | <Path to VirtualBox>

The solution is to add new PATH to our system:
VBOX_INSTALL_PATH | <Path to VirtualBox>

Restart the console application/IDE, in my case, VSCode, and just re-run terraform apply with yes brought up the virtual machine just fine. That's it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug os/windows Affecting the Windows version
Projects
None yet
Development

No branches or pull requests

5 participants