0

I try to use vagrant for a project. Everytime I try to run a command, the following message is show:

Vagrant failed to initialize at a very early stage:

Vagrant detected that VirtualBox appears installed on your system, but calls to detect the version are returning empty. This is often indicative of installation issues with VirtualBox. Please verify that VirtualBox is properly installed. As a final verification, please run the following command manually and verify a version is outputted:

C:/Program Files/Oracle/VirtualBox/VBoxManage.exe --version

If I try the following command on Git Bash:

C:/Program\ Files/Oracle/VirtualBox/VBoxManage.exe --version

There is no version in the output.

However, if I try to run this commande in powershell,

& "C:/Program Files/Oracle/VirtualBox/VBoxManage.exe" --version

The version is correctly printed. The few occurence of this bug that I found online didn't provide a way to fix my issue. I've tried to activate Hyper-V and it appear that I can run one single vagrant command. The next one fallback to the previous error message.

The exact same process with the exact same version of both Vagrant and VirtualBox work for my team mates and I'm currently clueless about why it fail on my computer. If someone as any idea over the cause of such error, it would be greatly appreciated.

5
  • It’s probably a system PATH variable issue
    – Ramhound
    Commented May 4, 2021 at 11:59
  • @Ramhound, I've rebooted my system so I'm sure the PATH is the same everywhere. Both Vagrant and VirtualBox env var are correctly set and I call VirtualBox with its fullpath . What make you think of a problem with the PATH?
    – momolechat
    Commented May 4, 2021 at 12:07
  • Because you indicated it worked on one system and not the other
    – Ramhound
    Commented May 4, 2021 at 12:09
  • @Ramhound seems fair but it finds VirtualBox and its version is not part of an env var.
    – momolechat
    Commented May 4, 2021 at 12:23
  • 1
    So what is different between your system and the working system?
    – Ramhound
    Commented May 4, 2021 at 12:30

0

You must log in to answer this question.

Browse other questions tagged .