Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

aleksov's avatar

How to run homestead up

I try to run homestead up but I get vm: a box must be specified... Screenshoot: http://i.imgur.com/8aPvIz9.png

What is the problem here?

Please help me to start work with laravel!

0 likes
28 replies
ahuggins's avatar

you have VirtualBox installed? and the Homestead box setup?

aleksov's avatar

Yes but please see what is the problem: http://imgur.com/MdyiEF4

ON cmd when I choose virtualbox then start to download something 20 min but after then again dont work...

ahuggins's avatar

It looks like the Homestead box is already running...so I would think that homestead up would not actually work. Could try to shutdown the box in VirtualBox...then try homestead up in terminal or whatever.

aleksov's avatar

How ? What command I need to run? vagrant box add laravel/homestead ?

aleksov's avatar

So I run vagrant box add laravel/homestead: http://imgur.com/xeXc9LK but I need to choose virtualbox and when I choose that then I wait 20 min to download but after that again is the same...

bashy's avatar

You know when it says select a provider? Type "1" then press enter...

aleksov's avatar

ok I do that a million time but then I wait 20 min to download and after that is the same again! @bashy

bashy's avatar

Okay you will need to state what you've done already.

Make sure to stop any Homestead VMs running.

  1. Vagrant version (vagrant -v)
  2. Update Homestead (cd Homestead && git pull)
  3. VirtualBox version (check in about VB I guess)
  4. Show us what you get after doing vagrant box add laravel/homestead
bashy's avatar

Yeah don't worry about the cd Homestead command. Maybe you haven't got that far anyway.

So when you enter 1, what happens?

bashy's avatar

Yeah with 0.3.3 there's no homestead commands. Use vagrant up in the folder with the Vagrantfile file.

bashy's avatar

How did you install homestead? Shouldn't really be in Composer/vendor/bin.

aleksov's avatar

@bashy I have this in folders : http://imgur.com/vwpAybE, also in vendor/laravel/homestead folder I cant run comand 'homested' becous tell me that not recognized as an internal or external ... ...

bashy's avatar

Run it on the one on the left. Not Composer one.

aleksov's avatar

@bashy On the left is also at composer folder just: composer/vendor/laravel/homestead ... and command homestead give me text: homestead is not recognized as an internal or external command ... ...

bashy's avatar

Oh okay. Install that again (or git clone as in the docs). Then cd to that new folder and run vagrant up.

lindstrom's avatar

You had it starting up when you issued vagrant up (there is no homestead up command). Sometimes it will tell you it's timing out and retrying. Once it's up, you'll get your command prompt back. Assuming you gave it your ssh credentials in the Homestead.yaml file, you should be able to issue vagrant ssh to get into the box. To bring the box down, issue vagrant halt. The problem you are having is issuing a command that doesn't exist.

(BTW, you are not the only one having the problem of trying to issue homestead up and seeing command not found. Where did you read about doing this? The definitive resource for getting up and running with Homestead is here: http://laravel.com/docs/5.1/homestead)

bashy's avatar

You've done it wrong. You did vagrant init?

I don't see how it's so hard to follow the documentation :P

bashy's avatar

I would but I don't really have the time to do it.

aleksov's avatar

Problem was my computer procesor... VM work only for I3,I5 ... not for Pentium

bashy's avatar

So you didn't even check your computer can do VTx? That was silly :)

There's a big red note saying this

Note: If you are using Windows, you may need to enable hardware virtualisation (VT-x). It can usually be enabled via your BIOS.

Please or to participate in this conversation.