Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Hew Chee Yong
Hew Chee Yong
16,337 Points

I type vagrant up,but it display 'Vagrant could not detect VirtualBox'

Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed. Vagrant uses the VBoxManage binary that ships with VirtualBox, and requires this to be available on the PATH. If VirtualBox is installed, please find the VBoxManage binary and add it to the PATH environmental variable.

how to do?

kyle kitlinski
kyle kitlinski
5,619 Points

I'm having the same issue, re watched the video a few times to make sure I didn't miss anything and can't figure it out.

4 Answers

Hey,

I just had this same issue as well, and think I found a resolution. Jason or someone else, please let me know if you have another suggestion or if there might be any unintended consequences of the change I made!

The environment variable that was automatically created for me had a keyname of "VBOX_MSI_INSTALL_PATH." However, the "base.rb" file inside one of the many subfolders of the Vagrant directory looks for the environment variable keyname "VBOX_INSTALL_PATH." So all I did was right-click on "My Computer"-->Properties-->Advanced System Settings-->Environment Variables. Here I scrolled down to find "VBOX_MSI_INSTALL_PATH" and I changed it to "VBOX_INSTALL_PATH."

Not sure if that is the right way to go about it, but it seems to have worked.

Hope that helps!

Thanks Aditya! This worked for me. And thanks for your clear instructions too.

Clair Griffiths
Clair Griffiths
10,158 Points

Thank you so much, this worked perfectly

Hew Chee Yong
Hew Chee Yong
16,337 Points

HI,I have been installed Virtualbox. According to video instruction step by step to do. When I type 'vagrant up' , it display 'Vagrant could not detect VirtualBox.....'

Hew Chee Yong
Hew Chee Yong
16,337 Points

HI,I have been installed Virtualbox. According to video instruction step by step to do. When I type 'vagrant up' , it display 'Vagrant could not detect VirtualBox.....'

Alan Fox
Alan Fox
10,214 Points

That appears to have sorted it. Thanks!!