A Vagrant environment or target machine is required
<p>I am trying to set up homestead. I have tried to add new custom domain but I forgot that I have to run the command vagrant provision and I got an error, so I have decided to uninstall Vagrant VirtualBox and start from scratch but I have realy messed the things up.</p>

<p>Now I have installed VirtualBox, Vagrant. I have cloned the repository of homestead on my home directory. I filled the Homestead.yaml but when I start with vagrant up I get this error</p>

<p>A Vagrant environment or target machine is required to run this
command. Run <code>vagrant init</code> to create a new Vagrant environment. Or,
get an ID of a target machine from <code>vagrant global-status</code> to run
this command on. A final option is to change to a directory with a
Vagrantfile and to try again.
Also I have tried to require homestead through composer but I`am still getting the same error.</p>

<p>When I try with vagrant init a new box is created and when I start vagrant up I am not in the homestead box but in the one that I last created.</p>

<p>I am really confused and I don`t know what I am missing. Any help will be appreciated.</p>

<p>edit.</p>

<p>Also when I try with homestead up, the virtual machine is running and I am able to connect through ssh but when I type custom domains I get "No input file specified."</p>

<p>update:</p>

<p>In the ~/.homestead directory I have executed <code>vagrant init laravel/homestead</code> and now I can start the the machine and to connect through ssh but I can`t go to a registered custom domain - the page is not available.</p>

<p>Update 2:</p>

<p>Also I just checked and on the homestead server my Code folder is empty. In the <code>Homestead.yaml</code>file I have folders 
<code>- map: ~/Code
      to: /home/vagrant/Code</code></p>

<p>All my projects are there in the local folder and I have no idea why they are not on vagrant.</p>