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

Ishatanjeeb's avatar

Vagrant issue

I have install vagrant on my win-8 PC.It's running properly first time but when shutdown my pc and run again vagrant up.it's not working. can you please tell me the proper procedure of it?

0 likes
4 replies
jasonfrye's avatar

Are you in the correct folder to run vagrant up? What is it telling you when you run vagrant up? Is there an error message? We need more to go on to help you out.

Ishatanjeeb's avatar
Welcome to Git (version 1.9.5-preview20150319)


Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.

Isha@TANJEEB /E/home/code/mandrill
$ cd

Isha@TANJEEB ~
$ ls
code

Isha@TANJEEB ~
$ cd code

Isha@TANJEEB ~/code
$ cd homestead

Isha@TANJEEB ~/code/homestead (master)
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 80 => 8000 (adapter 1)
    default: 443 => 44300 (adapter 1)
    default: 3306 => 33060 (adapter 1)
    default: 5432 => 54320 (adapter 1)
    default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /vagrant => E:/home/code/Homestead
    default: /home/vagrant/code => E:/home/code
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: to force provisioning. Provisioners marked to run always will still run.

Isha@TANJEEB ~/code/homestead (master)
$ ls
LICENSE.txt  Vagrantfile  composer.json  composer.lock  homestead  init.sh  readme.md  scripts  src

Isha@TANJEEB ~/code/homestead (master)
$ cd ../

Isha@TANJEEB ~/code
$ cd homestead

Isha@TANJEEB ~/code/homestead (master)
$ vagrant ssh
Welcome to Ubuntu 14.04.2 LTS (GNU/Linux 3.13.0-24-generic x86_64)

 * Documentation:  https://help.ubuntu.com/
Last login: Sun Jul 26 02:52:53 2015 from 10.0.2.2

Ishatanjeeb's avatar

My project on code directory name "mandrill".now what will be the command to run this project?

mehany's avatar
mehany
Best Answer
Level 13

@Ishatanjeeb I assume you have required laravel/homestead in your project and I assume you are running vagrant commands from your projects directory and you have followed the docs to set up your environment. Then the following will work, all you need to do, after the first provision , for every consecutive vagrant up , run

  vagrant up --no-provision

This command will yield a similar output as the one you posted above except at the end it will say:

 Machine not provisioning because `--no-provision` is specified.

Which is what we want. Next, ssh into the VM, run

 vagrant ssh

Note that running vagrant up --provision will destroy all databases, so be aware of that!

related thread : Create multiple sites on Homestead 2.0

Please or to participate in this conversation.